[RELEASE] Demand 5 (Video) Addon - UK Channel 5 on demand

  Thread Rating:
  • 2 Votes - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
spoyser Offline
Senior Member
Posts: 236
Joined: Oct 2011
Reputation: 10
Post: #41
I can't speak for nibor but given that this plugin works perfectly in Dharma I would hazard a guess that it is more than likely a problem with Eden rather than the plugin itself (updated libraries?).

I have spent quite a while trying to fix it but without success but for any coders looking in it appears to be a problem with the encoding of the pyamf.remoting.Envelope

One thing I have noticed in Eden is that whilst the plugin is downloading an episode it also streams other episodes correctly (to allow this you need to comment out the final while loop in the download code), as soon as the download completes then it starts giving scripts errors.
find quote
zuccster Offline
Junior Member
Posts: 5
Joined: Jun 2011
Reputation: 0
Lightbulb    Post: #42
OK, I think I've cracked the script error in Eden Beta 2

in .xbmc/addons/plugin.video.demand5/pyamf/xml.py around line 72

add a try / except block around the
Code:
t = _get_etree_type(etree)
call thus:

Code:
try:
            t = _get_etree_type(etree)
        except TypeError:
            continue


Modified copy here
Also, for convenience a default.py with spoyser's fixed episode parsing.
find quote
spoyser Offline
Senior Member
Posts: 236
Joined: Oct 2011
Reputation: 10
Post: #43
zuccster Wrote:OK, I think I've cracked the script error in Eden Beta 2

in .xbmc/addons/plugin.video.demand5/pyamf/xml.py around line 72

add a try / except block around the
Code:
t = _get_etree_type(etree)
call thus:

Code:
try:
            t = _get_etree_type(etree)
        except TypeError:
            continue


Modified copy here
Also, for convenience a default.py with spoyser's fixed episode parsing.

SmileSmile

Good one!!

Weird thing is I was just looking at that line, put a try/except in to see what was going on and lo and behold found that it then worked!

Not sure if it is a bug in the pyamf libraries themselves (surely they have been tested to death by now!) or the way they are being used by the plugin, or why it is only in Eden, but who cares it works. I can finally upgrade the living room XBMC to Eden (my 6 year old wouldn't let me until Milkshake worked!!)

SmileSmile
(This post was last modified: 2012-01-27 12:14 by spoyser.)
find quote
Jimmer Offline
Member+
Posts: 337
Joined: Jan 2010
Reputation: 3
Location: Sunny Devon, UK
Post: #44
zuccster Wrote:Modified copy here
Also, for convenience a default.py with spoyser's fixed episode parsing.

Dude, for a high gaf (like waf, but living in sin!) demand5 is essential. This is a solid fix and you have my thanks!

+thanks to Spoyser for the parsing fix, too.

Anyone let Nibor know about the fixes? Haven't seen any activity on his repo...

Jim
find quote
zuccster Offline
Junior Member
Posts: 5
Joined: Jun 2011
Reputation: 0
Post: #45
I've just PM'ed him.
find quote
Death-Axe Offline
Fan
Posts: 674
Joined: Feb 2007
Reputation: 4
Post: #46
Cool fix man, thank you!

[Image: widget]
HTPC: Asrock 330BD, external USB storage, one for all remote/FLIRC, Logitech z906 surround system.
find quote
tdw197 Offline
Senior Member
Posts: 198
Joined: Oct 2006
Reputation: 0
Post: #47
Any reason why this fix wouldn't work in Linux? Just tried it and it won't play anything at all now.
find quote
zuccster Offline
Junior Member
Posts: 5
Joined: Jun 2011
Reputation: 0
Post: #48
tdw197 Wrote:Any reason why this fix wouldn't work in Linux? Just tried it and it won't play anything at all now.

Works OK for me on Linux. OS should make no difference. Is there anything in the log?
find quote
tdw197 Offline
Senior Member
Posts: 198
Joined: Oct 2006
Reputation: 0
Post: #49
zuccster Wrote:Works OK for me on Linux. OS should make no difference. Is there anything in the log?

Will have a look once I can get the wife away from it...
find quote
bladeds Offline
Senior Member
Posts: 205
Joined: May 2011
Reputation: 0
Post: #50
Is there any chance you any would upload a compiled fix copy of the plugin . Since I only have a iPad, no windows I can't download the py file
find quote
Post Reply