Kodi Community Forum
[OBSOLETE] Pandora Radio (Script) Music Addon - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Music Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=148)
+---- Thread: [OBSOLETE] Pandora Radio (Script) Music Addon (/showthread.php?tid=70471)



- spbogie - 2011-07-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

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

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

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

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


- dallasnights - 2011-07-16

ok yu guys are getting closer bigtime, it loads, take a little more time than it did, then I chose a station, played 1 song, it played, then it tried to play next and shut down xbmc

Here is the pastebin, good job so far everyone, thank u

http://pastebin.com/Xiz7C99W

FYI
Just tried it again, unistalled, reinstalled clean still same issue after one song

Thank you


- smilerz - 2011-07-16

spbogie Wrote:V1.2.2 released w/ workaround for OSX/ATV issue. Download link in first post.
For the record - I'm getting the special path error on linux as well.


- grypho - 2011-07-16

Ok lets see


- grypho - 2011-07-16

OMFG!!!!!!!!! You fixed it!!!!!!!!!! Woooooooooooohoooooooooooooooo THANK YOUUUUUUUUUU it works great!!!!!!!! Im soooooo happy!!!! thank you, thank you!!!!! thanks a lot!!!!!

Im definitely not having the issue mentioned above. 6 songs and counting...


- bigjsko - 2011-07-16

spbogie, you're a champ! Thanks for all the effort.


- spbogie - 2011-07-16

smillerz, What version of xbmc? Did you build with external python? I had only seen the reports on ATV/OSX, but if it's affecting other systems I'll remove the check and just always pre-translate the path.


- smilerz - 2011-07-17

spbogie Wrote:smillerz, What version of xbmc? Did you build with external python? I had only seen the reports on ATV/OSX, but if it's affecting other systems I'll remove the check and just always pre-translate the path.
The nightly build from July 8th. I used the repository and didn't do my own build.

Here is the log file from a manual Force Re-Fetch Keys.
http://pastebin.com/Emrf5u12


- spbogie - 2011-07-17

V1.2.3 up which pre-translates the data path for all systems. (No need to update if 1.2.1/1.2.2 works for you.)


- jmj52 - 2011-07-17

tried both the 1.2.2 and 1.2.3 updates and i am still having the same problem on OSX


- dallasnights - 2011-07-17

Congrats on the latest release 1.2.3, you did it no problem on ATV XBMC 10.09 no crashing perfect playing song after song, thank you for your hard work!!!!