[bilibili] Remove debug from player params regexes
authorSergey M․ <dstftw@gmail.com>
Sat, 31 Mar 2018 19:06:14 +0000 (02:06 +0700)
committerSergey M․ <dstftw@gmail.com>
Sat, 31 Mar 2018 19:06:58 +0000 (02:06 +0700)
youtube_dl/extractor/bilibili.py

index 90697c4a7a674ae2b640a2178ad46c6df78ee943..3e3348ef5baed8f6e9a31634778421c921e352ce 100644 (file)
@@ -117,9 +117,9 @@ class BiliBiliIE(InfoExtractor):
                 r'cid(?:["\']:|=)(\d+)', webpage, 'cid',
                 default=None
             ) or compat_parse_qs(self._search_regex(
-                [r'1EmbedPlayer\([^)]+,\s*"([^"]+)"\)',
-                 r'1EmbedPlayer\([^)]+,\s*\\"([^"]+)\\"\)',
-                 r'1<iframe[^>]+src="https://secure\.bilibili\.com/secure,([^"]+)"'],
+                [r'EmbedPlayer\([^)]+,\s*"([^"]+)"\)',
+                 r'EmbedPlayer\([^)]+,\s*\\"([^"]+)\\"\)',
+                 r'<iframe[^>]+src="https://secure\.bilibili\.com/secure,([^"]+)"'],
                 webpage, 'player parameters'))['cid'][0]
         else:
             if 'no_bangumi_tip' not in smuggled_data: