home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
[Plugin] Streamradio V2
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="mironto" data-source="post: 664523" data-attributes="member: 103064"><p><strong>Re: My Streamradio V2</strong></p><p></p><p>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).</p><p></p><p><img src="https://forum.team-mediaportal.com/attachment.php?attachmentid=69231&d=1286454060" alt="" class="fr-fic fr-dii fr-draggable " style="" /> <img src="https://forum.team-mediaportal.com/attachment.php?attachmentid=69232&&d=1286454985" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p>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: <a href="http://www.radiosity.sk/jazler/actualsong-online.php" target="_blank">http://www.radiosity.sk/jazler/actualsong-online.php</a>.</p><p></p><p>The interesting part is [PHP]<div class="actualsong"></p><p><font color="#CC0000" size="2" title="14:22:51 - 14:26:23">AKON&nbsp;-&nbsp;ANGEL</font></p><p></div></p><p>[/PHP]</p><p></p><p>I have setup the following rules for parser:</p><p></p><p>[CODE]<parser></p><p> <method>1</method></p><p> <get>http://www.radiosity.sk/jazler/actualsong-online.php</get></p><p> <search>&lt;div class="actualsong"&gt;</search></p><p> <offset>1</offset></p><p> <start>"&gt;</start></p><p> <start2>&amp;nbsp;-&amp;nbsp;</start2></p><p> <stop>&lt;/font&gt;</stop></p><p> <devider>-</devider></p><p> <image></image></p><p> <imageUrl></imageUrl></p><p> <swap></swap></p><p></parser>[/CODE]</p><p></p><p>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</p><p>[PHP]<font color="#CC0000" size="2" title="14:22:51 - 14:26:23">ARTIST-NAME&nbsp;-&nbsp;SONG</font>[/PHP]</p><p>and the parser would parse artist as ARTIST and song as NAME - SONG (you can check it on my test feed <a href="http://www.mironto.sk/test.php" target="_blank">http://www.mironto.sk/test.php</a>).</p><p></p><p>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.</p><p></p><p>Any ETA on the new version without Icecast and Shoutcast dirs? <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite8" alt=":D" title="Big Grin :D" loading="lazy" data-shortname=":D" /></p></blockquote><p></p>
[QUOTE="mironto, post: 664523, member: 103064"] [b]Re: My Streamradio V2[/b] 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). [IMG]https://forum.team-mediaportal.com/attachment.php?attachmentid=69231&d=1286454060[/IMG] [IMG]https://forum.team-mediaportal.com/attachment.php?attachmentid=69232&&d=1286454985[/IMG] I have one more problem, though. I am parsing one radio, where they divide artist/song pair with dash + non-breaking spaces ( - ). Here is the actual content generator: [URL="http://www.radiosity.sk/jazler/actualsong-online.php"]http://www.radiosity.sk/jazler/actualsong-online.php[/URL]. The interesting part is [PHP]<div class="actualsong"> <font color="#CC0000" size="2" title="14:22:51 - 14:26:23">AKON - ANGEL</font> </div> [/PHP] I have setup the following rules for parser: [CODE]<parser> <method>1</method> <get>http://www.radiosity.sk/jazler/actualsong-online.php</get> <search><div class="actualsong"></search> <offset>1</offset> <start>"></start> <start2>&nbsp;-&nbsp;</start2> <stop></font></stop> <devider>-</devider> <image></image> <imageUrl></imageUrl> <swap></swap> </parser>[/CODE] 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 - SONG</font>[/PHP] and the parser would parse artist as ARTIST and song as NAME - SONG (you can check it on my test feed [URL="http://www.mironto.sk/test.php"]http://www.mironto.sk/test.php[/URL]). I have tried setting separator as - 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? :thx: [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
[Plugin] Streamradio V2
Contact us
RSS
Top
Bottom