Fix Clipwatching e Onlystream (ordire risoluzione)

This commit is contained in:
Alhaziel
2019-11-16 16:18:39 +01:00
parent 5ecb4e0f0e
commit 00cbf2acbf
3 changed files with 4 additions and 2 deletions

View File

@@ -4,8 +4,8 @@
"ignore_urls": [],
"patterns": [
{
"pattern": "clipwatching.com/(?:embed-)?([a-zA-Z0-9]+).html",
"url": "http://clipwatching.com/embed-\\1.html"
"pattern": "clipwatching.com/((?:embed-)?[a-zA-Z0-9./_-]+).html",
"url": "http://clipwatching.com/\\1.html"
}
]
},

View File

@@ -30,4 +30,5 @@ def get_video_url(page_url, user="", password="", video_password=""):
logger.info(label)
if ".jpg" not in video:
video_urls.append(['%s [%sp] [ClipWatching]' % (Type, label), video])
video_urls.sort(key=lambda x: x[0].split()[1])
return video_urls

View File

@@ -26,4 +26,5 @@ def get_video_url(page_url, premium=False, user="", password="", video_password=
for url, quality in sources:
quality = 'auto' if not quality else quality
video_urls.append(['.' + url.split('.')[-1] + ' [' + quality + '] [Onlystream]', url])
video_urls.sort(key=lambda x: x[0].split()[1])
return video_urls