filmontv: test con nuova epg
This commit is contained in:
@@ -11,7 +11,7 @@ from core.item import Item
|
|||||||
from platformcode import logger, config
|
from platformcode import logger, config
|
||||||
import gzip
|
import gzip
|
||||||
|
|
||||||
host = "http://www.epgitalia.tv/xml/guide.gzip"
|
host = "http://www.epgitalia.tv/xml/guide2.gzip"
|
||||||
|
|
||||||
|
|
||||||
def mainlist(item):
|
def mainlist(item):
|
||||||
@@ -55,7 +55,7 @@ def peliculas(item):
|
|||||||
for prog in xml.findall('programme[credits]'): # se hanno il cast probabilmente si tratta di un contenuto cinematografico
|
for prog in xml.findall('programme[credits]'): # se hanno il cast probabilmente si tratta di un contenuto cinematografico
|
||||||
title = prog.find('title')
|
title = prog.find('title')
|
||||||
if title is not None:
|
if title is not None:
|
||||||
title = title.text
|
title = title.text.replace(' - 1^TV', '')
|
||||||
# non mostro 2 volte lo stesso film
|
# non mostro 2 volte lo stesso film
|
||||||
for it in itemlist:
|
for it in itemlist:
|
||||||
if it.contentTitle == title:
|
if it.contentTitle == title:
|
||||||
@@ -89,7 +89,7 @@ def peliculas(item):
|
|||||||
itemlist.append(Item(
|
itemlist.append(Item(
|
||||||
channel=item.channel,
|
channel=item.channel,
|
||||||
action='new_search',
|
action='new_search',
|
||||||
title=title + episode,
|
title=title,
|
||||||
search_text=title,
|
search_text=title,
|
||||||
mode=item.contentType,
|
mode=item.contentType,
|
||||||
year=date if date else '-',
|
year=date if date else '-',
|
||||||
|
|||||||
Reference in New Issue
Block a user