Selaa lähdekoodia

[vimeo] Fix the extraction of vimeo pro and player.vimeo.com videos

Jaime Marquínez Ferrándiz 11 vuotta sitten
vanhempi
sitoutus
241650c7ff
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      youtube_dl/extractor/vimeo.py

+ 1 - 1
youtube_dl/extractor/vimeo.py

@@ -151,7 +151,7 @@ class VimeoIE(InfoExtractor):
                 config = json.loads(config_json)
             except RegexNotFoundError:
                 # For pro videos or player.vimeo.com urls
-                config = self._search_regex([r' = {config:({.+?}),assets:', r'c=({.+?);'],
+                config = self._search_regex([r' = {config:({.+?}),assets:', r'(?:c|b)=({.+?});'],
                     webpage, u'info section', flags=re.DOTALL)
                 config = json.loads(config)
         except Exception as e: