Nuova Videoteca Gestione episodi locali (Inizio)

This commit is contained in:
Alhaziel01
2021-06-10 19:07:53 +02:00
parent 3fd09dbb11
commit 0cceffea0c
7 changed files with 166 additions and 136 deletions
+8 -8
View File
@@ -863,14 +863,14 @@ def get_episodes(item):
episodes = getattr(channel, item.contentAction)(item)
itemlist = []
if episodes and not scrapertools.find_single_match(episodes[0].title, r'(\d+.\d+)') and item.channel not in ['videolibrary'] and item.action != 'season':
from platformcode.autorenumber import select_type, renumber, check
# support.dbg()
if not check(item):
select_type(item)
return get_episodes(item)
else:
renumber(episodes, item)
# if episodes and not scrapertools.find_single_match(episodes[0].title, r'(\d+.\d+)') and item.channel not in ['videolibrary'] and item.action != 'season':
# from platformcode.autorenumber import select_type, renumber, check
# # support.dbg()
# if not check(item):
# select_type(item)
# return get_episodes(item)
# else:
# renumber(episodes, item)
# We get the list of episodes...
for episode in episodes:
-6
View File
@@ -68,12 +68,6 @@
"@60620"
]
},
{
"id": "local_episodes",
"type": "bool",
"label": "@80042",
"default": false
},
{
"id": "lab_1",
"type": "label",
+4 -3
View File
@@ -339,10 +339,10 @@ def findvideos(item):
videolibrarydb.close()
if item.window:
p_dialog.update(50)
if videolibrary_items.get('local'):
try:
item.url = videolibrary_items['local']
local = videolibrary_items['local']
item.url = local.get('db', local.get('internal', local.get('connected')))
if not '/' in item.url and not '\\' in item.url:
path = videolibrarytools.MOVIES_PATH if item.contentType == 'movie' else videolibrarytools.TVSHOWS_PATH
item.url = filetools.join(path, item.url)
@@ -450,7 +450,8 @@ def play(item):
else:
itemlist = [item.clone()]
else:
itemlist = [item.clone(url=item.url, server="local")]
return platformtools.play_video(item.clone(url=item.url, server="local"))
# itemlist = [item.clone(url=item.url, server="local")]
# For direct links in list format
if isinstance(itemlist[0], list):