Explorar o código

[bandcamp] fix video_id parsing (fixes #4861)

Quentin Rameau %!s(int64=10) %!d(string=hai) anos
pai
achega
b524a001d6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      youtube_dl/extractor/bandcamp.py

+ 1 - 1
youtube_dl/extractor/bandcamp.py

@@ -72,7 +72,7 @@ class BandcampIE(InfoExtractor):
 
         download_link = m_download.group(1)
         video_id = self._search_regex(
-            r'(?ms)var TralbumData = {.*?id: (?P<id>\d+),?$',
+            r'(?ms)var TralbumData = .*?[{,]\s*id: (?P<id>\d+),?$',
             webpage, 'video id')
 
         download_webpage = self._download_webpage(download_link, video_id, 'Downloading free downloads page')