pewpew1 Wrote:I am trying to understand python and xbmc better, so I download the tv2 plugin and found out when you click to watch a program, you are able to click other programs for a sec or so, before the DialogProgress window apear (if you click alot it will try to show alot of programs (flood)). So I looked in the code to try to fix it - but no luck. First I thought it was a xbmc bug like this one http://forum.xbmc.org/showthread.php?tid...ogProgress (should be fixed tho).
But without the DialogProgress window it still takes time before the stream is shown. I still believe it is a xbmc bug because I can not see any problems in the code, so anyone else having this problem? I have this problem on my linux and win7 box.
Well, maybe - for some reason - a function is called before playVideo (if key and id is set.. maybe), and that gives the delay. I may look at it later...
And I found 2 other things:
- When you use the DialogProgress you should check if someone have clicked cancel (right now you cant cancel even though you are able to click cancel, and it print it is cancelled).
- when click "tour de france 2009", some of the programs are shown more then once (I have only seen this in the "tour" view - but have not used the addon that much).
But keep up the good work - xbmc is great and so is the new addons
(this is written on my android desire, so I hope the text is understandable)
Thanks for the feedback. I had a quick look on the video flood problem, but I don't think it's something I can fix in the python script. I think the delay (about 0.5-1 sec on my laptop) is caused by initializing the python engine, etc.
I added the progress dialog in the last version, to give the impression of something happening, instead of sometimes up to 5-10 seconds on my laptop (due to slow wifi, etc.) with no visual status of anything happening
About the other things you mentioned. I will add a check for the canceled progress dialog. The duplicate videos are actually also available on video.tv2.dk, so I can't do much about that.