X-Git-Url: http://git.cielonegro.org/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=youtube_dl%2Fextractor%2Fbandcamp.py;h=886b0dfabb7537ebca8a13ce7e4d6d68b9966a4c;hb=cb9722cb3fdc9a86a52d678ba4be6c7f98296d2a;hp=87932ba1ca3064a015892e3ba3d4de37c380179f;hpb=3798eadccdb2d681ee071403c5185ca014fb842e;p=youtube-dl.git diff --git a/youtube_dl/extractor/bandcamp.py b/youtube_dl/extractor/bandcamp.py index 87932ba1c..886b0dfab 100644 --- a/youtube_dl/extractor/bandcamp.py +++ b/youtube_dl/extractor/bandcamp.py @@ -82,7 +82,7 @@ class BandcampIE(InfoExtractor): #We build the url we will use to get the final track url # This url is build in Bandcamp in the script download_bunde_*.js request_url = '%s/statdownload/track?enc=mp3-320&fsig=%s&id=%s&ts=%s&.rand=665028774616&.vrs=1' % (m_url.group('server'), m_url.group('fsig'), video_id, m_url.group('ts')) - final_url_webpage = self._download_webpage(request_url, id, 'Requesting download url') + final_url_webpage = self._download_webpage(request_url, video_id, 'Requesting download url') # If we could correctly generate the .rand field the url would be #in the "download_url" key final_url = re.search(r'"retry_url":"(.*?)"', final_url_webpage).group(1) @@ -93,8 +93,8 @@ class BandcampIE(InfoExtractor): 'ext': 'mp3', 'vcodec': 'none', 'url': final_url, - 'thumbnail': info['thumb_url'], - 'uploader': info['artist'], + 'thumbnail': info.get('thumb_url'), + 'uploader': info.get('artist'), }