From e728947a6e46e944a8cc86c39eab5a713347cbc4 Mon Sep 17 00:00:00 2001 From: Alhaziel01 Date: Thu, 1 Jul 2021 09:23:37 +0200 Subject: [PATCH] Rimossi settaggi superflui da Aniplay --- channels/aniplay.json | 77 ------------------------------------------- core/item.py | 6 ++-- 2 files changed, 4 insertions(+), 79 deletions(-) diff --git a/channels/aniplay.json b/channels/aniplay.json index 78334d1f..afc23c7b 100644 --- a/channels/aniplay.json +++ b/channels/aniplay.json @@ -32,83 +32,6 @@ "enabled": true, "visible": true, "lvalues": ["10", "20", "30", "40", "50", "60", "80", "90"] - }, - { - "id": "include_in_global_search", - "type": "bool", - "label": "@70728", - "default": false, - "enabled": false, - "visible": false - }, - { - "id": "include_in_newest_peliculas", - "type": "bool", - "label": "@70727", - "default": false, - "enabled": false, - "visible": false - }, - { - "id": "include_in_newest_series", - "type": "bool", - "label": "@70727", - "default": false, - "enabled": false, - "visible": false - }, - { - "id": "include_in_newest_anime", - "type": "bool", - "label": "@70727", - "default": false, - "enabled": false, - "visible": false - }, - { - "id": "checklinks", - "type": "bool", - "label": "Verifica se i link esistono", - "default": false, - "enabled": false, - "visible": false - }, - { - "id": "checklinks_number", - "type": "list", - "label": "Numero di link da verificare", - "default": 2, - "enabled": false, - "visible": "eq(-1,false)", - "lvalues": [ "3", "5", "10", "15", "20" ] - }, - { - "id": "filter_languages", - "type": "list", - "label": "@30019", - "default": 0, - "enabled": false, - "visible": false, - "lvalues": ["Non Filtrare"] - } - ], - - "renumber": [ - { - "id": "autorenumber", - "type": "bool", - "label": "@70712", - "default": false, - "enabled": false, - "visible": false - }, - { - "id": "autorenumber_mode", - "type": "bool", - "label": "@70688", - "default": false, - "enabled": false, - "visible": "eq(-1,false)" } ] } \ No newline at end of file diff --git a/core/item.py b/core/item.py index a2b119e3..0bda66c9 100644 --- a/core/item.py +++ b/core/item.py @@ -150,7 +150,7 @@ class Item(object): for k in kw: if k in ["contentTitle", "contentPlot", "contentSerieName", "show", "contentType", "contentEpisodeTitle", "contentSeason", "contentEpisodeNumber", "contentThumbnail", "plot", "duration", "contentQuality", - "quality"]: + "quality", "year"]: self.__setattr__(k, kw[k]) del kwargs[k] @@ -180,7 +180,7 @@ class Item(object): # By modifying any of these attributes content... if name in ["contentTitle", "contentPlot", "plot", "contentSerieName", "contentType", "contentEpisodeTitle", - "contentSeason", "contentEpisodeNumber", "contentThumbnail", "show", "contentQuality", "quality"]: + "contentSeason", "contentEpisodeNumber", "contentThumbnail", "show", "contentQuality", "quality", "year"]: # ...and update infoLables if name == "contentTitle": self.__dict__["infoLabels"]["title"] = value @@ -200,6 +200,8 @@ class Item(object): self.__dict__["infoLabels"]["thumbnail"] = value elif name == "contentQuality" or name == "quality": self.__dict__["infoLabels"]["quality"] = value + elif name == "year": + self.__dict__["infoLabels"]["year"] = value elif name == "duration": # String q represents the duration of the video in seconds