diff --git a/plugin.video.alfa/servers/xstreamcdn.json b/plugin.video.alfa/servers/xstreamcdn.json new file mode 100644 index 00000000..24852ce3 --- /dev/null +++ b/plugin.video.alfa/servers/xstreamcdn.json @@ -0,0 +1,42 @@ +{ + "active": true, + "find_videos": { + "ignore_urls": [], + "patterns": [ + { + "pattern": "(https://www.xstreamcdn.com/v/[A-z0-9_-]+)", + "url": "\\1" + } + ] + }, + "free": true, + "id": "xstream", + "name": "xstream", + "settings": [ + { + "default": false, + "enabled": true, + "id": "black_list", + "label": "@60654", + "type": "bool", + "visible": true + }, + { + "default": 0, + "enabled": true, + "id": "favorites_servers_list", + "label": "@60655", + "lvalues": [ + "No", + "1", + "2", + "3", + "4", + "5" + ], + "type": "list", + "visible": false + } + ], + "thumbnail": "https://library.vodkr.com/media/24364/xstreamlogo.jpg" +} diff --git a/plugin.video.alfa/servers/xstreamcdn.py b/plugin.video.alfa/servers/xstreamcdn.py new file mode 100644 index 00000000..12dde5e2 --- /dev/null +++ b/plugin.video.alfa/servers/xstreamcdn.py @@ -0,0 +1,33 @@ +# -*- coding: utf-8 -*- + +import urllib +from core import httptools +from core import scrapertools +from core import jsontools +from platformcode import logger, config + + +def test_video_exists(page_url): + logger.info("(page_url='%s')" % page_url) + data = httptools.downloadpage(page_url).data + if "ile was deleted" in data or "Page Cannot Be Found" in data or "