new media (radio stream) source plugin: SomaFM

Bug #1067429 reported by Rocco Aliberti
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Exaile
Fix Released
Wishlist
Rocco Aliberti

Bug Description

Based on the Shoutcast plugin.
I use libxml2 for parsing.
Stations aren't divided into genres.
Picks up the channel list from the file somafm.com/channels.xml. This also contains the url to the playlists in various audio formats for each channel, but I have noticed that it is not exhaustive for all channels.
Therefore I fetch playlist's (only pls format) urls from the page: somafm.com/{channel_id}/directstreamlinks.html.
somafm.com does not provide a search page, and considering the organization in channels it would not have much sense.

Related branches

Revision history for this message
Dustin Spicuzza (dustin-virtualroadside) wrote :

I just noticed this. Does it still work? I can't get it to work on my machine I have lxml installed, but libxml2-python doesn't seem to be installable via pip.

Changed in exaile:
milestone: none → 3.4.0
Revision history for this message
Rocco Aliberti (eri.trabiccolo) wrote :

Mmm don't know if that version works. I'm using the version attached, it depends on libxml2.
Honestly here in Slackware python bindings are in the libxml2 package...

Revision history for this message
Dustin Spicuzza (dustin-virtualroadside) wrote :

It would be nice if this plugin only had dependencies that could be installed via pip. I tried converting it to ElementTree last night, and it *almost* works, except that it can't parse the HTML page. It would be nice if we could get it to have fewer (no) dependencies…

Revision history for this message
Rocco Aliberti (eri.trabiccolo) wrote :

Well there's the xml from which we can extract the playlists, I remember that I used that different approach 'cause it misses some low bitrate playlists. But whatever..

ElementTree version attached.

Revision history for this message
Dustin Spicuzza (dustin-virtualroadside) wrote :

Pushed in r4499.

Changed in exaile:
assignee: nobody → Rocco Aliberti (eri.trabiccolo)
importance: Undecided → Wishlist
status: New → Fix Committed
Revision history for this message
Rocco Aliberti (eri.trabiccolo) wrote :

Thanks. ;)

Changed in exaile:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.