From 68048f1d618d71eb38e3d7819ed92ffd6dc51a14 Mon Sep 17 00:00:00 2001 From: Alhaziel01 Date: Thu, 22 Jun 2023 18:30:18 +0200 Subject: [PATCH] Fix Metalvideo e Youtube (Necessarie API personali) --- channels/metalvideo.py | 34 ++++++++--------- platformcode/platformtools.py | 2 +- servers/youtube.py | 71 ++++++++++++++++++----------------- 3 files changed, 52 insertions(+), 55 deletions(-) diff --git a/channels/metalvideo.py b/channels/metalvideo.py index 4623a086..1a7a960f 100644 --- a/channels/metalvideo.py +++ b/channels/metalvideo.py @@ -9,37 +9,33 @@ host = 'https://metalvideo.com' headers = {'X-Requested-With': 'XMLHttpRequest'} -@support.scrape +@support.menu def mainlist(item): + menu = [('Generi',['', 'genres']), + ('Ultimi Video',['/videos/latest', 'peliculas']), + ('Top Video',['/videos/top', 'peliculas']), + ('Cerca...',['','search',])] + return locals() + + +@support.scrape +def genres(item): item.url = host action = 'peliculas' - patronBlock = r'