Skip to content

Commit

Permalink
[openload] Add support for oload.fun
Browse files Browse the repository at this point in the history
  • Loading branch information
yonaikerlol authored and dstftw committed Nov 2, 2018
1 parent c70ba66 commit 061ea3a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions youtube_dl/extractor/openload.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ def get(self, url, html=None, video_id=None, note=None, note2='Executing JS on w


class OpenloadIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?(?:openload\.(?:co|io|link)|oload\.(?:tv|stream|site|xyz|win|download|cloud|cc|icu))/(?:f|embed)/(?P<id>[a-zA-Z0-9-_]+)'
_VALID_URL = r'https?://(?:www\.)?(?:openload\.(?:co|io|link)|oload\.(?:tv|stream|site|xyz|win|download|cloud|cc|icu|fun))/(?:f|embed)/(?P<id>[a-zA-Z0-9-_]+)'

_TESTS = [{
'url': 'https://openload.co/f/kUEfGclsU9o',
Expand Down Expand Up @@ -319,7 +319,10 @@ class OpenloadIE(InfoExtractor):
'only_matching': True,
}, {
'url': 'https://oload.icu/f/-_i4y_F_Hs8',
'only_matching': True
'only_matching': True,
}, {
'url': 'https://oload.fun/f/gb6G1H4sHXY',
'only_matching': True,
}]

_USER_AGENT = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36'
Expand Down

0 comments on commit 061ea3a

Please sign in to comment.