Browse Source

[openload] Recognize oload.tv URLs (#10408)

Yen Chi Hsuan 8 năm trước cách đây
mục cha
commit
5c32a5be95
2 tập tin đã thay đổi với 5 bổ sung1 xóa
  1. 1 0
      ChangeLog
  2. 4 1
      youtube_dl/extractor/openload.py

+ 1 - 0
ChangeLog

@@ -1,6 +1,7 @@
 version <unreleased>
 version <unreleased>
 
 
 Extractors
 Extractors
++ [openload] Recognize oload.tv URLs (#10408)
 + [facebook] Recognize .onion URLs (#11443)
 + [facebook] Recognize .onion URLs (#11443)
 
 
 version 2016.12.12
 version 2016.12.12

+ 4 - 1
youtube_dl/extractor/openload.py

@@ -10,7 +10,7 @@ from ..utils import (
 
 
 
 
 class OpenloadIE(InfoExtractor):
 class OpenloadIE(InfoExtractor):
-    _VALID_URL = r'https?://openload\.(?:co|io)/(?:f|embed)/(?P<id>[a-zA-Z0-9-_]+)'
+    _VALID_URL = r'https?://(?:openload\.(?:co|io)|oload\.tv)/(?:f|embed)/(?P<id>[a-zA-Z0-9-_]+)'
 
 
     _TESTS = [{
     _TESTS = [{
         'url': 'https://openload.co/f/kUEfGclsU9o',
         'url': 'https://openload.co/f/kUEfGclsU9o',
@@ -51,6 +51,9 @@ class OpenloadIE(InfoExtractor):
         # for title and ext
         # for title and ext
         'url': 'https://openload.co/embed/Sxz5sADo82g/',
         'url': 'https://openload.co/embed/Sxz5sADo82g/',
         'only_matching': True,
         'only_matching': True,
+    }, {
+        'url': 'https://oload.tv/embed/KnG-kKZdcfY/',
+        'only_matching': True,
     }]
     }]
 
 
     def _real_extract(self, url):
     def _real_extract(self, url):