4oD (Channel4 on Demand) plugin development
#46
I have installed the add on in XBMC PRE 11.0 but when I select 4OD it comes up ''Error Script failed!: plugin.video.4OD''

Please help!!!
Reply
#47
Lightbulb 
irvin38a Wrote:I have installed the add on in XBMC PRE 11.0 but when I select 4OD it comes up ''Error Script failed!: plugin.video.4OD''

Please help!!!

Try looking in the logs and googling the error message!
Reply
#48
irishmark Wrote:Try looking in the logs and googling the error message!

Hi,

not got a clue what I'm looking for. Any advice would be much appreciated....


http://pastebin.com/pkkPMq8K
Reply
#49
@irishmark

Is your download working?

For me, the script fails when trying to download, looking at my log i get this:

18:48:02 T:2899278704 INFO: -->Python script returned the following error<--
18:48:02 T:2899278704 ERROR: Error Type: <type 'exceptions.ImportError'>
18:48:02 T:2899278704 ERROR: Error Contents: cannot import name STARTUPINFO
18:48:02 T:2899278704 ERROR: Traceback (most recent call last):
File "/home/xbmc/.xbmc/addons/plugin.video.4od/default.py", line 314, in <module>
PlayOrDownloadEpisode( episodeId, title, mycgi.Param('fn') )
File "/home/xbmc/.xbmc/addons/plugin.video.4od/default.py", line 196, in PlayOrDownloadEpisode
from subprocess import Popen, PIPE, STDOUT, STARTUPINFO
ImportError: cannot import name STARTUPINFO
18:48:02 T:2899278704 INFO: -->End of Python script error report<--
18:48:02 T:2899278704 INFO: Python script stopped
Reply
#50
All the 4OD genre categories return empty.

Only Search returns items,

Huh?
Reply
#51
yep can confirm, received 0 items when entering a category in windows & script error in linux.

Looks like ch4 have changed something.
Reply
#52
Seems back to normal!

Phew.
Reply
#53
Moved to right thread
Reply
#54
I'm still getting the following:

Code:
09:14:21 T:2940173168 M:1446563840  NOTICE: category=e4&show=made-in-chelsea&title=Made+in+Chelsea
09:14:21 T:2940173168 M:1446563840  NOTICE: search:
09:14:21 T:2940173168 M:1446563840  NOTICE: Looking for episodes for: Made in Chelsea
09:14:21 T:2940173168 M:1446563840  NOTICE: Traceback (most recent call last):
09:14:21 T:2940173168 M:1446563840  NOTICE:   File "/home/james/.xbmc/addons/plugin.video.4od/default.py", line 310, in ?
09:14:21 T:2940173168 M:1446563840  NOTICE:     ShowEpisodes( showId, title )
09:14:21 T:2940173168 M:1446563840  NOTICE:   File "/home/james/.xbmc/addons/plugin.video.4od/default.py", line 79, in ShowEpisodes
09:14:21 T:2940173168 M:1446563840  NOTICE:     ol = re.search( '<ol class="all-series">(.*?)</div>', html, re.DOTALL ).groups()[0]
09:14:21 T:2940173168 M:1446563840  NOTICE: AttributeError: 'NoneType' object has no attribute 'groups'
09:14:21 T:2940173168 M:1446563840   ERROR: Error Type: exceptions.AttributeError
09:14:21 T:2940173168 M:1446563840   ERROR: Error Contents: 'NoneType' object has no attribute 'groups'
09:14:21 T:2940173168 M:1446563840   ERROR: Traceback (most recent call last):
                                              File "/home/james/.xbmc/addons/plugin.video.4od/default.py", line 310, in ?
                                                ShowEpisodes( showId, title )
                                              File "/home/james/.xbmc/addons/plugin.video.4od/default.py", line 79, in ShowEpisodes
                                                ol = re.search( '<ol class="all-series">(.*?)</div>', html, re.DOTALL ).groups()[0]
                                            AttributeError: 'NoneType' object has no attribute 'groups'
09:14:21 T:3054393216 M:1446563840   ERROR: GetDirectory - Error getting plugin://plugin.video.4od/?category=e4&show=made-in-chelsea&title=Made+in+Chelsea
09:14:21 T:3054393216 M:1446563840   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.4od/?category=e4&show=made-in-chelsea&title=Made+in+Chelsea) failed
Reply
#55
spazbob Wrote:I'm still getting the following:

