New Script (and Plugin) BBC PodRadio

  Thread Rating:
  • 2 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
TheBoxMan Offline
Fan
Posts: 351
Joined: Jan 2007
Reputation: -10
Rainbow    Post: #31
thanks BigBB

I'll update my own, my families, and the friends and relatives I've converted to XBMC by pure and simply showing them this script ;-)

Any progress on saving to HD on this issue?

Might try and tweak the order of things myself again. Last time all I managed to do was break the script Undecided

Anyway thanks for an awesome plugin and I'm sure I'll enjoy listening to BBC afrique to practise my french ;-)
find quote
ritalee Offline
Junior Member
Posts: 2
Joined: Apr 2008
Reputation: 0
Post: #32
hi BigBellyBilly,
im new at the forum and this is my first post. i'm testing xbmc on a ubuntu gutsy linux...and first impressions are really good...

today i've been testing some scripts, and yours should be very useful for me as i use to listen to bbc3radio...

ok here is my ploblem as reported in the log

00:02:21 T:3012545424 M:198672384 INFO: BBC PodRadio Version: 2.1 Date: 26-03-2008
00:02:21 T:3012545424 M:198672384 INFO: Traceback (most recent call last):
00:02:21 T:3012545424 M:198672384 INFO: File "/home/odin/XboxMc/scripts/TEST/BBC PodRadio/default.py", line 35, in ?
00:02:21 T:3012545424 M:198672384 INFO:
00:02:21 T:3012545424 M:198672384 INFO: import language
00:02:21 T:3012545424 M:198672384 INFO: ImportError
00:02:21 T:3012545424 M:198672384 INFO: :
00:02:21 T:3012545424 M:198672384 INFO: No module named language
00:02:21 T:3012545424 M:198672384 INFO:
00:02:21 T:3012545424 M:198672384 ERROR: Scriptresult: Error
00:02:22 T:3012545424 M:198533120 INFO: Python script stopped

could you, or any forum user, tell me if there is any solution?

im running latest svn xbmc on recently upgraded ubuntu gutsy

let me know if you need any other info/log...

thanks for your work...
ritalee
find quote
BigBellyBilly Offline
Skilled Python Coder
Posts: 959
Joined: Feb 2005
Reputation: 2
Location: UK
Post: #33
did you unpack the script and keep the subfolders intact ? as it looks like the language.py module isnt there.

resources\libs\
resources\languages\english

etc

My Addons (myTV, T3CH Upgrader, DVDProfiler, BBCPodRadio, Comics, Football, GoogleReader, reeplay.it, Metacritic, Phonebin, FileViewer,SVN Repo Installer (contributor)) available at Box.net
find quote
BigBellyBilly Offline
Skilled Python Coder
Posts: 959
Joined: Feb 2005
Reputation: 2
Location: UK
Post: #34
TheBoxMan: Nice to hear of it being so useful!.
The Podcasts now resolve to an mp3 file, so might be able to 'save' that when it shows the final item?
Others are items onwhich it still has to extract the rpm url, fetch then extract the rtsp audiostream, then play that url from the cache. so its not something you can save.

BBB

My Addons (myTV, T3CH Upgrader, DVDProfiler, BBCPodRadio, Comics, Football, GoogleReader, reeplay.it, Metacritic, Phonebin, FileViewer,SVN Repo Installer (contributor)) available at Box.net
find quote
ritalee Offline
Junior Member
Posts: 2
Joined: Apr 2008
Reputation: 0
Post: #35
ok, i solved the lib problem in a dirty way as i dont know anything about programming/scripting... i had to edit default.py

Quote:DIR_HOME = '/home/odin/XboxMc/scripts/BBC PodRadio' #os.getcwd().replace( ";", "" )

then i had this error

Quote:ERROR: Language file /home/odin/XboxMc/scripts/BBC PodRadio/resources/language/english/strings.xml can't be parsed!

which i solved renaming the language directory from English to english

then i added the plugin as a music source and selected "browse radio by genre" giving this error

Quote:INFO: except=[Errno 2] No such file or directory: 'T:\\script_data/BBC PodRadio/temp.html'

so i also edited default.py in plugin folder

Quote: DIR_USERDATA = '/home/odin/XboxMc/userdata/script_data/BBC PodRadio' #os.path.join( "T:\\script_data", __plugin__ )

then selected in the list Radio 3 >> bbc radio 3 - jazz library and got this error

Quote: INFO: except=[Errno 13] Permission denied: '/temp.xml'

so took a look at the script and finally changed

Quote:dir = '/home/odin/XboxMc/userdata/script_data/BBC PodRadio'
#os.getcwd().replace(';','')
file = os.path.join(dir, "temp.xml")

and finally i ended hearing

Quote:the bbc podcast that you are trying to download is not available outside the uk...

well i can play though their web the radio3 programs so confused about geoipRolleyes

then trying to play live radio3 i get the "too many consecutive failed items" and log reporting

