[openload] Recognize IPv6 stream URLs (closes #16137)
authorAlexandre Macabies <Zopieux@users.noreply.github.com>
Tue, 24 Apr 2018 17:49:30 +0000 (19:49 +0200)
committerSergey M <dstftw@gmail.com>
Tue, 24 Apr 2018 17:49:30 +0000 (00:49 +0700)
youtube_dl/extractor/openload.py

index 650f956562b77220640ceee98a5e75e85639dd3f..d0bdd60b8208d2f4c44f18d0119770f5309b0495 100644 (file)
@@ -340,7 +340,10 @@ class OpenloadIE(InfoExtractor):
                       get_element_by_id('streamurj', webpage) or
                       self._search_regex(
                           (r'>\s*([\w-]+~\d{10,}~\d+\.\d+\.0\.0~[\w-]+)\s*<',
-                           r'>\s*([\w~-]+~\d+\.\d+\.\d+\.\d+~[\w~-]+)'), webpage,
+                           r'>\s*([\w~-]+~\d+\.\d+\.\d+\.\d+~[\w~-]+)',
+                           r'>\s*([\w-]+~\d{10,}~(?:[a-f\d]+:){2}:~[\w-]+)\s*<',
+                           r'>\s*([\w~-]+~[a-f0-9:]+~[\w~-]+)\s*<',
+                           r'>\s*([\w~-]+~[a-f0-9:]+~[\w~-]+)'), webpage,
                           'stream URL'))
 
         video_url = 'https://openload.co/stream/%s?mime=true' % decoded_id