diff --git a/beetsplug/missing.py b/beetsplug/missing.py index 57535404f..f2192be7a 100644 --- a/beetsplug/missing.py +++ b/beetsplug/missing.py @@ -164,7 +164,7 @@ class MissingPlugin(BeetsPlugin): fmt = config["format_album" if count else "format_item"].get() if total: - self._log.info(str(sum([_missing_count(a) for a in albums]))) + print(sum([_missing_count(a) for a in albums])) return # Default format string for count mode. @@ -174,11 +174,11 @@ class MissingPlugin(BeetsPlugin): for album in albums: if count: if _missing_count(album): - self._log.info(format(album, fmt)) + print_(format(album, fmt)) else: for item in self._missing(album): - self._log.info(format(item, fmt)) + print_(format(item, fmt)) def _missing_albums(self, lib: Library, query: list[str]) -> None: """Print a listing of albums missing from each artist in the library @@ -207,7 +207,6 @@ class MissingPlugin(BeetsPlugin): artist=artist_id, release_type=release_type, ) - release_groups = resp["release-group-list"] except MusicBrainzError as err: self._log.info( "Couldn't fetch info for artist '{}' ({}) - '{}'", diff --git a/docs/changelog.rst b/docs/changelog.rst index 6a513bef0..c523bfa41 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -439,25 +439,7 @@ Other changes: wrong (outdated) commit. Now the tag is created in the same workflow step right after committing the version update. :bug:`5539` - :doc:`/plugins/smartplaylist`: URL-encode additional item ``fields`` within - generated EXTM3U playlists inst - # build dict mapping artist to list of all albums - for artist, albums in albums_by_artist.items(): - if artist[1] is None or artist[1] == "": - albs_no_mbid = ["'" + a["album"] + "'" for a in albums] - self._log.info( - "No musicbrainz ID for artist '{}' found in album(s) {}; " - "skipping", - artist[0], - ", ".join(albs_no_mbid), - ) - continue - - try: - resp = musicbrainzngs.browse_release_groups( - artist=artist[1], - release_type=release_type, - ) -ead of JSON-encoding them. + generated EXTM3U playlists instead of JSON-encoding them. - typehints: ``./beets/importer.py`` file now has improved typehints. - typehints: ``./beets/plugins.py`` file now includes typehints. - :doc:`plugins/ftintitle`: Optimize the plugin by avoiding unnecessary writes diff --git a/docs/plugins/missing.rst b/docs/plugins/missing.rst index ea5a5b3b3..f18656c8c 100644 --- a/docs/plugins/missing.rst +++ b/docs/plugins/missing.rst @@ -124,7 +124,7 @@ List all missing albums of release type "compilation" in your collection:: List all missing albums of release type "compilation" and album in your collection:: :: - + beet missing -a --release-type compilation --release-type album Call this plugin from other beet commands: