Browse Source

Fix hidden video problem with multiple P

master
wchen342 3 years ago
parent
commit
868d6d93a6
Signed by: wchen342 GPG Key ID: 720B70365E800508
  1. 2
      youtube-dl_mod/bilibili.py.modified

2
youtube-dl_mod/bilibili.py.modified

@ -132,7 +132,7 @@ class BiliBiliIE(InfoExtractor):
if 'anime/' not in url:
mobj = re.findall(r'cid(?:["\']:|=)(\d+)', webpage)
seen_mobj = set()
mobj = [c for c in mobj if int(c) > 10 and not (c in seen_mobj or seen_mobj.add(c))]
mobj = [c for c in mobj if int(c) > 12 and not (c in seen_mobj or seen_mobj.add(c))]
print(mobj)
cid = mobj[int(page) - 1] or \
compat_parse_qs(self._search_regex([

Loading…
Cancel
Save