2013-02-05, 08:29
(2013-01-13, 22:30)Clarky_X Wrote: Hi. Many thanks for the fix. Before I apply it and upload it to the ATV, can I just clarify if the above is an addition to the .py file? So the new def SHOWS(url) routine should be as follows.
def SHOWS(url):
response = get_url(url)
code=re.sub('&','&',response)
code=code.replace('<ProgrammeMediaUrl />','<ProgrammeMediaUrl>DefaultVideo.png</ProgrammeMediaUrl>')
match=re.compile('<ProgrammeId>(.+?)</ProgrammeId>\r\n <ProgrammeTitle>(.+?)</ProgrammeTitle>\r\n <ProgrammeMediaId>.+?</ProgrammeMediaId>\r\n <ProgrammeMediaUrl>(.+?)</ProgrammeMediaUrl>\r\n <LastUpdated>.+?</LastUpdated>\r\n <Url>.+?</Url>\r\n <EpisodeCount>(.+?)</EpisodeCount>').findall(code)
for url,name,thumb,epnumb in match:
if not int(epnumb)<1:
addDir(name+' - '+epnumb+' Episodes Available.',url,2,thumb)
I would welcome the addition of organisation by channel so ITV1, 2, 3, 4 etc are listed separately just like the BBC iPlayer app.
Thanks.
Oh Man.
I tried this and I do get some additional programs which use the default.png, but I know I am looking for "MR Selfridge" and that show just isn't there
Bummer