fix tantifilm e server correlati, migliorato unshortenit

This commit is contained in:
marco
2020-03-24 18:14:21 +01:00
parent cf78aa4a04
commit 6987c5e922
4 changed files with 98 additions and 213 deletions
+2 -2
View File
@@ -12,8 +12,8 @@ def test_video_exists(page_url):
page_url = page_url.replace("/f/","/v/")
page_url = page_url.replace("/v/","/api/source/")
data = httptools.downloadpage(page_url, post={}).data
if "Video not found or" in data:
return False, "[fembed] El fichero ha sido borrado"
if "Video not found or" in data or "We are encoding this video" in data:
return False, config.get_localized_string(70449) % "fembed"
return True, ""
+1 -1
View File
@@ -4,7 +4,7 @@
"ignore_urls": [],
"patterns": [
{
"pattern": "(?:\\w+\\.)?my?stream\\.(?:to|fun)/(?:watch/)?([a-zA-Z0-9]+)",
"pattern": "my?stream\\.(?:\\w+\\.)?(?:la|to|cloud|xyz|club)/(?:external|watch/)?([0-9a-zA-Z_]+)",
"url": "https://embed.mystream.to/\\1"
}
]