mirror of
https://github.com/beetbox/beets.git
synced 2025-12-28 03:22:39 +01:00
Finish rebase
This commit is contained in:
parent
b0d0052685
commit
cd3e72a03d
3 changed files with 5 additions and 24 deletions
|
|
@ -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 '{}' ({}) - '{}'",
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue