Kodi Community Forum

Full Version: [REQUEST] BBC iPlayer (Video) Plugin or Script?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
ush285t Wrote:The iplayer plugin seems to crash on my XBMC build with an undefined name error. See debug log - http://pastebin.com/m6a626e6b.

Ta, just fixed the bug which causes this output - but this won't fix the problem you've having. It should have output "Can't find iplayer library - are you sure you installed the plugin correctly?" if that helps Smile

Please make sure you have a 'lib' directory in 'plugins\video\xbmc-iplayer-plugin', as it looks like you extracted the plugin incorrectly and missed most the files! (or they extracted into the wrong place)
Also, just a heads-up the latest release now has fixed support for the A-Z listings and is slightly quicker (temporarily turned off URL resolving until I get a chance to fix it properly)
Just for info' - all seems to be working fine for me now (same version of plugin and XBMC). I thought it would turn out to be a memory issue as the only difference is I hadn't turned on my NAS drive so no SMB connections were live.

But turned NAS on - browsed Movies and Music on NAS drive and then relaunched Iplayer and it still works!!? PLS note I always checked ISP connection before by trying ITV catchup plugin and that always streamed faultlessly.

Anyway all's well that ends well?!

Cheers again Johnsto
The new version doesn't work for me it doesnt even load up the listing here is my log i am on xbox.

the version before hand worked fine though at the end of a program it pauses then if you press A it will start then crash the xbox. (doesnt crash the xbox but the controller no longer works)

Code:
23:01:50 M: 57630720  NOTICE: -----------------------------------------------------------------------
23:01:50 M: 57610240  NOTICE: Starting XBMC, Platform: Xbox.  Built on Oct  6 2008
23:01:50 M: 57610240  NOTICE: Q is mapped to: C:\Dashboard
23:01:50 M: 57610240  NOTICE: The executable running is: C:\Dashboard\Dashboard.xbe
23:01:50 M: 57610240  NOTICE: Log File is located: Q:\xbmc.log
23:01:50 M: 57610240  NOTICE: -----------------------------------------------------------------------
23:01:50 M: 57610240  NOTICE: Unmapped drive T
23:01:50 M: 57589760  NOTICE: Mapping drive T to Harddisk0\Partition2\Dashboard\UserData
23:01:50 M: 57589760  NOTICE: Setup DirectX
23:01:50 M: 57565184  NOTICE: Mapping drive C to Harddisk0\Partition2
23:01:50 M: 57565184  NOTICE: Mapping drive E to Harddisk0\Partition1
23:01:50 M: 57565184  NOTICE: Unmapped drive D
23:01:50 M: 57565184  NOTICE: Mapping drive D to Cdrom0
23:01:51 M: 57565184  NOTICE: Mapping drive F to Harddisk0\Partition6
23:01:51 M: 57565184  NOTICE: Mapping drive X to Harddisk0\Partition3
23:01:51 M: 57565184  NOTICE: Mapping drive Y to Harddisk0\Partition4
23:01:51 M: 57565184  NOTICE: Unmapped drive Z
23:01:51 M: 57565184  NOTICE: Mapping drive Z to Harddisk0\Partition5
23:01:51 M: 57561088  NOTICE: load settings...
23:01:51 M: 57561088  NOTICE: Mapping drive P to Harddisk0\Partition2\Dashboard\UserData
23:01:51 M: 57561088  NOTICE: loading T:\guisettings.xml
23:01:51 M: 56721408  NOTICE: Getting hardware information now...
23:01:51 M: 56700928  NOTICE: Checking resolution 1
23:01:51 M: 56537088  NOTICE: Getting hardware information now...
23:01:51 M: 56516608  NOTICE: Checking resolution 1
23:01:51 M: 56516608  NOTICE: Per AV pack settings are on
23:01:51 M: 56516608  NOTICE: HDTV found : loading T:\avpacksettings.xml
23:01:51 M: 56422400  NOTICE: Getting hardware information now...
23:01:51 M: 56422400  NOTICE: Checking resolution 1
23:01:51 M: 57344000  NOTICE: q:\UserData\sources.xml
23:01:51 M: 46747648   ERROR: Window Translator: Can't find window xlinkkai
23:01:51 M: 46858240  NOTICE: Checking the Date!
23:01:51 M: 46874624  NOTICE: start dvd mediatype detection
23:01:51 M: 46809088  NOTICE: initializing playlistplayer
23:01:51 M: 46809088  NOTICE: DONE initializing playlistplayer
23:01:51 M: 46809088  NOTICE: setting fanspeed
23:01:51 M: 46800896  NOTICE: load default skin:[MediaStream]
23:01:52 M: 41598976   ERROR: Window Translator: Can't find window settingscategory
23:01:52 M: 41578496   ERROR: Error evaluating boolean expression !Window.Previous(0) + !Window.Previous(SettingsCategory) + !Window.Previous(1001) + !Window.Previous(130) + !Window.Previous(34)
23:01:53 M: 40120320  NOTICE: use DHCP
23:01:53 M: 39804928  NOTICE: Updating video library on startup
23:01:53 M: 39280640  NOTICE: initialize done
23:01:53 M: 39239680  NOTICE: Running the application...
23:01:55 M: 34992128  NOTICE: start timeserver client
23:01:55 M: 34926592  NOTICE: Webserver: Starting...
23:01:55 M: 34848768  NOTICE: XBFileZilla: Starting...
23:01:55 M: 34775040  NOTICE: Webserver: Started
23:01:55 M: 34426880  NOTICE: ES: Starting event server
23:01:55 M: 33366016  NOTICE: ES: Starting UDP Event server on 0.0.0.0:9777
23:01:55 M: 33304576  NOTICE: UDP: Listening on port 9777
23:01:55 M: 32575488  NOTICE: XBFileZilla: Started
23:02:03 M: 32825344   ERROR: SMBDirectory->GetDirectory: Unable to open directory : 'smb://192.168.1.2/media/videos/TV%20Shows/Heroes%20Season%203'
                             unix_err:'2' nt_err : 'c0000034' error : 'NT_STATUS_OBJECT_NAME_NOT_FOUND'
