Browse Source

[generic] Support data-video-url for YouTube embeds (Fixes #2862)

totalwebcasting
anovicecodemonkey 11 years ago
parent
commit
3442b30ab2
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      youtube_dl/extractor/generic.py

+ 1
- 1
youtube_dl/extractor/generic.py View File

@ -473,7 +473,7 @@ class GenericIE(InfoExtractor):
# Look for embedded YouTube player # Look for embedded YouTube player
matches = re.findall(r'''(?x) matches = re.findall(r'''(?x)
(?:<iframe[^>]+?src=|embedSWF\(\s*)
(?:<iframe[^>]+?src=|data-video-url=|embedSWF\(\s*)
(["\'])(?P<url>(?:https?:)?//(?:www\.)?youtube\.com/ (["\'])(?P<url>(?:https?:)?//(?:www\.)?youtube\.com/
(?:embed|v)/.+?) (?:embed|v)/.+?)
\1''', webpage) \1''', webpage)


Loading…
Cancel
Save