Kodi Community Forum
[RELEASE] myTV - TV Guide Script (with pluginsnew script) - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Program Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=151)
+---- Thread: [RELEASE] myTV - TV Guide Script (with pluginsnew script) (/showthread.php?tid=12895)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48


- warius - 2006-10-14

First of all, great script!

Looks fantastic with the new MC360 look also! Smile

I'm using the nettavisen.no feed to update my channels, and I've run into a strange bug.

After midnight (pre 00:00) it doesn't return any program information. It just says "No programme". I tried alternating a 24H/12H clock, but it doesn't help.

Any ideas? Is it the source (nettavisen.no) or the script?


- warius - 2006-10-14

Quote:(pre 00:00)
Errr... I meant after 00:00


- BigBellyBilly - 2006-10-14

Did you move forward in time using the epg or the direct navigation popup lists ?
Seems ok to me at moment?

the url it forms are:
next day url (day delta1):
http://pub.tv2.no/nettavisen/do/tvguide/search?category=alle&timeslot=0&sort=channel&textquery=&day=2&channel=tv2

and the next, day delta 2
http://pub.tv2.no/nettavisen/do/tvguide/search?category=alle&timeslot=0&sort=channel&textquery=&day=2&channel=tv2

What xbmc/mytv versions are u running ?
Try clearing myTV cache, then run again, maybe their site was down temp?



BBB


- BigBellyBilly - 2006-10-14

(wheres the post edit button gone ?)

I've found a case where toggling between epg/nav lists and moving to new times, can cause a crash when setting focus to correct epg btn. (now fixed)

Don't think thats releated to your problem. Let me know if it persists.


Same problem as scrapp - exorcist - 2006-10-15

I have exactly! the same problem as scrapp. I have edited AusRSS.py and even removed any other REGION and PROVIDER entries than Sydney and free.
Still I end up with the Brisbane channels, like ABC Queensland and Briz 31, although as you showed the correct datasource XML for Sydney would contain the correct channels ABC NSW and Channel 31. I have tried everything like clearing the datasource cache, deleting the AusRSS.pyo file, manually FTP/Editing config.dat to use my customised copy of AusRSS.py. Nothing seems to work. I still end up with the Brisbane channels. Very strange.


- BigBellyBilly - 2006-10-15

ok, i've found the problem.
If you've run myTV it creates the channels file Channels_AusRSS.dat

Then if you change the datasource code REGION (ie Sydney), it doesnt re-download the channels as the channels data file already exists.

Quick fix: delete cache\Channels_AusRSS.dat then re-run

That should fix it.

Channels you should see:
Brisbane:
free.Brisbane.10,Network TEN,TEN
free.Brisbane.2,ABC Queensland,ABC
free.Brisbane.31,Briz 31,Ch31
free.Brisbane.7,Channel Seven,Ch7
free.Brisbane.9,Channel Nine,Ch9
free.Brisbane.SBS,SBS,SBS

Sydney:
free.Sydney.10,Network TEN,TEN
free.Sydney.2,ABC NSW,ABC
free.Sydney.31,Channel 31,Ch31
free.Sydney.7,Channel Seven,Ch7
free.Sydney.9,Channel Nine,Ch9
free.Sydney.SBS,SBS,SBS


- BigBellyBilly - 2006-10-15

i've updated the datasource to be ONLY configurable via myTV - no longer need to edit file.
On first run it will ask for setup and can then be re-setup from ConfigMenu.

Download new datasource_AusRSS here

Let me know of any pros.


- warius - 2006-10-15

BigBellyBilly Wrote:What xbmc/mytv versions are u running ?
XBMC-2.0.0-FINAL-FAT-T3CH, and if I'm not mistaken this came with MyTV installed. The MyTV changelog in my directory reports v 1.14 (20/09/06) as latest update, so I'm guessing thats the version.

BigBellyBilly Wrote:Did you move forward in time using the epg or the direct navigation popup lists ?
I think I've tried that without success, but I will get back to you on this. Since this is a timerelated bug, I have to check it out. Will try around midnight tonight if I get the chance.

BigBellyBilly Wrote:Try clearing myTV cache, then run again, maybe their site was down temp?
Are you talking about the "mytv/cache" directory?

On that note, I've edited Channels_Nettavisen.dat to fit the channels I have.

