spacer
spacer search

SwissCenter

Search
spacer
Main Menu
Home
Documentation + FAQ
Screenshots
Downloads
Forums
Bug Tracking
History
Login
Username

Password

Remember me
?
No account yet?

Locations of visitors to this page

 
Home arrow Forums

SwissCenter Forums  


Internet radio: extra search method - 2008/09/11 17:36 Hi Nigel,

With reference to ticket 164, maybe you want to consider to expand the current search methods "genre" and "country" with a third one, being "broadcasters".

It may sound a bit silly, but for me it isn't. At the moment I use the text file of countries to put in the names of broadcasters. like ".977" or "Virgin Radio". By doing so I get quickly access to all stations of these broadcasters.

Is it possible to get such a third search method?

---------------------------------------------------------------------------
SwissCenter SVN 1086
Simese 1.40 / PHP 4.4.4 / MySQL 4.0.21 / Windows XP
Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15
Synology DS107+ (128), firmware: DSM 2.0-0702
Pinnacle SC200
  | | The administrator has disabled public write access.
Re: Internet radio: extra search method - 2008/09/11 18:37 maybe you want to consider to expand the current search methods "genre" and "country" with a third one, being "broadcasters".
It really depends on what each internet radio site allows to search upon.

Live-Radio allows searching by genre, country, and station whereas ShoutCast only genre and station. When we search ShoutCast for a country we are actually searching for a station name that contains the country.

So what you're asking is perfectly possible. There is room for plenty of improvement in the configuration of internet radio so I'll add your request to the ticket.

Nigel
Player : Netgear EVA700 & Popcorn A-100 (081224)
Server : Vista SP1 Home Premium (Simese 2.06, SwissCenter current SVN)
Spec : Intel C2Q Q6600, 2GB RAM, 2Tb storage.
  | | The administrator has disabled public write access.
Re: Internet radio: extra search method - 2008/09/12 07:58 Hi Nigel,

Thanks for adding this request to ticket 164.

But

Priority: Low Milestone: Undecided
makes me sad

regards, Klaas

---------------------------------------------------------------------------
SwissCenter SVN 1087
Simese 1.40 / PHP 4.4.4 / MySQL 4.0.21 / Windows XP
Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15
Synology DS107+ (128), firmware: DSM 2.0-0702
Pinnacle SC200
  | | The administrator has disabled public write access.
Re: Internet radio: extra search method - 2008/09/12 08:28 I have many other things I'd like to do, and time is always limited.

It's not really adding any new capability since the same can be achieved by editing the txt files, hence the low priority. It doesn't mean that all media priority tickets will be done first though. I'll probably get to it in a month or so.

Nigel
Player : Netgear EVA700 & Popcorn A-100 (081224)
Server : Vista SP1 Home Premium (Simese 2.06, SwissCenter current SVN)
Spec : Intel C2Q Q6600, 2GB RAM, 2Tb storage.
  | | The administrator has disabled public write access.
Re: Internet radio: extra search method - 2008/09/12 08:34 Hi Nigel,

I fully understand, (just teasing a bit )

take your time, regards, Klaas

---------------------------------------------------------------------------
SwissCenter SVN 1087
Simese 1.40 / PHP 4.4.4 / MySQL 4.0.21 / Windows XP
Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15
Synology DS107+ (128), firmware: DSM 2.0-0702
Pinnacle SC200
  | | The administrator has disabled public write access.
Re: Internet radio: extra search method - 2008/10/21 17:18 Not as fancy as Nigel is planning to create, I have added within the current methodology the “broadcaster” (like .977, Absolute Radio, Sky.FM, etc.) to the radio menu (“Search for stations”). It looks like this.

If you like to have this (and beware Nigel is developing a real change of this menu), please unzip the files and copy them as follows:

file “iradio.php” into directory “/ext/iradio/
file “broadcasters.txt” into directory “/ext/iradio/
file “music_radio_shoutcast.php” into the main directory.

Make sure you’ve made copies of your original files beforehand.

Some new translations can be made with the translation tool in the config screen.

Comments are welcome.

Regards, Klaas

File Attachment:
File name: klaas_files_broadcast.zip
File size:5895 bytes

PS For the Dutch I’ve posted an updated NL translation (see here).

---------------------------------------------------------------------------
SwissCenter SVN 1104
Simese 1.40 / PHP 4.4.4 / MySQL 4.0.21 / Windows XP
Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15
Synology DS107+ (128), firmware: DSM 2.0-0702
Pinnacle SC200
  | | The administrator has disabled public write access.
Re: Internet radio: extra search method - 2008/10/21 18:37 Hi klaasvaak!

Thanks for your work!

But...

Code:

 Fatal errorCall to undefined function: search_broadcaster() in C:\Dokumente und Einstellungen\All Users\Anwendungsdaten\Simese\Data\music_radio_shoutcast.php on line 138



Any idea?
  | | The administrator has disabled public write access.
Re: Internet radio: extra search method - 2008/10/22 00:07 Ah I see ... I assume the error message appears with Live Radio only, not with ShoutCast (I got the same error message as well with Live Radio). Copy the attached file "live-radio.php" into directory "/ext/iradio" and I guess the issue is solved.

If the problem appears with both Live Radio and ShoutCast, could you tell me at which moment you get the error message: at the time you open menu “Search for stations”, “Select the Broadcaster to search for”, or “Select the Station to tune in”. And if it’s happening at the stage of opening menu “Select the Station to tune in”, does it also happens when you select “Browse by genre” or “Browse by country”?

In addition, could you let me know the specifics of your system (OS, server, PHP version, player type etc.). I have tested the menu on my laptop with Windows XP icw Simese V1.45 and PHP V4.4.4. and didn't have any problems. At the moment I’m not sure how it will work out on PHP 5 and Apache, but I wouldn’t expect any troubles, but still …

regards, Klaas


UPLOAD FAILURE - FILE IN NEXT POST
---------------------------------------------------------------------------
SwissCenter SVN 1104
Simese 1.40 / PHP 4.4.4 / MySQL 4.0.21 / Windows XP
Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15
Synology DS107+ (128), firmware: DSM 2.0-0702
Pinnacle SC200
  | | The administrator has disabled public write access.
Re: Internet radio: extra search method - 2008/10/22 00:34 and here it is

File Attachment:
File name: live_radio_br.zip
File size:2739 bytes

---------------------------------------------------------------------------
SwissCenter SVN 1104
Simese 1.40 / PHP 4.4.4 / MySQL 4.0.21 / Windows XP
Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15
Synology DS107+ (128), firmware: DSM 2.0-0702
Pinnacle SC200
  | | The administrator has disabled public write access.
Re: Internet radio: extra search method - 2008/10/22 05:14 Hi Klaas,

Webserver: Simese v1.42
PHP: v4.4.4
MySQL: v4.0.21-debug
SwissCenter : SVN Revision [1104]
OS: WXP Prof. SP2
Device: Pinnacle SC 1000

After copying the attached file...

