X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=youtube_dl%2Fextractor%2Feighttracks.py;h=9df2141c3166be943c80718ddd5e40b4b2ee0b24;hb=c24dfef63c55ef1a5424d11b485c3b76245448a4;hp=101a096999b6b2b7c65104b2c1b245c7d233bc2f;hpb=7b61ac3ddf0bfe660266e70fc7c10f048758698f;p=youtube-dl diff --git a/youtube_dl/extractor/eighttracks.py b/youtube_dl/extractor/eighttracks.py index 101a09699..9df2141c3 100644 --- a/youtube_dl/extractor/eighttracks.py +++ b/youtube_dl/extractor/eighttracks.py @@ -7,7 +7,7 @@ import re import time from .common import InfoExtractor -from ..utils import ( +from ..compat import ( compat_str, ExtractorError, ) @@ -135,7 +135,7 @@ class EightTracksIE(InfoExtractor): if download_tries > 3: raise else: - ++download_tries + download_tries += 1 time.sleep(avg_song_duration) api_data = json.loads(api_json) @@ -143,7 +143,7 @@ class EightTracksIE(InfoExtractor): info = { 'id': compat_str(track_data['id']), 'url': track_data['track_file_stream_url'], - 'title': track_data['performer'] + u' - ' + track_data['name'], + 'title': track_data['performer'] + ' - ' + track_data['name'], 'raw_title': track_data['name'], 'uploader_id': data['user']['login'], 'ext': 'm4a',