XBMC Community Forum
[RELEASE] Pandora Radio (Script) Music Addon (Updated 2011-11-13 : V1.2.8) - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Help and Support (/forumdisplay.php?fid=33)
+--- Forum: Add-ons Help and Support (/forumdisplay.php?fid=27)
+---- Forum: Music Add-ons (/forumdisplay.php?fid=148)
+---- Thread: [RELEASE] Pandora Radio (Script) Music Addon (Updated 2011-11-13 : V1.2.8) (/showthread.php?tid=70471)



- dallasnights - 2011-07-15 04:10

oops sorry here it is
[Image: xbmcpandora2.png]

BTW The only file in that directory is settings.xml with my password and username

Thanks


- spbogie - 2011-07-15 04:39

Hmmm, ok well that's where it should be storing things then. If you look in the script.audio.grooveshark folder is there anything besides settings.xml in there?


- dallasnights - 2011-07-15 04:40

nope just settings.xml


- spbogie - 2011-07-16 00:13

Users getting the IOError on saving keys (ATV/OSX), please run this addon and report back with a log (removed to avoid confusion). The addon will show up under Programs -> Data Directory Test. It will run a few tests in the background and ask you to upload the log when done. Hopefully this will be the last bit of information I need to fix things.

Edit: Problem solved, removed link to avoid confusion.


- dallasnights - 2011-07-16 00:43

installed and nothing happens when I click on it, I wait for some sort of notice about upload to log nothing happens

ATV XMBC 10.09 thanks you


- spbogie - 2011-07-16 02:16

Doh, I think I may have uploaded the version before I added the prompt. Just run it, wait a few seconds and grab the log. If it doesn't say script failed then it probably worked.


atv2 / key_in/key_out - tomby - 2011-07-16 02:30

I'm not sure what's up with the special:// file location on the ATV2. I was having the same key_in/key_out saving errors as a few above. I just went ahead and hardcoded the path into default.py.

Don't recommend doing this unless you know what you're doing.

# Original version
# dataDir = os.path.join( "special://profile/addon_data/%s/" %__script_id__ )
# This makes it work
dataDir = "/private/var/mobile/Library/Preferences/XBMC/userdata/addon_data/script.xbmc.pandora"

interestingly I got an error the first time it fetched the keys (502 Proxy Error) but after that it was fine.

HTH.


- dallasnights - 2011-07-16 02:36

Nothing happened again but I did check my log and something happened, here it is

