Explorar el Código

[la7] Support more URLs

Philipp Hagemeister hace 11 años
padre
commit
1da1558f46
Se han modificado 1 ficheros con 7 adiciones y 1 borrados
  1. 7 1
      youtube_dl/extractor/la7.py

+ 7 - 1
youtube_dl/extractor/la7.py

@@ -10,7 +10,13 @@ from ..utils import (
 
 class LA7IE(InfoExtractor):
     IE_NAME = 'la7.tv'
-    _VALID_URL = r'https?://(?:www\.)?la7\.tv/richplayer/\?assetid=(?P<id>[0-9]+)'
+    _VALID_URL = r'''(?x)
+        https?://(?:www\.)?la7\.tv/
+        (?:
+            richplayer/\?assetid=|
+            \?contentId=
+        )
+        (?P<id>[0-9]+)'''
 
     _TEST = {
         'url': 'http://www.la7.tv/richplayer/?assetid=50355319',