Release - Songza Music Plugin

  Thread Rating:
  • 2 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
bumblebeeman Offline
Junior Member
Posts: 17
Joined: Dec 2011
Reputation: 0
Post: #16
Really excited about this, but it is just repeating the first song over and over. Skipping to the next track only takes me to the beginning of the same song. So close!
find quote
Eye in the sky Offline
Senior Member
Posts: 190
Joined: Apr 2011
Reputation: 2
Post: #17
Thanks avens19, your linked file works fine for me on windows, no more Groundhog Day.
find quote
bumblebeeman Offline
Junior Member
Posts: 17
Joined: Dec 2011
Reputation: 0
Post: #18
avens19's works like a charm. Nice work everyone, no more fumbling around with the browser version.
find quote
avens19 Offline
Member
Posts: 66
Joined: Jan 2013
Reputation: 1
Post: #19
Thanks guys. Most of the credit to ByALongShot. He did the hard part
find quote
ByALongShot Offline
Junior Member
Posts: 15
Joined: Jun 2013
Reputation: 1
Post: #20
Thanks for the help Andrew! Version 1.0.0 is now release! I've merged your changes and did some extra clean up. The thread has been updated along with a new link to the updated zip.
find quote
jbman Offline
Junior Member
Posts: 17
Joined: Oct 2008
Reputation: 0
Post: #21
Hi guys,

I am trying this out on my raspbmc at the moment. When pick concierge I get these errors in my logs

Code:
12:47:46 T:3041447936   ERROR: Texture manager unable to load file: /home/pi/temp/plugin.audio.songza-1.0.0.zip/icon.png
12:47:48 T:2835346496  NOTICE: Thread Background Loader start, auto delete: false
12:48:00 T:3041447936  NOTICE: Previous line repeats 3 times.
12:48:00 T:3041447936   ERROR: Control 50 in window 10501 has been asked to focus, but it can't
12:48:03 T:2835346496  NOTICE: Thread Background Loader start, auto delete: false
12:48:07 T:2835346496  NOTICE: Thread XBPyThread start, auto delete: false
12:48:08 T:2835346496  NOTICE: -->Python Interpreter Initialized<--
12:48:14 T:2712056896  NOTICE: Thread Background Loader start, auto delete: false
12:48:18 T:2835346496  NOTICE: Thread XBPyThread start, auto delete: false
12:48:18 T:2835346496  NOTICE: -->Python Interpreter Initialized<--
12:48:24 T:2835346496   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.ValueError'>
                                            Error Contents: No JSON object could be decoded
                                            Traceback (most recent call last):
                                              File "/home/pi/.xbmc/addons/plugin.audio.songza/default.py", line 346, in <module>
                                                (mode['handler']() for mode in MODES if mode['id'] == args['mode'][0]).next()
                                              File "/home/pi/.xbmc/addons/plugin.audio.songza/default.py", line 346, in <genexpr>
                                                (mode['handler']() for mode in MODES if mode['id'] == args['mode'][0]).next()
                                              File "/home/pi/.xbmc/addons/plugin.audio.songza/default.py", line 171, in ListScenarios
                                                data = GetData(url, params)
                                              File "/home/pi/.xbmc/addons/plugin.audio.songza/default.py", line 51, in GetData
                                                data = response.json()
                                              File "/home/pi/.xbmc/addons/plugin.audio.songza/resources/lib/requests/models.py", line 625, in json
                                                return json.loads(self.text or self.content, **kwargs)
                                              File "/opt/xbmc-bcm/xbmc-bin/share/xbmc/addons/script.module.simplejson/lib/simplejson/__init__.py", line 307, in loads
                                                return _default_decoder.decode(s)
                                              File "/opt/xbmc-bcm/xbmc-bin/share/xbmc/addons/script.module.simplejson/lib/simplejson/decoder.py", line 335, in decode
                                                obj, end = self.raw_decode(s, idx=_w(s, 0).end())
                                              File "/opt/xbmc-bcm/xbmc-bin/share/xbmc/addons/script.module.simplejson/lib/simplejson/decoder.py", line 353, in raw_decode
                                                raise ValueError("No JSON object could be decoded")
                                            ValueError: No JSON object could be decoded
                                            -->End of Python script error report<--

Any ideas?[/code][/php]
find quote
LOGIK3 Offline
Junior Member
Posts: 15
Joined: Jul 2013
Reputation: 0
Post: #22
Just want to say thanks for this addon! Its work very well and I love it!
find quote
avens19 Offline
Member
Posts: 66
Joined: Jan 2013
Reputation: 1
Post: #23
Hey jbman,

I'm running Windows for my testing but I don't see how that could make a difference. Try adding this above line 51 in {xbmc dir}/addons/plugin.audio.songza/default.py and then running it again and then post your log and we can hopefully figure this out together.

Code:
xbmc.log(response.text)
find quote
jbman Offline
Junior Member
Posts: 17
Joined: Oct 2008
Reputation: 0
Post: #24
Hey avens19,

as requested I made the change to the file and ran concierge again

hope this helps


