• 1
  • 2(current)
  • 3
  • 4
  • 5
  • 10
[RELEASE] RadioTunes XBMC plugin - formerly Sky.fm (21th Sep 2014: v3.0.0)
#16
did not work for me on ATV2, can you share your default py file maybe I did something wrong

Thanks
Reply
#17
How can i add an attachement to a post in this forum?
Reply
#18
(2012-12-08, 18:26)atmelfreak Wrote: How can i add an attachement to a post in this forum?

Use pastebin.com
Read/follow the forum rules.
For troubleshooting and bug reporting, read this first
Interested in seeing some YouTube videos about Kodi? Go here and subscribe
Reply
#19
Fixed default.py

http://pastebin.com/w0NAnpd8
Reply
#20
thanks but no luck using your default.py for ATV2 but still get error
Take a look at my log http://www.xbmclogs.com/show.php?id=19412

Hope you can help me fix on ATV2
Thank you
Reply
#21
My fix should solve the problem. I'm sure that you have done something wrong.
Please look into the file at line 205:
Code:
            if (not "de Paris" in channel['name']) :
                if (not os.path.isfile(self._addonProfilePath + channelArt)) : # if channelart is not in cache
                    print "Channelart for " + channel['name'] + " not found in cache at " + self._addonProfilePath + channelArt
                    self.getChannelArt( channel['id'], "art_" + channel['key'] )
                    channel['isNew'] = True
                    self._newChannels = self._newChannels + 1
            streamList.append( channel )
The error occurs in line 207 within the print statement. In Python the idents are very important.
To be sure, you have edit the right code, just add a blank line before the print statement and test again.
Then check the error.log. Error line should now be line 208.

Reply
#22
Okay now I am furstrated, i downloaded your py file, replaced and here is the error I am getting on ATV2
Not sure what I am doing wrong

13:00:49 T:103165952 NOTICE: -->Python Interpreter Initialized<--
13:00:51 T:103165952 NOTICE: It has not been 1440 minutes since /var/mobile/Library/Preferences/XBMC/userdata/addon_data/plugin.audio.sky.fm/cache_lastcheckin.dat was last updated
13:00:51 T:103165952 NOTICE: [PLUGIN] Sky.fm v2.0.0 (30. October 2012)
13:00:51 T:103165952 NOTICE: Going for Public streams
13:00:52 T:103165952 ERROR: Error Type: <type 'exceptions.UnicodeEncodeError'>
13:00:52 T:103165952 ERROR: Error Contents: 'ascii' codec can't encode character u'\xe9' in position 18: ordinal not in range(128)
13:00:52 T:103165952 ERROR: Traceback (most recent call last):
File "/var/mobile/Library/Preferences/XBMC/addons/Sky-FM-XBMC-plugin-master/default.py", line 396, in <module>
MusicAddonInstance.start()
File "/var/mobile/Library/Preferences/XBMC/addons/Sky-FM-XBMC-plugin-master/default.py", line 153, in start
streamList = self.customizeStreamListAddMenuitem(jsonList, "") # sending a blank string as listenkey
File "/var/mobile/Library/Preferences/XBMC/addons/Sky-FM-XBMC-plugin-master/default.py", line 207, in customizeStreamListAddMenuitem
print "Channelart for " + channel['name'] + " not found in cache at " + self._addonProfilePath + channelArt
File "<string>", line 6, in write
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 18: ordinal not in range(128)
13:00:52 T:71348224 ERROR: GetDirectory - Error getting plugin://plugin.audio.sky.fm
13:00:52 T:71348224 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.audio.sky.fm) failed
13:00:52 T:71348224 WARNING: GetLabel - Unknown nodetype requested 0
Reply
#23
Do you have read my last post? Try to add a blank line before the print statement to see if you are
on the right source.
I'm not familar with ATV, so I don't know were is the XBMC user directory with the plugins.
Reply
#24
Image

I did and it still will not work
Reply
#25
(2012-12-08, 21:30)dallasnights Wrote: Image

I did and it still will not work