23:02:04 M: 32825344   ERROR: SMBDirectory->GetDirectory: Unable to open directory : 'smb://192.168.1.2/media/videos/TV%20Shows/Smallville%20Season%208'
                             unix_err:'2' nt_err : 'c0000034' error : 'NT_STATUS_OBJECT_NAME_NOT_FOUND'
23:02:05 M: 32825344   ERROR: SMBDirectory->GetDirectory: Unable to open directory : 'smb://192.168.1.2/media/videos/TV%20Shows/Stargate%20Atlantis%20Season%205'
                             unix_err:'2' nt_err : 'c0000034' error : 'NT_STATUS_OBJECT_NAME_NOT_FOUND'
23:02:06 M: 32825344   ERROR: SMBDirectory->GetDirectory: Unable to open directory : 'smb://192.168.1.2/media/videos/TV%20Shows/The%20Sarah%20Connor%20Chronicles%20Season%202'
                             unix_err:'2' nt_err : 'c0000034' error : 'NT_STATUS_OBJECT_NAME_NOT_FOUND'
23:02:07 M: 32829440  NOTICE: My Videos: Scanning for video info using worker thread, operation took 00:14
23:02:19 M: 35479552 WARNING: DIRECTORY::CVideoDatabaseDirectory::GetLabel - Unknown nodetype requested 6
23:02:23 M: 34971648   ERROR: Unable to load: Q:\plugins\video\xbmc-iplayer-plugin\resources\settings.xml, Line 0
                             Error document empty.
