From: epg <> Date: Sat, 28 Oct 2006 08:42:15 +0000 (+0000) Subject: Use album.release where possible, restrict X-Git-Url: https://diplodocus.org/git/flac-archive/commitdiff_plain/61bfdce5db66d9474754be365b25feac16c975b1 Use album.release where possible, restrict musicbrainz2.webservice.ReleaseIncludes to tracks. --- diff --git a/fa-rip b/fa-rip index cfd3967..d13776f 100755 --- a/fa-rip +++ b/fa-rip @@ -146,24 +146,23 @@ def tags(disc, trackcount, mb=True): if not mb: return - include = musicbrainz2.webservice.ReleaseIncludes(artist=True, tracks=True) + include = musicbrainz2.webservice.ReleaseIncludes(tracks=True) q = musicbrainz2.webservice.Query() filter = musicbrainz2.webservice.ReleaseFilter(discId=disc.getId()) i = 0 for album in q.getReleases(filter): i += 1 - r = q.getReleaseById(album.release.id, include) - various = not r.isSingleArtistRelease() + various = not album.release.isSingleArtistRelease() if various and not seen_various: seen_various = True tags_file('candidate-tags-0v', trackcount, True) tags_file('candidate-tags-' + str(i), trackcount, various, - r.artist.name, r.title, + album.release.artist.name, album.release.title, album.release.getReleaseEventsAsDict(), - r.tracks) + q.getReleaseById(album.release.id, include).tracks) def rip(device, trackcount, single_file): if device == None: