Explorar o código

[fc2] Recognize urls without language part (reported in #1154)

Jaime Marquínez Ferrándiz %!s(int64=11) %!d(string=hai) anos
pai
achega
7e8fdb1aae
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      youtube_dl/extractor/fc2.py

+ 1 - 1
youtube_dl/extractor/fc2.py

@@ -13,7 +13,7 @@ from ..utils import (
 
 
 
 
 class FC2IE(InfoExtractor):
 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'
     IE_NAME = 'fc2'
     _TEST = {
     _TEST = {
         'url': 'http://video.fc2.com/en/content/20121103kUan1KHs',
         'url': 'http://video.fc2.com/en/content/20121103kUan1KHs',