[Plugin] Streamradio V2 (2 Viewers)

Jean-Marc

Portal Pro
February 28, 2007
382
32
Home Country
France France
Re: My Streamradio V2

Thank you for the excellent plugin.

I have one question. Is it possible to use flash based radios (e.g. Europa 2) or somehow to "extract" the stream from the player?

For Europa2.sk you can use this URL: http://ice-03.lagardere.cz/fm-europa2sk-96.m3u

No idea for your 2° question.

On my side, I am still looking for a solution to display the album art cover, if it is possible!:D
 

Jean-Marc

Portal Pro
February 28, 2007
382
32
Home Country
France France
Re: My Streamradio V2

I saw that Europa2 was streamed by Icecast.
So I went to Icecast.org and then to "URL directory" and that's!

Try to find who streams the file for your another flash based webradios.
 

kroko

Portal Pro
February 4, 2007
428
420
55
Itzehoe
Home Country
Germany Germany
Hi erverybody,

if you need to find a URL from a flash you need to look into the html of a page. Then you need to save the flash file.
Once you have the flash file you can look into it with a SWF Decompiler. I use Sothink SWF Decompiler in a virtual machine.
Mostly you can find the URL if you look into the action script. Well, its not easy, but its a way.

For the problem that the folder is not filled would need more information. Its quite stange for me. I have the MP running under XP and WIN7 and... But I know even sometimes softeware is not running e.g. on different located PCs. (Countries)
I will try to review the log section and do an update soon. Hopefully we can find the reason soon.

The cover can be displayed too.
here the sample from "delta radio"

<parser>
<method>3</method>
<get>http://www.deltaradio.de/delta/components/flash/songfeed.php</get>
<search></search>
<offset></offset>
<start>#titel=</start>
<start2>#interpret=</start2>
<stop>#</stop>
<devider></devider>
<image>#image_var=</image>
<imageUrl>http://www.deltaradio.de</imageUrl>
<swap>no</swap>
</parser>

The image url is used if the path (image) returns only a relative path e.g. 12234232.jpg -> File is located then under http://www.deltaradio.de/12234232.jpg

I did not spent to much energie into this feature. I was planning to use MusicBrainz or Amazon or Google to catch the cover on the fly....

So far
kroko
 

Jean-Marc

Portal Pro
February 28, 2007
382
32
Home Country
France France
Re: My Streamradio V2

Thanks so much Kroko for these usefull informations.

But everything is really complicated for somebody like me who doesn't know a lot of things about html, xml files, etc...

Parser: is there a simple and easy way to know whitch method must be used, depending on the radio URL (method 1, 2, 3, etc...)?

When do you plan to implement to catch the cover on the fly,( this really is a nice idea) ?

Also, in your plugin, I didn't find the way to have on the first screen when opening "mystreamradio" a list of genres? For example: music, information, countries, etc... and then clicking on one of the option, see the corresponding radios?
Of course on the left menu, I see "sort by" but it seems it doesn't work as I would like..

:Dagain!
 

mironto

Portal Pro
March 15, 2010
71
6
Home Country
Slovakia Slovakia
Re: My Streamradio V2

Thanks for all the tips, very handy. One more question - I just want to listen to local stations and don't need the shoutcast and icecast icons. How can I remove them from the screen?
 

kroko

Portal Pro
February 4, 2007
428
420
55
Itzehoe
Home Country
Germany Germany
AW: My Streamradio V2

Hi mironto,

good idea ! I added option switches to disable the icecast and/or shoutcast dirs in the setup
Also I fixed the bug with the displaying tile / artist still if playing a video or music.

It will be in the next version. Stay tuned.

kroko
 

mironto

Portal Pro
March 15, 2010
71
6
Home Country
Slovakia Slovakia
Re: My Streamradio V2

I just found out easier way how to get the stream and also actual playlist from a swf player. I used AdBlocker in Firefox to show all elements in the HTML and it was also able to see the stream SWF player was requesting back to server and the actual artist/song. Attached are also screenshots to help others if they need such a thing for their favorite radio (I was able to get this way four local radios so it should work for most of the flash radio players).

attachment.php
attachment.php


I have one more problem, though. I am parsing one radio, where they divide artist/song pair with dash + non-breaking spaces ( &nbsp;-&nbsp; ). Here is the actual content generator: http://www.radiosity.sk/jazler/actualsong-online.php.

The interesting part is
PHP:
<div class="actualsong">
<font color="#CC0000" size="2" title="14:22:51 - 14:26:23">AKON&nbsp;-&nbsp;ANGEL</font>
</div>

I have setup the following rules for parser:

Code:
<parser>
      <method>1</method>
      <get>http://www.radiosity.sk/jazler/actualsong-online.php</get>
      <search>&lt;div class="actualsong"&gt;</search>
      <offset>1</offset>
      <start>"&gt;</start>
      <start2>&amp;nbsp;-&amp;nbsp;</start2>
      <stop>&lt;/font&gt;</stop>
      <devider>-</devider>
      <image></image>
      <imageUrl></imageUrl>
      <swap></swap>
</parser>

The artist/info will be parsed ok, as long as there is no dash in artist's name, otherwise the parser would consider everything after dash as song. E.g. if the artist is called ARTIST-NAME and the song is called SONG, content would be
PHP:
<font color="#CC0000" size="2" title="14:22:51 - 14:26:23">ARTIST-NAME&nbsp;-&nbsp;SONG</font>
and the parser would parse artist as ARTIST and song as NAME - SONG (you can check it on my test feed http://www.mironto.sk/test.php).

I have tried setting separator as &nbsp;-&nbsp; and using different methods, this way the parser did not work at all. Can you help me parse the content so it will recognize artists with dash? Thank you.

Any ETA on the new version without Icecast and Shoutcast dirs? :D
 

Attachments

  • player.jpg
    player.jpg
    127.4 KB
  • parser.jpg
    parser.jpg
    44.1 KB

Cruzer

Portal Pro
February 16, 2008
172
15
Home Country
United States of America United States of America
Re: My Streamradio V2

First of all, I really like this plugin. I do have a couple of questions and possibly enhancements. Perhaps someone can help me.

When looking at the list of stations, I see no way to tell the bitrates, encoding, or genre of the stations. Often, the same icecast station is listed multiple times, playing the identical songs. I can only assume that these are different bitrates and possibly different encodings (mp3, ogg, etc.). But I can't find where I would get this data. Is it possible to display this data? Perhaps the bitrate, encoding, and genre could be listed in parentheses behind the station name? Or is this a skinning issue? Sorry for my ignorance.
 

Users who are viewing this thread

Top Bottom