Update openload.py

This commit is contained in:
Sergey M 2018-04-25 00:48:01 +07:00 committed by GitHub
parent 66029ad199
commit e6f3908ebc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -341,8 +341,9 @@ class OpenloadIE(InfoExtractor):
self._search_regex(
(r'>\s*([\w-]+~\d{10,}~\d+\.\d+\.0\.0~[\w-]+)\s*<',
r'>\s*([\w~-]+~\d+\.\d+\.\d+\.\d+~[\w~-]+)',
# someId~someIPv6~someId
r'>\s*([\w~-]+?~[a-f0-9:]+~[\w~-]+)\s*<'), webpage,
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