mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-20 05:13:16 -07:00
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:
parent
05b0fb498f
commit
e854005ae1
193 changed files with 15896 additions and 6384 deletions
|
@ -23,7 +23,7 @@ from beets import config
|
|||
from beets import plugins
|
||||
from beets.dbcore import types
|
||||
|
||||
API_URL = 'http://ws.audioscrobbler.com/2.0/'
|
||||
API_URL = 'https://ws.audioscrobbler.com/2.0/'
|
||||
|
||||
|
||||
class LastImportPlugin(plugins.BeetsPlugin):
|
||||
|
@ -110,7 +110,7 @@ class CustomUser(pylast.User):
|
|||
|
||||
|
||||
def import_lastfm(lib, log):
|
||||
user = config['lastfm']['user'].get(unicode)
|
||||
user = config['lastfm']['user'].as_str()
|
||||
per_page = config['lastimport']['per_page'].get(int)
|
||||
|
||||
if not user:
|
||||
|
@ -192,7 +192,7 @@ def process_tracks(lib, tracks, log):
|
|||
total_fails = 0
|
||||
log.info(u'Received {0} tracks in this page, processing...', total)
|
||||
|
||||
for num in xrange(0, total):
|
||||
for num in range(0, total):
|
||||
song = None
|
||||
trackid = tracks[num]['mbid'].strip()
|
||||
artist = tracks[num]['artist'].get('name', '').strip()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue