Update beets to 1.4.7

Also updates:
- colorama-0.4.1
- jellyfish-0.6.1
- munkres-1.0.12
- musicbrainzngs-0.6
- mutagen-1.41.1
- pyyaml-3.13
- six-1.12.0
- unidecode-1.0.23
This commit is contained in:
Labrys of Knossos 2018-12-15 00:52:11 -05:00
commit e854005ae1
193 changed files with 15896 additions and 6384 deletions

View file

@ -63,8 +63,8 @@ class SpotifyPlugin(BeetsPlugin):
self.config['show_failures'].set(True)
if self.config['mode'].get() not in ['list', 'open']:
self._log.warn(u'{0} is not a valid mode',
self.config['mode'].get())
self._log.warning(u'{0} is not a valid mode',
self.config['mode'].get())
return False
self.opts = opts
@ -124,9 +124,8 @@ class SpotifyPlugin(BeetsPlugin):
# Apply market filter if requested
region_filter = self.config['region_filter'].get()
if region_filter:
r_data = filter(
lambda x: region_filter in x['available_markets'], r_data
)
r_data = [x for x in r_data if region_filter
in x['available_markets']]
# Simplest, take the first result
chosen_result = None
@ -155,15 +154,15 @@ class SpotifyPlugin(BeetsPlugin):
self._log.info(u'track: {0}', track)
self._log.info(u'')
else:
self._log.warn(u'{0} track(s) did not match a Spotify ID;\n'
u'use --show-failures to display',
failure_count)
self._log.warning(u'{0} track(s) did not match a Spotify ID;\n'
u'use --show-failures to display',
failure_count)
return results
def output_results(self, results):
if results:
ids = map(lambda x: x['id'], results)
ids = [x['id'] for x in results]
if self.config['mode'].get() == "open":
self._log.info(u'Attempting to open Spotify with playlist')
spotify_url = self.playlist_partial + ",".join(ids)
@ -171,6 +170,6 @@ class SpotifyPlugin(BeetsPlugin):
else:
for item in ids:
print(unicode.encode(self.open_url + item))
print(self.open_url + item)
else:
self._log.warn(u'No Spotify tracks found from beets query')
self._log.warning(u'No Spotify tracks found from beets query')