remove the print statement and you'll be fine
Read/follow the forum rules.
For troubleshooting and bug reporting, read this first
Interested in seeing some YouTube videos about Kodi? Go here and subscribe
Reply
#26
(2012-12-08, 21:30)dallasnights Wrote: I did and it still will not work

Yes, sure. Please post xbmc.log after this change again. I want see the line number with the error.
(2012-12-08, 21:55)Martijn Wrote: remove the print statement and you'll be fine

No, removing the print statement only doesn't fix the error.
Reply
#27
14:00:33 T:106995712 NOTICE: -->Python Interpreter Initialized<--
14:00:34 T:106995712 NOTICE: It has not been 1440 minutes since /var/mobile/Library/Preferences/XBMC/userdata/addon_data/plugin.audio.sky.fm/cache_lastcheckin.dat was last updated
14:00:34 T:106995712 NOTICE: [PLUGIN] Sky.fm v2.0.0 (30. October 2012)
14:00:34 T:106995712 NOTICE: Going for Public streams
14:00:35 T:106995712 ERROR: Error Type: <type 'exceptions.UnicodeEncodeError'>
14:00:35 T:106995712 ERROR: Error Contents: 'ascii' codec can't encode character u'\xe9' in position 18: ordinal not in range(128)
14:00:35 T:106995712 ERROR: Traceback (most recent call last):
File "/var/mobile/Library/Preferences/XBMC/addons/Sky-FM-XBMC-plugin-master/default.py", line 396, in <module>
MusicAddonInstance.start()
File "/var/mobile/Library/Preferences/XBMC/addons/Sky-FM-XBMC-plugin-master/default.py", line 153, in start
streamList = self.customizeStreamListAddMenuitem(jsonList, "") # sending a blank string as listenkey
File "/var/mobile/Library/Preferences/XBMC/addons/Sky-FM-XBMC-plugin-master/default.py", line 207, in customizeStreamListAddMenuitem
print "Channelart for " + channel['name'] + " not found in cache at " + self._addonProfilePath + channelArt
File "<string>", line 6, in write
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 18: ordinal not in range(128)
14:00:35 T:71348224 ERROR: GetDirectory - Error getting plugin://plugin.audio.sky.fm
14:00:35 T:71348224 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.audio.sky.fm) failed
14:00:35 T:71348224 WARNING: GetLabel - Unknown nodetype requested 0
is there anyone out there with an ATV2 that works with this add on maybe they can share their working Default.py just a thought

Thanks all
Reply
#28
(2012-12-08, 22:19)dallasnights Wrote: File "/var/mobile/Library/Preferences/XBMC/addons/Sky-FM-XBMC-plugin-master/default.py", line 207, in customizeStreamListAddMenuitem

As i thought: Error occured again in line 207. So you've edit the wrong file!
Reply
#29
Just seen: Bitcrusher just releasing new version of addon 2.1.0 which fixes the error:
Code:
8 December 2012 v2.1.0
+ Added a 4th stream quality option for Premium members: 256k/sec MP3
+ Now using the config.ini file to hopefully streamline the process of updating the di.fm/sky.fm/jazzradio.com plugins
* Fixed it so UTF8 chars is handled correctly in channelnames
* Fixed an "miscalculation" that made it so when using favorites, the playlist being activated when clicking the channelname,
  was actually the one belonging to the next channelname, etc.

Thanks a lot!
Reply
#30
Hi guys

Sorry for the delay with the update - a lot of stuff has been going on in my life, that has kept me from fixing the Sky.fm plugin.
The update has now been pushed and if all goes as planned, Sky.fm should auto-update sunday or monday depending on when a mods gets to review it (it is weekend after all Wink ).
I've made some small fundamental changes that should make all plugins easier to keep up too date.

Also, I've added the much request 256k/sec MP3 stream for Premium users in all my plugins Smile

Enjoy the music
Reply
  • 1
  • 2(current)
  • 3
  • 4
  • 5
  • 10

Logout Mark Read Team Forum Stats Members Help
[RELEASE] RadioTunes XBMC plugin - formerly Sky.fm (21th Sep 2014: v3.0.0)1