Extra info in server pop-up e fix link .torrent
This commit is contained in:
@@ -1279,6 +1279,7 @@ def server(item, data='', itemlist=[], headers='', AutoPlay=True, CheckLinks=Tru
|
|||||||
|
|
||||||
if videoitem.video_urls or srv_param.get('active', False):
|
if videoitem.video_urls or srv_param.get('active', False):
|
||||||
vi = item.clone(server=videoitem.server,
|
vi = item.clone(server=videoitem.server,
|
||||||
|
extraInfo=videoitem.extraInfo,
|
||||||
serverName=videoitem.serverName,
|
serverName=videoitem.serverName,
|
||||||
url=videoitem.url,
|
url=videoitem.url,
|
||||||
videoUrls= videoitem.videoUrlsn,
|
videoUrls= videoitem.videoUrlsn,
|
||||||
|
|||||||
@@ -1724,9 +1724,10 @@ def serverWindow(item, itemlist):
|
|||||||
for videoitem in self.itemlist:
|
for videoitem in self.itemlist:
|
||||||
videoitem.thumbnail = config.get_online_server_thumb(videoitem.server)
|
videoitem.thumbnail = config.get_online_server_thumb(videoitem.server)
|
||||||
quality = ' [' + videoitem.quality + ']' if videoitem.quality else ''
|
quality = ' [' + videoitem.quality + ']' if videoitem.quality else ''
|
||||||
|
info = ' [' + videoitem.extraInfo + ']' if videoitem.extraInfo else ''
|
||||||
if videoitem.server:
|
if videoitem.server:
|
||||||
color = scrapertools.find_single_match(videoitem.alive, r'(FF[^\]]+)')
|
color = scrapertools.find_single_match(videoitem.alive, r'(FF[^\]]+)')
|
||||||
it = xbmcgui.ListItem('{}{}'.format(videoitem.serverName, quality))
|
it = xbmcgui.ListItem('{}{}{}'.format(videoitem.serverName, quality, info))
|
||||||
|
|
||||||
# format Title
|
# format Title
|
||||||
if videoitem.contentSeason and videoitem.contentEpisodeNumber:
|
if videoitem.contentSeason and videoitem.contentEpisodeNumber:
|
||||||
@@ -1828,11 +1829,13 @@ def serverWindow(item, itemlist):
|
|||||||
from core.support import typo
|
from core.support import typo
|
||||||
for videoitem in self.itemlist:
|
for videoitem in self.itemlist:
|
||||||
if videoitem.server:
|
if videoitem.server:
|
||||||
|
logger.debug(videoitem)
|
||||||
videoitem.thumbnail = config.get_online_server_thumb(videoitem.server)
|
videoitem.thumbnail = config.get_online_server_thumb(videoitem.server)
|
||||||
quality = ' [' + videoitem.quality + ']' if videoitem.quality else ''
|
quality = ' [' + videoitem.quality + ']' if videoitem.quality else ''
|
||||||
color = scrapertools.find_single_match(videoitem.alive, r'(FF[^\]]+)')
|
color = scrapertools.find_single_match(videoitem.alive, r'(FF[^\]]+)')
|
||||||
color = typo(' •', 'bold color 0x{}'.format(color)) if color else ''
|
color = typo(' •', 'bold color 0x{}'.format(color)) if color else ''
|
||||||
title = '{}{}{}'.format(videoitem.serverName, quality, color)
|
info = ' [' + videoitem.extraInfo + ']' if videoitem.extraInfo else ''
|
||||||
|
title = '{}{}{}{}'.format(videoitem.serverName, quality, info, color)
|
||||||
else:
|
else:
|
||||||
title = videoitem.title
|
title = videoitem.title
|
||||||
it = xbmcgui.ListItem(title)
|
it = xbmcgui.ListItem(title)
|
||||||
|
|||||||
@@ -41,7 +41,7 @@
|
|||||||
"ignore_urls": [],
|
"ignore_urls": [],
|
||||||
"patterns": [
|
"patterns": [
|
||||||
{
|
{
|
||||||
"pattern": "(http:\\/\\/(?:[a-zA-Z0-9]+)\\.torrent)",
|
"pattern": "(http[s]?:\\/\\/(?:[a-zA-Z0-9]+)\\.torrent)",
|
||||||
"url": "\\1"
|
"url": "\\1"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -49,7 +49,7 @@
|
|||||||
"url": "\\1"
|
"url": "\\1"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"pattern": "(http://tumejorjuego.com/descargar/index.php\\?link=[^\"]+)",
|
"pattern": "(http[s]?://tumejorjuego.com/descargar/index.php\\?link=[^\"]+)",
|
||||||
"url": "\\1"
|
"url": "\\1"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user