fix Autorenumber
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
# Canale per AnimeUnity
|
# Canale per AnimeUnity
|
||||||
# ------------------------------------------------------------
|
# ------------------------------------------------------------
|
||||||
|
|
||||||
import requests, json, copy
|
import requests, json, copy, inspect
|
||||||
from core import support
|
from core import support
|
||||||
from platformcode import autorenumber
|
from platformcode import autorenumber
|
||||||
|
|
||||||
@@ -212,7 +212,8 @@ def episodios(item):
|
|||||||
contentType='episode',
|
contentType='episode',
|
||||||
url=it['link']))
|
url=it['link']))
|
||||||
|
|
||||||
autorenumber.start(itemlist, item)
|
if inspect.stack()[1][3] not in ['find_episodes']:
|
||||||
|
autorenumber.start(itemlist, item)
|
||||||
support.videolibrary(itemlist, item)
|
support.videolibrary(itemlist, item)
|
||||||
support.download(itemlist, item)
|
support.download(itemlist, item)
|
||||||
return itemlist
|
return itemlist
|
||||||
|
|||||||
@@ -105,7 +105,7 @@ def peliculas(item):
|
|||||||
if pagination and len(itemlist) >= item.page * pagination and not item.search:
|
if pagination and len(itemlist) >= item.page * pagination and not item.search:
|
||||||
itlist.append(item.clone(channel=item.channel, action = 'peliculas', title=support.typo(support.config.get_localized_string(30992), 'color kod bold'), page=item.page + 1, thumbnail=support.thumb()))
|
itlist.append(item.clone(channel=item.channel, action = 'peliculas', title=support.typo(support.config.get_localized_string(30992), 'color kod bold'), page=item.page + 1, thumbnail=support.thumb()))
|
||||||
itemlist = itlist
|
itemlist = itlist
|
||||||
autorenumber.renumber(itemlist, item, 'bold')
|
autorenumber.start(itemlist)
|
||||||
return itemlist
|
return itemlist
|
||||||
|
|
||||||
|
|
||||||
@@ -156,7 +156,8 @@ def episodios(item):
|
|||||||
action='findvideos'))
|
action='findvideos'))
|
||||||
|
|
||||||
itemlist.sort(key=lambda item: (item.season, item.episode))
|
itemlist.sort(key=lambda item: (item.season, item.episode))
|
||||||
autorenumber.renumber(itemlist, item, 'bold')
|
if inspect.stack()[1][3] not in ['find_episodes']:
|
||||||
|
autorenumber.start(itemlist, item)
|
||||||
return support.videolibrary(itemlist, item)
|
return support.videolibrary(itemlist, item)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -3,7 +3,7 @@
|
|||||||
# Canale per Rai Play
|
# Canale per Rai Play
|
||||||
# ------------------------------------------------------------
|
# ------------------------------------------------------------
|
||||||
|
|
||||||
import requests, sys
|
import requests, sys, inspect
|
||||||
from core import support
|
from core import support
|
||||||
from platformcode import autorenumber
|
from platformcode import autorenumber
|
||||||
if sys.version_info[0] >= 3:
|
if sys.version_info[0] >= 3:
|
||||||
@@ -297,7 +297,7 @@ def episodios(item):
|
|||||||
it.title = support.typo(item.season + 'x' + episode, 'bold') + (' - ' + it.title)
|
it.title = support.typo(item.season + 'x' + episode, 'bold') + (' - ' + it.title)
|
||||||
|
|
||||||
if itemlist and itemlist[0].VL: support.videolibrary(itemlist, item)
|
if itemlist and itemlist[0].VL: support.videolibrary(itemlist, item)
|
||||||
if itemlist and not support.match(itemlist[0].title, patron=r'[Ss]?(\d+)(?:x|_|\.|\s+)[Ee]?[Pp]?(\d+)').match:
|
if itemlist and not support.match(itemlist[0].title, patron=r'[Ss]?(\d+)(?:x|_|\.|\s+)[Ee]?[Pp]?(\d+)').match and inspect.stack()[1][3] not in ['find_episodes']:
|
||||||
autorenumber.start(itemlist, item)
|
autorenumber.start(itemlist, item)
|
||||||
return itemlist
|
return itemlist
|
||||||
|
|
||||||
|
|||||||
+3
-2
@@ -2,7 +2,7 @@
|
|||||||
# ------------------------------------------------------------
|
# ------------------------------------------------------------
|
||||||
# Canale per vvvvid
|
# Canale per vvvvid
|
||||||
# ----------------------------------------------------------
|
# ----------------------------------------------------------
|
||||||
import requests, sys
|
import requests, sys, inspect
|
||||||
from core import support, tmdb
|
from core import support, tmdb
|
||||||
from platformcode import autorenumber, logger
|
from platformcode import autorenumber, logger
|
||||||
|
|
||||||
@@ -170,7 +170,8 @@ def episodios(item):
|
|||||||
url= host + show_id + '/season/' + str(key['season_id']),
|
url= host + show_id + '/season/' + str(key['season_id']),
|
||||||
action= 'findvideos',
|
action= 'findvideos',
|
||||||
video_id= key['video_id']))
|
video_id= key['video_id']))
|
||||||
autorenumber.start(itemlist, item)
|
if inspect.stack()[1][3] not in ['find_episodes']:
|
||||||
|
autorenumber.start(itemlist, item)
|
||||||
if autorenumber.check(item) == True \
|
if autorenumber.check(item) == True \
|
||||||
or support.match(itemlist[0].title, patron=r"(\d+x\d+)").match:
|
or support.match(itemlist[0].title, patron=r"(\d+x\d+)").match:
|
||||||
support.videolibrary(itemlist,item)
|
support.videolibrary(itemlist,item)
|
||||||
|
|||||||
Reference in New Issue
Block a user