[generic/youtube] Recognize youtube nocookie embeds (Closes #3713)
authorSergey M․ <dstftw@gmail.com>
Wed, 10 Sep 2014 11:29:20 +0000 (18:29 +0700)
committerSergey M․ <dstftw@gmail.com>
Wed, 10 Sep 2014 11:29:20 +0000 (18:29 +0700)
youtube_dl/extractor/generic.py

index 1b7697870bde93fd5bb4218d12eac8c166a306ba..2bfa20606cd7846b0d15e8c441de3fce2a8982f6 100644 (file)
@@ -628,7 +628,7 @@ class GenericIE(InfoExtractor):
                 embedSWF\(?:\s*
             )
             (["\'])
-                (?P<url>(?:https?:)?//(?:www\.)?youtube\.com/
+                (?P<url>(?:https?:)?//(?:www\.)?youtube(?:-nocookie)?\.com/
                 (?:embed|v)/.+?)
             \1''', webpage)
         if matches: