Skip to content

Commit

Permalink
Fix Cloudb (#89)
Browse files Browse the repository at this point in the history
* Fix Cloudb
  • Loading branch information
shellc0de27 committed May 7, 2022
1 parent 232816f commit c8a8e7a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions script.module.resolveurl/lib/resolveurl/plugins/cloudb.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@
class CloudbResolver(ResolveGeneric):
name = "CloudB"
domains = ['cloudb.me', 'cloudb2.me']
pattern = r'(?://|\.)(cloudb2?\.me)/(?:embed-|emb.html\?)?([0-9a-zA-Z]+)'
pattern = r'(?://|\.)(cloudb2?\.me)/(?:embed[/-]|emb.html\?)?([0-9a-zA-Z]+)'

def get_media_url(self, host, media_id):
return helpers.get_media_url(self.get_url(host, media_id),
patterns=[r'''sources:\s*\["(?P<url>[^"]+)'''],
generic_patterns=False)
patterns=[r'''sources:\s*\["(?P<url>[^"]+)'''])

def get_url(self, host, media_id):
return self._default_get_url(host, media_id, template='http://{host}/embed/{media_id}')

0 comments on commit c8a8e7a

Please sign in to comment.