From 1edef5fa575d35fd3e4f43eb83508bd205183a6f Mon Sep 17 00:00:00 2001 From: Alhaziel01 Date: Sun, 29 Mar 2020 23:21:57 +0200 Subject: [PATCH] Aggiunto Metal Video --- channels/metalvideo.json | 11 +++++++ channels/metalvideo.py | 63 ++++++++++++++++++++++++++++++++++++++++ core/support.py | 8 ++--- 3 files changed, 78 insertions(+), 4 deletions(-) create mode 100644 channels/metalvideo.json create mode 100644 channels/metalvideo.py diff --git a/channels/metalvideo.json b/channels/metalvideo.json new file mode 100644 index 00000000..6770be04 --- /dev/null +++ b/channels/metalvideo.json @@ -0,0 +1,11 @@ +{ + "id": "metalvideo", + "name": "Metal Video", + "active": true, + "adult": false, + "language": ["all"], + "thumbnail": "metalvideo.png", + "banner": "metalvideo.png", + "categories": ["music"], + "settings" :[] +} diff --git a/channels/metalvideo.py b/channels/metalvideo.py new file mode 100644 index 00000000..5f6b66f8 --- /dev/null +++ b/channels/metalvideo.py @@ -0,0 +1,63 @@ +# -*- coding: utf-8 -*- +# ------------------------------------------------------------ +# Canale per altadefinizione01 +# ------------------------------------------------------------ + +from core import support +from core.item import Item +from platformcode import config +from xml.dom import minidom + +#impostati dinamicamente da findhost() + + +host = 'https://metalvideo.com' +headers={'X-Requested-With': 'XMLHttpRequest'} + +list_servers = ['youtube'] +list_quality = ['default'] + +@support.scrape +def mainlist(item): + item.url = host + action = 'peliculas' + patronBlock = r'