Author Topic: New installation - shoutcast error.  (Read 3413 times)

pw44

  • Addicted
  • *
  • Posts: 666
    • View Profile
New installation - shoutcast error.
« on: September 06, 2010, 08:52:21 pm »
Hia,
due a problem in my core/hybrid, i was forced to reinstall all the system again.
I decided to start fresh, not using the configurations i had before.
Trying to start the shoutcast plugin, i'm getting the following message in the logfile:
Shoutcast_Radio_Plugin::updateStationsForGenre() unable to create xml reader
Could there something be missing?
TIA,
Paulo

sambuca

  • Guru
  • ****
  • Posts: 462
    • View Profile
Re: New installation - shoutcast error.
« Reply #1 on: September 07, 2010, 09:30:57 am »
The code to download data from a URL is broken atm. It works sometimes, sometimes not. There is a trac ticket for this already.

br,
sambuca

Marie.O

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3675
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: New installation - shoutcast error.
« Reply #2 on: September 07, 2010, 02:12:53 pm »
* posde wonders if it would make sense to outsource the retrieval of the data to an outside tool

sambuca

  • Guru
  • ****
  • Posts: 462
    • View Profile
Re: New installation - shoutcast error.
« Reply #3 on: September 07, 2010, 02:48:13 pm »
Well, it currently uses wget, and that does not work realiably...

sambuca

pw44

  • Addicted
  • *
  • Posts: 666
    • View Profile
Re: New installation - shoutcast error.
« Reply #4 on: September 08, 2010, 05:28:23 pm »
Hi Sambuca,
thx for the answer.
BR

pw44

  • Addicted
  • *
  • Posts: 666
    • View Profile
Re: New installation - shoutcast error.
« Reply #5 on: September 13, 2010, 07:15:54 pm »
Hi Sambuca,
where are the downloaded shoutcast lists stored? And how can i create a playlist from it?
It's working, after somes days of waiting....
BR,
Paulo

sambuca

  • Guru
  • ****
  • Posts: 462
    • View Profile
Re: New installation - shoutcast error.
« Reply #6 on: September 14, 2010, 08:19:05 am »
Hi Paulo,

Its stored as a file in /tmp temporarily and read into memory, so I don't think you'll get to it reliably. (The file should be deleted once it has been read). So you'd be better off getting the data directly (look up the shoutcast api) and converting that to a playlist.
On the other hand, if you mean a LMCE playlist, you can save the current playlist, for instance after adding the stations to the list.

Yes, the whole shoutcast plugin is more or less a proof of concept. It could use a lot of work. For instance, if you reload the router, the memory cache of the stations will be lost and you'll have to wait for it to successfully download them again. Some of my ideas for (sometime in) the future are:
* Store stations in the DB like files, with the correct media type (online radio)
* Create a web UI to organize stations, favorites etc etc
* Create a separate Radio scenario in the orbiter to allow for better browsing (genre -> station is better for radio than the audio default of performer -> album)

br,
sambuca

Marie.O

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3675
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: New installation - shoutcast error.
« Reply #7 on: September 14, 2010, 10:07:29 am »
sambuca,

shouldn't UpdateMedia be the place to update shoutcast lists?

sambuca

  • Guru
  • ****
  • Posts: 462
    • View Profile
Re: New installation - shoutcast error.
« Reply #8 on: September 14, 2010, 10:34:33 am »
Posde,

I'm not sure, I think that UpdateMedia does what it does today pretty well, which is scan local drives and sync their metadata. Handling radio stations will be a one way metadata sync, and will not access the file system at all, only download data from the web. So imho, I think it would be best to create a new utility/plugin/whatever to do this.

br,
sambuca