소스 검색

[empflix] Relax _VALID_URL

Sergey M․ 10 년 전
부모
커밋
34fb7e46ad
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      youtube_dl/extractor/empflix.py

+ 5 - 1
youtube_dl/extractor/empflix.py

@@ -4,7 +4,7 @@ from .tnaflix import TNAFlixIE
 
 
 
 
 class EMPFlixIE(TNAFlixIE):
 class EMPFlixIE(TNAFlixIE):
-    _VALID_URL = r'^https?://www\.empflix\.com/videos/(?P<display_id>[0-9a-zA-Z-]+)-(?P<id>[0-9]+)\.html'
+    _VALID_URL = r'https?://(?:www\.)?empflix\.com/videos/(?P<display_id>.+?)-(?P<id>[0-9]+)\.html'
 
 
     _TITLE_REGEX = r'name="title" value="(?P<title>[^"]*)"'
     _TITLE_REGEX = r'name="title" value="(?P<title>[^"]*)"'
     _DESCRIPTION_REGEX = r'name="description" value="([^"]*)"'
     _DESCRIPTION_REGEX = r'name="description" value="([^"]*)"'
@@ -23,5 +23,9 @@ class EMPFlixIE(TNAFlixIE):
                 'thumbnail': 're:https?://.*\.jpg$',
                 'thumbnail': 're:https?://.*\.jpg$',
                 'age_limit': 18,
                 'age_limit': 18,
             }
             }
+        },
+        {
+            'url': 'http://www.empflix.com/videos/[AROMA][ARMD-718]-Aoi-Yoshino-Sawa-25826.html',
+            'matching_only': True,
         }
         }
     ]
     ]