23:02:23 M: 32579584  NOTICE: -->Python Initialized<--
23:02:23 M: 32579584  NOTICE:
23:02:26 M: 27738112  NOTICE: iplayer2 logging to stdout
23:02:26 M: 27738112  NOTICE:
23:02:26 M: 27738112  NOTICE: Q:\plugins\video\xbmc-iplayer-plugin\iplayer_cache doesn't exist, creating
23:02:26 M: 27738112  NOTICE:
23:02:26 M: 27738112  NOTICE: ['plugin://video/xbmc-iplayer-plugin/', '0', '']
23:02:26 M: 27738112  NOTICE:
23:02:26 M: 27738112  NOTICE: Traceback (most recent call last):
23:02:26 M: 27738112  NOTICE:   File "Q:\plugins\video\xbmc-iplayer-plugin\default.py", line 266, in ?
23:02:26 M: 27738112  NOTICE:
23:02:26 M: 27738112  NOTICE: timeout = int(xbmcplugin.getSetting('sockettimeout'))
23:02:26 M: 27738112  NOTICE: ValueError
23:02:26 M: 27738112  NOTICE: :
23:02:26 M: 27738112  NOTICE: invalid literal for int():
23:02:26 M: 27738112  NOTICE:
23:02:26 M: 27738112   ERROR: Scriptresult: Error
23:02:26 M: 28262400  NOTICE: .
23:02:26 M: 34963456   ERROR: CGUIMediaWindow::GetDirectory(plugin://video/xbmc-iplayer-plugin/) failed
23:02:26 M: 34951168 WARNING: DIRECTORY::CVideoDatabaseDirectory::GetLabel - Unknown nodetype requested 6
me tooSad I tried the latest zip with this fix

http://code.google.com/p/xbmc-iplayer/is...l?id=25#c1

but the same symptom's persisted

http://pastebin.com/m5e8a0aa6

seems to be a lot of memory leaks and python stops working Shocked
Whoops, sorry about that, think I've fixed it in the latest release.
Works for me now thank you.Big Grin

And my daughter says thank you to Oo Cbeebies!!!!
Very grateful for all the work that's gone into this, thanks Big Grin unfortunately I've got 2 problems:

1. Is there any reason why i can't get program names? All i get are names like b000dv5d4streaming93655638. I've tried messing with the settings but it doesn't make any difference, any ideas?

2. When I try to watch a program it randomly fails to show the video but plays the audio... if i try to stop playing it, the xbox then hangs... log here:
http://pastebin.ca/1225233

I'm using beta2 on xbox.

thanks.
Hi, works great here also.

xbox, Beta 2, iplayer .....121223.zip.

Looking forward to the gloss being added to this brill plugin!

Thanks
cromity123 Wrote:1. Is there any reason why i can't get program names? All i get are names like b000dv5d4streaming93655638. I've tried messing with the settings but it doesn't make any difference, any ideas?

Those names are the filenames from the URL (e.g. http://www.some_site.com/blah/b000dv5d4s...ng93655638), which suggests you do have a setting somewhere to show filenames rather than titles. Not sure where though Huh
cromity123 Wrote:1. Is there any reason why i can't get program names? All i get are names like b000dv5d4streaming93655638. I've tried messing with the settings but it doesn't make any difference, any ideas?

I'm suffering from the same problem, both the xbox's in the house display all the program names like that, was hoping someone knew the cure
Old and no longer relevant perhaps, but you may remember myself and some others being unable to locate the iplayer.log file.

When recently upgrading an application on my Mac, I discovered an iplayer.log file in the main Applications directory, that is

/Applications/

This is where Plex (and XBMC) reside. So previously your plugin was (incorrectly) creating the log file in the same location as the application. Standard log file locations on a Mac (which as a reminder is a Unix based operating system) are

/Library/Logs/
/var/log/
/Users/username/Library/Logs/

I believe you switched to using the standard xbmc.log (or plex.log) so this no longer applies. Those logs are located in

/Users/username/Library/Logs/

which is what I believe would be the most appropriate location for your iplayer.log

... just thought you might like to know the answer to one mystery.
Manicfodder Wrote:I'm suffering from the same problem, both the xbox's in the house display all the program names like that, was hoping someone knew the cure

Really not sure what's causing this, appears to be displaying URLs rather than the title given. Will have a peek tonight.
jelockwood Wrote:... just thought you might like to know the answer to one mystery.

Ta, yep, or now it just writes to xbmc.log if it can't create iplayer2.log in the cwd. So you may still find iplayer2.log in your Apps folder...

...unless I fix/change it Smile
"Looking forward to the gloss being added to this brill plugin!"

Will there be any Huh will it ever look like it did as a script? looked DAM good then!