Browse Source

[bilibili] Restrict cid regex (closes #16638, closes #16734)

Sergey M․ 7 years ago
parent
commit
61cb66830f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      youtube_dl/extractor/bilibili.py

+ 1 - 1
youtube_dl/extractor/bilibili.py

@@ -114,7 +114,7 @@ class BiliBiliIE(InfoExtractor):
 
         if 'anime/' not in url:
             cid = self._search_regex(
-                r'cid(?:["\']:|=)(\d+)', webpage, 'cid',
+                r'\bcid(?:["\']:|=)(\d+)', webpage, 'cid',
                 default=None
             ) or compat_parse_qs(self._search_regex(
                 [r'EmbedPlayer\([^)]+,\s*"([^"]+)"\)',