19:34:08 T:173821952 M:107913216 INFO: Loading skin file: MyPrograms.xml
19:34:09 T:173821952 M:107913216 DEBUG: CGUIMediaWindow::GetDirectory (addons://sources/executable/)
19:34:09 T:173821952 M:107913216 DEBUG: ParentPath = [addons://sources/executable/]
19:34:09 T:200060928 M:107909120 DEBUG: Thread CThread start, auto delete: 0
19:34:09 T:203034624 M:107884544 DEBUG: Previous line repeats 3 times.
19:34:09 T:203034624 M:107884544 WARNING: CreateLoader - Unsupported protocol(addons) in addons://more/executable.tbn
19:34:09 T:203567104 M:107884544 DEBUG: Thread Background Loader 203567104 terminating
19:34:09 T:204181504 M:107884544 DEBUG: Thread Background Loader 204181504 terminating
19:34:09 T:200060928 M:107884544 DEBUG: Thread Background Loader 200060928 terminating
19:34:09 T:203034624 M:107884544 DEBUG: Thread Background Loader 203034624 terminating
19:34:11 T:183599104 M:106807296 DEBUG: DoWork - took 469 ms to load special://masterprofile/Thumbnails/f/f70a292a.jpg
19:34:11 T:193601536 M:106790912 DEBUG: GetImageHash - unable to stat url /var/mobile/Library/Preferences/XBMC/addons/script.data.test/icon.png
19:34:12 T:173821952 M:103387136 INFO: initializing python engine.
19:34:12 T:173821952 M:103387136 DEBUG: PYTHONHOME -> /Applications/XBMC.frappliance/Frameworks/
19:34:12 T:173821952 M:103387136 DEBUG: PYTHONPATH -> /Applications/XBMC.frappliance/Frameworks/
19:34:12 T:173821952 M:103383040 DEBUG: new python thread created. id=11
19:34:12 T:205492224 M:103378944 DEBUG: Thread XBPyThread start, auto delete: 0
19:34:12 T:205492224 M:103378944 DEBUG: Python thread: start processing
19:34:13 T:205492224 M:107499520 NOTICE: -->Python Interpreter Initialized<--
19:34:13 T:205492224 M:107499520 DEBUG: Process - The source file to load is /var/mobile/Library/Preferences/XBMC/addons/script.data.test/default.py
19:34:13 T:205492224 M:107499520 DEBUG: Process - Setting the Python path to /var/mobile/Library/Preferences/XBMC/addons/script.data.test:/var/mobile/Library/Preferences/XBMC/addons/script.module.beautifulsoup/lib:/var/mobile/Library/Preferences/XBMC/addons/script.module.mechanize/lib:/var/mobile/Library/Preferences/XBMC/addons/script.module.cryptopy/lib:/var/mobile/Library/Preferences/XBMC/addons/script.module.simplejson/lib:/Applications/XBMC.frappliance/XBMCData/XBMCHome/addons/script.module.pil/lib:/var/mobile/Library/Preferences/XBMC/addons/script.web.viewer/lib:/var/mobile/Library/Preferences/XBMC/addons/script.module.elementtree/lib:/Applications/XBMC.frappliance/XBMCData/XBMCHome/addons/script.module.pysqlite/lib:/Applications/XBMC.frappliance/Frameworks:/Applications/XBMC.frappliance/Frameworks/lib/python26.zip:/Applications/XBMC.frappliance/Frameworks/lib/python2.6:/Applications/XBMC.frappliance/Frameworks/lib/python2.6/plat-darwin:/Applications/XBMC.frappliance/Frameworks/lib/python2.6/plat-mac:/Applications/XBMC.frappliance/Frameworks/lib/python2.6/plat-mac/lib-scriptpackages:/Applications/XBMC.frappliance/Frameworks/lib/python2.6/lib-tk:/Applications/XBMC.frappliance/Frameworks/lib/python2.6/lib-old:/Applications/XBMC.frappliance/Frameworks/lib/python2.6/lib-dynload:/Applications/XBMC.frappliance/Frameworks/lib/python2.6/site-packages:
19:34:13 T:205492224 M:107499520 DEBUG: Process - Entering source directory /var/mobile/Library/Preferences/XBMC/addons/script.data.test
19:34:13 T:205492224 M:107499520 DEBUG: Instantiating addon using automatically obtained id of "script.data.test" dependent on version 1.0 of the xbmc.python api
19:34:13 T:205492224 M:107491328 NOTICE: DATA_TEST: os.name = posix
19:34:13 T:205492224 M:107491328 NOTICE: DATA_TEST: os.uname = ('Darwin', 'Apple-TV', '10.4.0', 'Darwin Kernel Version 10.4.0: Wed Oct 20 20:14:45 PDT 2010; root:xnu-1504.58.28~3/RELEASE_ARM_S5L8930X', 'AppleTV2,1')
19:34:13 T:205492224 M:107491328 NOTICE: DATA_TEST: sys.platform = darwin
19:34:13 T:205492224 M:107491328 NOTICE: DATA_TEST: dataDir = "special://profile/addon_data/script.data.test/"
19:34:13 T:205492224 M:107491328 NOTICE: DATA_TEST: os.path.isdir( dataDir ) = False
19:34:13 T:205492224 M:107491328 NOTICE: DATA_TEST: open( os.path.join( dataDir, "test" ), "w" )
19:34:13 T:205492224 M:107491328 NOTICE: [Errno 2] No such file or directory: 'special://profile/addon_data/script.data.test/test'
19:34:13 T:205492224 M:107491328 NOTICE: DATA_TEST: open( os.path.join( dataDir, "test" ), "w+" )
19:34:13 T:205492224 M:107491328 NOTICE: [Errno 2] No such file or directory: 'special://profile/addon_data/script.data.test/test'
19:34:13 T:205492224 M:107491328 NOTICE: DATA_TEST: dataDir = "/var/mobile/Library/Preferences/XBMC/userdata/addon_data/script.data.test/"
19:34:13 T:205492224 M:107491328 NOTICE: DATA_TEST: os.path.isdir( dataDir ) = True
19:34:13 T:205492224 M:107491328 NOTICE: DATA_TEST: open( os.path.join( dataDir, "test" ), "w" )
19:34:13 T:205492224 M:107491328 NOTICE: DATA_TEST: open( os.path.join( dataDir, "test" ), "w+" )
19:34:13 T:205492224 M:107491328 INFO: Scriptresult: Success
19:34:13 T:205492224 M:107491328 INFO: Python script stopped
19:34:13 T:205492224 M:107491328 DEBUG: Thread Python Thread 205492224 terminating
19:34:13 T:173821952 M:107491328 DEBUG: waiting for python thread 11 to stop
19:34:13 T:173821952 M:107495424 DEBUG: python thread 11 destructed
19:34:23 T:173821952 M:107495424 INFO: Python, unloading python shared library because no scripts are running anymore
19:34:28 T:173821952 M:107495424 DEBUG: SECTION:UnloadDll(libcurl.4.dylib)
19:34:28 T:173821952 M:107495424 DEBUG: Unloading: libcurl.4.dylib
19:34:37 T:204959744 M:107626496 DEBUG: Thread Jobworker 204959744 terminating (autodelete)
19:34:41 T:193601536 M:107634688 DEBUG: Thread Jobworker 193601536 terminating (autodelete)
19:34:41 T:183599104 M:107651072 DEBUG: Thread Jobworker 183599104 terminating (autodelete)


- dallasnights - 2011-07-16 02:51

tomby you fixed it, it works again on xbmc 10.09 thank you!!!

Update, it worked but then closed XBMC after one song, now its just handing on Loading Script

Darn, I will put my log on pastebin in a min


- spbogie - 2011-07-16 02:55

V1.2.2 released w/ workaround for OSX/ATV issue. Download link in first post.