Piccoli fx
This commit is contained in:
+8
-5
@@ -95,11 +95,14 @@ def search(channel, item, texto):
|
||||
|
||||
def dbg():
|
||||
if config.dev_mode():
|
||||
import web_pdb
|
||||
if not web_pdb.WebPdb.active_instance:
|
||||
import webbrowser
|
||||
webbrowser.open('http://127.0.0.1:5555')
|
||||
web_pdb.set_trace()
|
||||
try:
|
||||
import web_pdb
|
||||
if not web_pdb.WebPdb.active_instance:
|
||||
import webbrowser
|
||||
webbrowser.open('http://127.0.0.1:5555')
|
||||
web_pdb.set_trace()
|
||||
except:
|
||||
pass
|
||||
|
||||
|
||||
def regexDbg(item, patron, headers, data=''):
|
||||
|
||||
@@ -327,6 +327,7 @@ def get_episodes(item):
|
||||
head_nfo, item_nfo = videolibrarytools.read_nfo(item.nfo)
|
||||
|
||||
# Create an item in the list for each strm found
|
||||
from core.support import dbg;dbg()
|
||||
for i in ficheros:
|
||||
ext = i.split('.')[-1]
|
||||
if ext not in ['json','nfo']:
|
||||
@@ -344,7 +345,7 @@ def get_episodes(item):
|
||||
head_nfo, epi = videolibrarytools.read_nfo(nfo_path)
|
||||
|
||||
# Set the chapter title if possible
|
||||
if epi.contentTitle:
|
||||
if epi.contentTitle and epi.contentTitle != epi.fulltitle:
|
||||
title_episodie = epi.contentTitle.strip()
|
||||
else:
|
||||
title_episodie = config.get_localized_string(60031) % (epi.contentSeason, str(epi.contentEpisodeNumber).zfill(2))
|
||||
|
||||
Reference in New Issue
Block a user