Code:
09:14:21 T:2940173168 M:1446563840  NOTICE: category=e4&show=made-in-chelsea&title=Made+in+Chelsea
09:14:21 T:2940173168 M:1446563840  NOTICE: search:
09:14:21 T:2940173168 M:1446563840  NOTICE: Looking for episodes for: Made in Chelsea
09:14:21 T:2940173168 M:1446563840  NOTICE: Traceback (most recent call last):
09:14:21 T:2940173168 M:1446563840  NOTICE:   File "/home/james/.xbmc/addons/plugin.video.4od/default.py", line 310, in ?
09:14:21 T:2940173168 M:1446563840  NOTICE:     ShowEpisodes( showId, title )
09:14:21 T:2940173168 M:1446563840  NOTICE:   File "/home/james/.xbmc/addons/plugin.video.4od/default.py", line 79, in ShowEpisodes
09:14:21 T:2940173168 M:1446563840  NOTICE:     ol = re.search( '<ol class="all-series">(.*?)</div>', html, re.DOTALL ).groups()[0]
09:14:21 T:2940173168 M:1446563840  NOTICE: AttributeError: 'NoneType' object has no attribute 'groups'
09:14:21 T:2940173168 M:1446563840   ERROR: Error Type: exceptions.AttributeError
09:14:21 T:2940173168 M:1446563840   ERROR: Error Contents: 'NoneType' object has no attribute 'groups'
09:14:21 T:2940173168 M:1446563840   ERROR: Traceback (most recent call last):
                                              File "/home/james/.xbmc/addons/plugin.video.4od/default.py", line 310, in ?
                                                ShowEpisodes( showId, title )
                                              File "/home/james/.xbmc/addons/plugin.video.4od/default.py", line 79, in ShowEpisodes
                                                ol = re.search( '<ol class="all-series">(.*?)</div>', html, re.DOTALL ).groups()[0]
                                            AttributeError: 'NoneType' object has no attribute 'groups'
09:14:21 T:3054393216 M:1446563840   ERROR: GetDirectory - Error getting plugin://plugin.video.4od/?category=e4&show=made-in-chelsea&title=Made+in+Chelsea
09:14:21 T:3054393216 M:1446563840   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.4od/?category=e4&show=made-in-chelsea&title=Made+in+Chelsea) failed

same issue here on ubuntu 10.10 using the standard xbmc installation from the repository. From a quick google search it appears that the script is not scraping the page correctly. Has anyone had this issue and solved it?
Reply
#56
Smiff Wrote:hi nibor. can't believe there hasn't been more response to this, because your plugin is superb and fills the last remaining big gap in UK ondemand services. thanks so much! for a v1.0 it's amazing. (i could never get youtube plugins to work properly for this content either).

not sure if you're interested in any suggestions now, but one i'd much appreciate would be an option to always play the video, and not show the download/play dialog? just a thought. or maybe default it to play? i can probably hack this myself if need be. cheers.

(works superbly on xbox recent builds in case you didn't know!) i think whufclee has pm-ed you about the repo
slight glitch with installation is I think due to the files being nested a folder deep, the person above probably just needs to extract manually and it should work.

This is a wonderful addon that works very well, thank you very much! As mentioned, I think it would be good if you could set it to play only rather than play and download. Is it possible to make this change as this would certainly be enhancement for those that don't need the download option. If Nibor is unable to do this at this time, Smiff, is it possible you can do anything on this?
Reply
#57
Smiff Wrote:hi nibor. can't believe there hasn't been more response to this, because your plugin is superb and fills the last remaining big gap in UK ondemand services. thanks so much! for a v1.0 it's amazing. (i could never get youtube plugins to work properly for this content either).

not sure if you're interested in any suggestions now, but one i'd much appreciate would be an option to always play the video, and not show the download/play dialog? just a thought. or maybe default it to play? i can probably hack this myself if need be. cheers.

(works superbly on xbox recent builds in case you didn't know!) i think whufclee has pm-ed you about the repo
slight glitch with installation is I think due to the files being nested a folder deep, the person above probably just needs to extract manually and it should work.
This is a wonderful addon that works very well, thank you very much! As mentioned, I think it would be good if you could set it to play only rather than play and download. Is it possible to make this change as this would certainly be enhancement for those that don't need the download option. If Nibor is unable to do this at this time, Smiff, is it possible you can do anything on this?
Reply
#58
mansman Wrote:This is a wonderful addon that works very well, thank you very much! As mentioned, I think it would be good if you could set it to play only rather than play and download. Is it possible to make this change as this would certainly be enhancement for those that don't need the download option. If Nibor is unable to do this at this time, Smiff, is it possible you can do anything on this?


If you do a search for the following thread "[REQUEST] Channel4 Catchup - 4oD (Channel 4 on Demand) Plugin?" you will see at post 121 that member alcoheca
did a fix for this, just change it in the new addon settingBig Grin
Reply
#59
Hi All

My 4oD addon has been updated to version 1.0.1 and the best way to get it and receive any future updates is to install my repository from:
http://nibor-xbmc-repo.googlecode.com/fi....nibor.zip

Changes in 1.0.1 include:
- Added a setting for default select action: Play/Download/Ask (Thanks to alcoheca)
- Added genre, episode number and first aired date episode information
- Remove unused subprocess module reference which caused errors on some platforms
- Changed use of deprecated md5 module to hashlib.md5 where available
- Fixed problem where duplicate episodes would sometimes appear
Reply
#60
hasselhof Wrote:If you do a search for the following thread "[REQUEST] Channel4 Catchup - 4oD (Channel 4 on Demand) Plugin?" you will see at post 121 that member alcoheca
did a fix for this, just change it in the new addon settingBig Grin
Hi haselhof, your tip worked a treat and I am now able to access content without the download prompt. Much appreciated!
Reply

Logout Mark Read Team Forum Stats Members Help
4oD (Channel4 on Demand) plugin development1