it now contains
Quote:nrktv1,NRK 1
nrktv2,NRK 2
tv2,TV 2
tv2xtra,TV 2 Zebra
tv3,TV 3
ztvnor,ZTV
tvn,TV Norge
svtv1,SVT 1
svtv2,SVT 2
mtv,MTV
cnn,CNN
natgeoch,Nat.Geo.
viaspo,SportN
cartoon,Cartoon Network
travel,Travel Channel
tv5,TV 5
I'm guessing thats not a problem, but I just thought I should mention it


- BigBellyBilly - 2006-10-15

V1.14c from XBMCScripts.com is the latest version.

yes, i meant clearing myTV cache. When I run it mayself (using latest version of course) all seems ok with that datasource ?
So i suggest getting new version, clearing cache completely and try again.


- BigBellyBilly - 2006-10-15

sorry, make that 1.14b


- warius - 2006-10-17

Hi again Smile

So I updated to the latest version (deleted the entire script and made a fresh install)

Exactly the same thing happens.

For some odd reason, my XBMC version can't make screenshots of the script.

But I think I've figured out what's wrong, and it's not your script, It's the source itself.

This has been happening every night, with every version of the script I've used.

When passing midnight, the channels list lists "no programme" on every channel, even though there is obviously something on tv. So I tried looking at nettavisen.no and look at how the shows are timelined when querying for today's date.

They start the day with displaying the morning shows (around 7:00 in the morning) rather than starting at 00:00. And the timeline continues to 02:00-03:00 past midnight (actually making it the next day/date). My guess I's that when you run the script after midnight, there's no information on what's on tv because that is stored (at the source/nettavisen.no) on the previous date.

Are you following me? I know I'm not the best at explaining stuff in english.

Maybe I'm way off, or maybe nettavisen.no isn't such a good source...?

Anywhoo, thanks for answering, and making this great script!


- BigBellyBilly - 2006-10-17

i *think* i understand, so i'll examine it closer.
Is there an alternative site that would make a better datasource for your country ?


- warius - 2006-10-17

If we're pretending that I'm right, and that the problem is the way the timeline is presented, all of these would be rendered useless.

http://tv.aftenposten.no/Welcome.do
http://www.dagbladet.no/tvprogram/
http://www.sol.no/underholdning/tv/guiden/
http://nationen.dagenstv.com/chart/colview.asp?fp=1

This one is different:

http://interaktiv.vg.no/tvguiden/

This belongs to Norway's biggest newspaper (both in paper & online). It should therefore be reliable both in content and stability. I have no idea if you can utilize it in your script, as I have no idea what's required.

I'll be happy to assist you in any way I can, I'm just not that resourceful when it comes to programming Smile


Error handling when unable to connect - warius - 2006-10-17

Also, one more thing I'd like to bring up.

When first using the script after a boot, it downloads content for all the channels. I use MC360 and when downloading the channel-info it displays a dialog much like the "Guide"-blade. If for some reason you're not able to connect to your source, you get a "OK" dialog (and another one if I remember correctly) for each channel you're downloading. This leads to a frustrating clicking/waiting scenario. I'm not saying it's the end of the world, what I usually do is just power the xbox off/on.

My question/suggestion is if it's possible to add a "Abort" button to the dialogs so you can kill the script and avoid the meaningless "OK/Cancel/Retry" dialog-nightmare (since in most cases if you can't retrieve one channel, you can't get any of the others either)?


- BigBellyBilly - 2006-10-17

datasources: The 'No Programme' is created when theres either no more data or a gap in times from end of last prog to start of next within same data file.
So the code should cope with 'gaps' in programming or listings starting at anytime of day.
This implies theres another problem with detecting times, which is quite a complicated area so will need a bit of time to examine correctly.

When using PMIII it pops a dialog up for each channel/date it fetching, i agree this can cause an annoying repeated blade slide in/out on MC360.
It would be nice be able to create a single dialog and 'update' its text as opposed to creating new each time. but thats not possible (i dont think).
A better way might be for mc360 display to just put a single dialog at beginning ie 'Downloading channels ...' then remove it when finished. not as informative but less annoying?

(just another reason why I'm not a big fan of the mc360 skin - its nice, but blades waste too much space in my opinion)

I'll re-think the abort strategy (currently 3 retries per channel, then 3 ch fails it gives up lokking for anymore channels)