Skip to content

Commit

Permalink
[openload] Fix domains regex
Browse files Browse the repository at this point in the history
  • Loading branch information
dstftw authored and meunierd committed Feb 13, 2020
1 parent a02c252 commit 80aabb6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions youtube_dl/extractor/openload.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,12 +243,13 @@ def get(self, url, html=None, video_id=None, note=None, note2='Executing JS on w


class OpenloadIE(InfoExtractor):
_DOMAINS = r'''(?x)
_DOMAINS = r'''
(?:
openload\.(?:co|io|link|pw)|
oload\.(?:tv|best|biz|stream|site|xyz|win|download|cloud|cc|icu|fun|club|info|press|pw|life|live|space|services|website|vip)|
oladblock\.(?:services|xyz|me)|openloed\.co)
'''
oladblock\.(?:services|xyz|me)|openloed\.co
)
'''
_VALID_URL = r'''(?x)
https?://
(?P<host>
Expand Down Expand Up @@ -396,7 +397,7 @@ class OpenloadIE(InfoExtractor):
@classmethod
def _extract_urls(cls, webpage):
return re.findall(
r'<iframe[^>]+src=["\']((?:https?://)?%s/%s/[a-zA-Z0-9-_]+)'
r'(?x)<iframe[^>]+src=["\']((?:https?://)?%s/%s/[a-zA-Z0-9-_]+)'
% (cls._DOMAINS, cls._EMBED_WORD), webpage)

def _extract_decrypted_page(self, page_url, webpage, video_id):
Expand Down

0 comments on commit 80aabb6

Please sign in to comment.