Music plugin for tonlist.is
#1
Hi,

I'm trying to write a plugin for tonlist.is, a music store in my native Iceland. I've been able to get an album and track listing but if I try to play anything I get an error and the following in the logs:

Quote:22:50:26 T:3066390320 M:302489600 DEBUG: CFileCache::Open - opening <tonlistv2/30SEC64KWMA/5dd/5dd394b1-d95b-4333-9992-f291bf25f0d8.wma> using cache
22:50:26 T:3066390320 M:302489600 DEBUG: FileCurl::Open(0xb1d24310) http://wms.tonlist.is/tonlistv2/30SEC64K...25f0d8.wma
22:50:26 T:2203040656 M:302215168 DEBUG: Running thread 2203040656
22:50:26 T:2203040656 M:302215168 DEBUG: thread start, auto delete: 0
22:50:26 T:2203040656 M:302215168 INFO: CFileCache:Tonguerocess - Hit eof.
22:50:26 T:3066390320 M:302145536 ERROR: Open - error probing input format, http://wms.tonlist.is/tonlistv2/30SEC64K...25f0d8.wma
22:50:26 T:2203040656 M:302215168 DEBUG: Thread 2203040656 terminating
22:50:26 T:3066390320 M:302215168 DEBUG: FileCurl::Close(0xb1d24310) http://wms.tonlist.is/tonlistv2/30SEC64K...25f0d8.wma
22:50:26 T:3066390320 M:317882368 ERROR: Init: Error creating demuxer
22:50:26 T:3066390320 M:317952000 ERROR: CAudioDecoder: Unable to Init Codec while loading file http://wms.tonlist.is/tonlistv2/30SEC64K...25f0d8.wma
22:50:26 T:3066390320 M:318578688 DEBUG: Playback was stopped
22:50:26 T:3066390320 M:318578688 ERROR: Playlist Player: skipping unplayable item: 0, path [http://wms.tonlist.is/tonlistv2/30SEC64K...5f0d8.wma]

I've tried playing http://wms.tonlist.is/tonlistv2/30SEC64K...25f0d8.wma with mplayer and it works, so I had high hopes it would work in XBMC as well.

The code I'm using to play the files is:

Code:
def addTrack(track, url, iconimage):
        ok=True
        liz=xbmcgui.ListItem(track, iconImage="DefaultMusic.png", thumbnailImage=iconimage)
        liz.setInfo( type="Music", infoLabels={ "Title": track } )
        ok=xbmcplugin.addDirectoryItem(handle=int(sys.argv[1]),url=url,listitem=liz)
        return ok

The streams are encoded with WMA in ASF containers. Any ideas?

.einar
Reply
#2
those wma files are really asx-files. you need to pass it to xbmc as a playlist / parse them yourself (simply grabbing the first url in there would work)
Reply
#3
spiff Wrote:those wma files are really asx-files. you need to pass it to xbmc as a playlist / parse them yourself (simply grabbing the first url in there would work)

I tried both parsing the list myself and sending the first url, and to pass it as a playlist with the following code:

Code:
xbmc.PlayList(0).load(url)
xbmc.Player().play()

where url is the url for the asx file, but in the xbmc.log I find "Not a valid playlist".

Just so I'm clear, is there another way to pass the file as a playlist to XBMC then then one I used?
Reply

Logout Mark Read Team Forum Stats Members Help
Music plugin for tonlist.is0