Shoutcast and Live Radio:
  • On the "Search for Stations" screen the third menu item is called "[BROWSE_BROADCASTER]"

  • If I select "[BROWSE_BROADCASTER]", a new screen named "[IRADIO_BROADCASTER_SELECT]" will appear. All broadcasters from broadcasters.txt are listed there.

  • When I select one of the stations I get the above error (Shoutcast) or a screen saying "No stations could be found that match your search for 'name_of_the_selected_station'" (Live Radio)


  • Thanks,
    Uwe
      | | The administrator has disabled public write access.
    Re: Internet radio: extra search method - 2008/10/22 06:19 Hi Uwe,

    That's odd. It should work, but it doesn't ...

    OK, let's try two things:

    [1] try on your PC to open one of the channels and see if you're still getting the error message;
    [2] try to browse through the country list and see if you can open one of the radio streams.

    Would you please post row 122 until and including 153 (122 starts with "elseif" and row 153 with an "}") of file "/music_radio_shoutcast.php". Maybe something went wrong there.

    regards, Klaas

    ---------------------------------------------------------------------------
    SwissCenter SVN 1104
    Simese 1.40 / PHP 4.4.4 / MySQL 4.0.21 / Windows XP
    Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15
    Synology DS107+ (128), firmware: DSM 2.0-0702
    Pinnacle SC200
      | | The administrator has disabled public write access.
    Re: Internet radio: extra search method - 2008/10/22 09:43 I have the same error...

    It's because there is only a search_broadcaster method in the live-radio class and not in the shoutcast class. I intend to submit this feature later today so I'll make the required changes myself.
    Player : Netgear EVA700 & Popcorn A-100 (081224)
    Server : Vista SP1 Home Premium (Simese 2.06, SwissCenter current SVN)
    Spec : Intel C2Q Q6600, 2GB RAM, 2Tb storage.
      | | The administrator has disabled public write access.
    Re: Internet radio: extra search method - 2008/10/22 13:04 Hi Nigel,

    You're completely right, I completely forgot file "/ext/iradio/shoutcast.php"; now you're telling I know I've adjusted that one as well, but forgot to upload it.

    That's why it's works with me and not with Uwe. I've attached the file, maybe it's helpfull and saves some time for you.

    regards, Klaas


    File Attachment:
    File name: shoutcast_br.zip
    File size:2278 bytes

    ---------------------------------------------------------------------------
    SwissCenter SVN 1104
    Simese 1.40 / PHP 4.4.4 / MySQL 4.0.21 / Windows XP
    Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15
    Synology DS107+ (128), firmware: DSM 2.0-0702
    Pinnacle SC200
      | | The administrator has disabled public write access.
    Re: Internet radio: extra search method - 2008/10/22 14:16 Any reason why you made the search_broadcaster method when the existing search_station would do the same? Player : Netgear EVA700 & Popcorn A-100 (081224)
    Server : Vista SP1 Home Premium (Simese 2.06, SwissCenter current SVN)
    Spec : Intel C2Q Q6600, 2GB RAM, 2Tb storage.
      | | The administrator has disabled public write access.
    Re: Internet radio: extra search method - 2008/10/22 14:40 I make frequently use of the same broadcasters, but various channels (.977, Absolute, Kink and Disney). The current search methods (genre and country) are not efficient as many channels of these broadcasters are many pages down before you reach them and not grouped together

    Alternatively, I could include the stations one by one as bookmarks. Again this isn’t very efficient as it’s all manual work, but more important: the links are static and therefore not generic. It happens quite often that broadcasters change there URLs and if so, you’re stuck with broken links and you have to start over again. Especially for those not very handy in doing so, this is no joy.

    So, to answer your question in short: sustainable, quick access to favorite broadcasters and their channels.

    regards, Klaas

    ---------------------------------------------------------------------------
    SwissCenter SVN 1104
    Simese 1.40 / PHP 4.4.4 / MySQL 4.0.21 / Windows XP
    Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15
    Synology DS107+ (128), firmware: DSM 2.0-0702
    Pinnacle SC200
      | | The administrator has disabled public write access.
    Re: Internet radio: extra search method - 2008/10/22 14:59 Think you missed the point of the question. In shoutcast.php and live-radio.php there is already a method search_station which does exactly the same as your new method search_broadcaster. Player : Netgear EVA700 & Popcorn A-100 (081224)
    Server : Vista SP1 Home Premium (Simese 2.06, SwissCenter current SVN)
    Spec : Intel C2Q Q6600, 2GB RAM, 2Tb storage.
      | | The administrator has disabled public write access.
    Re: Internet radio: extra search method - 2008/10/22 15:21 Capito … I overlooked function search_station() as it wasn’t “activated” in file /music_radio_shoutcast.php (yet).

    Indeed the functions are exactly the same, but with a different name. I assume you’ll open function search station() for the public; you may forget about function search_broadcaster() and it will remain a good exercise in PHP.

    regards, Klaas

    ---------------------------------------------------------------------------
    SwissCenter SVN 1104
    Simese 1.40 / PHP 4.4.4 / MySQL 4.0.21 / Windows XP
    Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15
    Synology DS107+ (128), firmware: DSM 2.0-0702
    Pinnacle SC200
      | | The administrator has disabled public write access.
    Re: Internet radio: extra search method - 2008/10/23 08:41 Hi Klaas, hi Nigel

    works perfectly with SVN Revision [1107]

    Thanks to both of you!

    Uwe
      | | The administrator has disabled public write access.
    spacer
     

    Screenshots

    www.flickr.com
    This is a Flickr badge showing public photos from swisscenter. Make your own badge here.


     

    Mambo is Free Software released under the GNU/GPL License.
    spacer