Code:
14:24:58 T:2811229248   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.ValueError'>
                                            Error Contents: No JSON object could be decoded
                                            Traceback (most recent call last):
                                              File "/home/pi/.xbmc/addons/plugin.audio.songza/default.py", line 347, in <module>
                                                (mode['handler']() for mode in MODES if mode['id'] == args['mode'][0]).next()
                                              File "/home/pi/.xbmc/addons/plugin.audio.songza/default.py", line 347, in <genexpr>
                                                (mode['handler']() for mode in MODES if mode['id'] == args['mode'][0]).next()
                                              File "/home/pi/.xbmc/addons/plugin.audio.songza/default.py", line 172, in ListScenarios
                                                data = GetData(url, params)
                                              File "/home/pi/.xbmc/addons/plugin.audio.songza/default.py", line 52, in GetData
                                                data = response.json()
                                              File "/home/pi/.xbmc/addons/plugin.audio.songza/resources/lib/requests/models.py", line 625, in json
                                                return json.loads(self.text or self.content, **kwargs)
                                              File "/opt/xbmc-bcm/xbmc-bin/share/xbmc/addons/script.module.simplejson/lib/simplejson/__init__.py", line 307, in loads
                                                return _default_decoder.decode(s)
                                              File "/opt/xbmc-bcm/xbmc-bin/share/xbmc/addons/script.module.simplejson/lib/simplejson/decoder.py", line 335, in decode
                                                obj, end = self.raw_decode(s, idx=_w(s, 0).end())
                                              File "/opt/xbmc-bcm/xbmc-bin/share/xbmc/addons/script.module.simplejson/lib/simplejson/decoder.py", line 353, in raw_decode
                                                raise ValueError("No JSON object could be decoded")
                                            ValueError: No JSON object could be decoded
                                            -->End of Python script error report<--
14:24:58 T:3041390592   ERROR: GetDirectory - Error getting plugin://plugin.audio.songza/?mode=1
14:24:58 T:3041390592   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.audio.songza/?mode=1) failed
find quote
avens19 Offline
Member
Posts: 66
Joined: Jan 2013
Reputation: 1
Post: #25
There should be a log line just above the exception
find quote
jbman Offline
Junior Member
Posts: 17
Joined: Oct 2008
Reputation: 0
Post: #26
line before that says this

14:24:52 T:2811229248 NOTICE: -->Python Interpreter Initialized<--
find quote
avens19 Offline
Member
Posts: 66
Joined: Jan 2013
Reputation: 1
Post: #27
Can you pastebin your entire log?
find quote
jbman Offline
Junior Member
Posts: 17
Joined: Oct 2008
Reputation: 0
Post: #28
Just to confirm this is where I put the log line in

Code:
xbmc.executebuiltin('Notification(%s, %s, %d, %s)' % (ADDONNAME, warnin$
        xbmc.log(response.text)
        return None

(2013-07-23 23:32)avens19 Wrote:  Can you pastebin your entire log?

can do

xbmc.log
(This post was last modified: 2013-07-23 23:36 by jbman.)
find quote
avens19 Offline
Member
Posts: 66
Joined: Jan 2013
Reputation: 1
Post: #29
Ah, ya, that's not where I intended. It should go just above the "data = response.json()" line, at the same indent level as that line
(This post was last modified: 2013-07-23 23:46 by avens19.)
find quote
jbman Offline
Junior Member
Posts: 17
Joined: Oct 2008
Reputation: 0
Post: #30
Now I am seeing it looks like a proxy issue

Code:
14:49:35 T:2695279680  NOTICE: -->Python Interpreter Initialized<--
14:49:41 T:2695279680  NOTICE: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
                                            <html><head>
                                            <title>407 Proxy Authentication Required</title>
                                            </head><body>
                                            <h1>Proxy Authentication Required</h1>
                                            <p>This server could not verify that you
                                            are authorized to access the document
                                            requested.  Either you supplied the wrong
                                            credentials (e.g., bad password), or your
                                            browser doesn't understand how to supply
                                            the credentials required.</p>
                                            <hr>
                                            <address>Apache/2.2.22 (Ubuntu) Server at songza.com Port 80</address>
                                            </body></html>
14:49:41 T:2695279680   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.ValueError'>
                                            Error Contents: No JSON object could be decoded
                                            Traceback (most recent call last):
                                              File "/home/pi/.xbmc/addons/plugin.audio.songza/default.py", line 348, in <module>
                                                (mode['handler']() for mode in MODES if mode['id'] == args['mode'][0]).next()
                                              File "/home/pi/.xbmc/addons/plugin.audio.songza/default.py", line 348, in <genexpr>
                                                (mode['handler']() for mode in MODES if mode['id'] == args['mode'][0]).next()
                                              File "/home/pi/.xbmc/addons/plugin.audio.songza/default.py", line 173, in ListScenarios
                                                data = GetData(url, params)
                                              File "/home/pi/.xbmc/addons/plugin.audio.songza/default.py", line 53, in GetData
                                                data = response.json()
                                              File "/home/pi/.xbmc/addons/plugin.audio.songza/resources/lib/requests/models.py", line 625, in json
                                                return json.loads(self.text or self.content, **kwargs)
                                              File "/opt/xbmc-bcm/xbmc-bin/share/xbmc/addons/script.module.simplejson/lib/simplejson/__init__.py", line 307, in loads
                                                return _default_decoder.decode(s)
                                              File "/opt/xbmc-bcm/xbmc-bin/share/xbmc/addons/script.module.simplejson/lib/simplejson/decoder.py", line 335, in decode
                                                obj, end = self.raw_decode(s, idx=_w(s, 0).end())
                                              File "/opt/xbmc-bcm/xbmc-bin/share/xbmc/addons/script.module.simplejson/lib/simplejson/decoder.py", line 353, in raw_decode
                                                raise ValueError("No JSON object could be decoded")
                                            ValueError: No JSON object could be decoded
                                            -->End of Python script error report<--
14:49:41 T:3041390592   ERROR: GetDirectory - Error getting plugin://plugin.audio.songza/?mode=1
14:49:41 T:3041390592   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.audio.songza/?mode=1) failed
14:49:41 T:2695279680  NOTICE: Thread Background Loader start, auto delete: false
(This post was last modified: 2013-07-23 23:56 by jbman.)
find quote
Post Reply