[fc2] Recognize urls without language part (reported in #1154)
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Sat, 31 May 2014 12:45:46 +0000 (14:45 +0200)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Sat, 31 May 2014 12:45:46 +0000 (14:45 +0200)
youtube_dl/extractor/fc2.py

index fe1cf052ccd086a963d9b6f0baa749dc1cbfe5c1..18f91efac450d1ec697652570b6366b1709553d0 100644 (file)
@@ -13,7 +13,7 @@ from ..utils import (
 
 
 class FC2IE(InfoExtractor):
-    _VALID_URL = r'^http://video\.fc2\.com/(?P<lang>[^/]+)/content/(?P<id>[^/]+)'
+    _VALID_URL = r'^http://video\.fc2\.com/((?P<lang>[^/]+)/)?content/(?P<id>[^/]+)'
     IE_NAME = 'fc2'
     _TEST = {
         'url': 'http://video.fc2.com/en/content/20121103kUan1KHs',