Merge remote-tracking branch 'dstftw/novamov'
authorPhilipp Hagemeister <phihag@phihag.de>
Wed, 8 Jan 2014 00:15:43 +0000 (01:15 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Wed, 8 Jan 2014 00:15:43 +0000 (01:15 +0100)
youtube_dl/extractor/generic.py
youtube_dl/extractor/youtube.py

index c1f393e390c5dc87be198269582c6c5358ca201a..70001f87d7b5d7734a228feb80b6d2a45a92c174 100644 (file)
@@ -303,12 +303,12 @@ class GenericIE(InfoExtractor):
             return OoyalaIE._build_url_result(mobj.group(1))
 
         # Look for Aparat videos
-        mobj = re.search(r'<iframe src="(http://www.aparat.com/video/[^"]+)"', webpage)
+        mobj = re.search(r'<iframe src="(http://www\.aparat\.com/video/[^"]+)"', webpage)
         if mobj is not None:
             return self.url_result(mobj.group(1), 'Aparat')
 
         # Look for MPORA videos
-        mobj = re.search(r'<iframe .*?src="(http://mpora.com/videos/[^"]+)"', webpage)
+        mobj = re.search(r'<iframe .*?src="(http://mpora\.com/videos/[^"]+)"', webpage)
         if mobj is not None:
             return self.url_result(mobj.group(1), 'Mpora')
 
index 9424d5e2669a72e791a0ba0a0120de0bfec27fc8..8361dda7a4089faf63b3639de6980cf986279329 100644 (file)
@@ -1759,6 +1759,6 @@ class YoutubeTruncatedURLIE(InfoExtractor):
             u'Did you forget to quote the URL? Remember that & is a meta '
             u'character in most shells, so you want to put the URL in quotes, '
             u'like  youtube-dl '
-            u'\'http://www.youtube.com/watch?feature=foo&v=BaW_jenozKc\''
-            u' (or simply  youtube-dl BaW_jenozKc  ).',
+            u'"http://www.youtube.com/watch?feature=foo&v=BaW_jenozKc" '
+            u' or simply  youtube-dl BaW_jenozKc  .',
             expected=True)