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:
EduardBaer 2013-09-01 20:00:19 +02:00
parent 6c758d79de
commit ce46fd91b6

View File

@ -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))