mirror of
https://github.com/ytdl-org/youtube-dl
synced 2025-03-18 22:12:21 +09:00
Changing regex for video ids in youtube users
Only video ids within link tags should be considered. Otherwise youtube-dl might download videos that are mentioned in the video description as well.
This commit is contained in:
parent
6c758d79de
commit
ce46fd91b6
@ -1019,7 +1019,7 @@ class YoutubeUserIE(InfoExtractor):
|
|||||||
# Extract video identifiers
|
# Extract video identifiers
|
||||||
ids_in_page = []
|
ids_in_page = []
|
||||||
|
|
||||||
for mobj in re.finditer(self._VIDEO_INDICATOR, page):
|
for mobj in re.finditer('<link.*' + self._VIDEO_INDICATOR + '.*/>', page):
|
||||||
if mobj.group(1) not in ids_in_page:
|
if mobj.group(1) not in ids_in_page:
|
||||||
ids_in_page.append(mobj.group(1))
|
ids_in_page.append(mobj.group(1))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user