Quote:22:35:34 T:3062441824 M:615084032 DEBUG: CPlayerCoreFactor::GetPlayers(rtsp://rmlive.bbc.co.uk/bbc-rbs/rmlive/ev7/live24/radio3/live/r3_dsat_g2.ra)
22:35:34 T:3062441824 M:614998016 ERROR: CAudioDecoder: Unable to Init Codec while loading file rtsp://rmlive.bbc.co.uk/bbc-rbs/rmlive/ev7/live24/radio3/live/r3_dsat_g2.ra
22:35:34 T:3062441824 M:614998016 ERROR: Playlist Player: skipping unplayable item: 0, path [rtsp://rmlive.bbc.co.uk/bbc-rbs/rmlive/ev7/live24/radio3/live/r3_dsat_g2.ra]

so i wrote in a console

Quote:mplayer rtsp://rmlive.bbc.co.uk/bbc-rbs/rmlive/ev7/live24/radio3/live/r3_dsat_g2.ra

and could hear the live radio streaming....Nod

then i have written a simple playlist file containing the rtsp link and tried to play it but get the same error what makes me think that this is a xbmcForLinux problem with realaudio codec or with rtsp, right??:confused2:

thanks for any help
ritalee
find quote
BigBellyBilly Offline
Skilled Python Coder
Posts: 959
Joined: Feb 2005
Reputation: 2
Location: UK
Post: #36
you seem to have replaced python sys.path functions with hardcoded paths. this is more of an indication of a problem with python on linux than a script that isn't written correctly.

I have no linux box to help you solve it, but i have to take the standpoint that I trust the python api's to be correct regardless of platform, if they arn't then its a large problem to have suss what works on one platform and not another.

I too am hoping to move to a 'xbmc hd box' in the near future (win or linux) so it'd be a shame if scripts need special re-writting to be platform specific.

My Addons (myTV, T3CH Upgrader, DVDProfiler, BBCPodRadio, Comics, Football, GoogleReader, reeplay.it, Metacritic, Phonebin, FileViewer,SVN Repo Installer (contributor)) available at Box.net
find quote
feanorknd Offline
Junior Member
Posts: 49
Joined: Mar 2008
Reputation: 0
Post: #37
hi bigbellybilly

The following one are based on the first tests I´ve done with the scripts at Linux (I am not experienced at programming but only reading debug logs and having a look at scripts..)

-- only a 33% may run (and maybe may crash sometimes) without any modification

-- other 33% may run only if modifying some Paths or Windows Paths Wrapping... sometimes, also may crash so they are bit inestable.

-- the rest, 34% of scripts, may not run because of much difficult problems related, like importing modules type Image, ImageFiles,....

Your script would be between the 33% with problems with paths, skipping what I told you about rtsp/codec...

Nevertheless XBMC at Linux is really stable and functional, instead of being a prealpha version (you take care of this when testing scripts)... it is pretty much incredible, as I forgot to keep using Mediaportal at Windows (sucks)... previously I used Freevo at Linux but, at least for me, I preferred Mediaportal... now, I think I cannot live without XBMC.

I have not programming skills, but I could help testing scripts and reporting logs with Linux concrete errors.... it would be great that scripts developers take in care about programming scripts thinking at multiplatform (although I think I am not the one to start talking about this, due to I am not a programmer and do not know if there are multiplatform libraries or APIs to know exactly what kind of S.O. is running the script, so "case-if").

At last, thanks thanks so much for listening community, and thanks at all for sharing your programming skills with them.... your scripts are great! Wink

Feanor (Ritalee friend).
find quote
Tom_Monkeon Offline
Junior Member
Posts: 24
Joined: Apr 2008
Reputation: 0
Post: #38
is it not possible to force a buffer size via python, so as to avoid the wait while it buffers up the 4 meg or have to compromise by reducing the default buffer size for video
find quote
TheBoxMan Offline
Fan
Posts: 351
Joined: Jan 2007
Reputation: -10
Question    Post: #39
Also, if you get any time for this, would it be possible to tweak it to allow downloading of files? Preferably to Samba?

I do appreciate you're busy.

@Voinage -any chance you could try your hand at this tweak. I think the reason it won't download them with the white button trick just now is two fold - 1. it seems to resolve the final link *after* you click the program to play - so it doesn't have an address to download from yet (and consequently won't even download the .ram when doing that)...and 2 I think it points XBMC to the .ram file not the actual file itself (.rams are essentially files that contain the true location of the media). It is possible to download these as I did find a way on windows ages ago....can't remember exactly which program it was I had help me Smile
find quote
Infinity Offline
Skilled Python Coder
Posts: 53
Joined: Jun 2008
Reputation: 0
Rainbow    Post: #40
The ultimate tool on the PC for URL grabbing is 'URL Snooper 2' perhaps this may assist in getting media adresses. As for downloading header files I personally use 'Flashget'

Hope this helps! :-)
find quote
Post Reply