Assembla home | Assembla project page
 

Changeset 1087

Show
Ignore:
Timestamp:
09/11/08 21:57:48 (10 months ago)
Author:
Pernod
Message:

The SHOUTcast site was redesigned today which meant that this parser was no longer compatible. Fortunately the previous design is still available as Classic SHOUTcast Radio 1.0.

Updated the URL's in the SHOUTcast parser to now use classic.shoutcast.com.

Fixes #163

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/swisscenter/ext/iradio/shoutcast.php

    r942 r1087  
    2626  function shoutcast() { 
    2727    $this->iradio(); 
    28     $this->set_site("www.shoutcast.com"); 
     28    $this->set_site("classic.shoutcast.com"); 
    2929  } 
    3030 
     
    105105  function search_genre($name) { 
    106106    send_to_log(6,"IRadio: Initialize genre search for \"$name\""); 
    107     return $this->parse("?sgenre=".str_replace(' ','+',$name),str_replace(' ','_',$name)); 
     107    return $this->parse("/directory/index.phtml?sgenre=".str_replace(' ','+',$name),str_replace(' ','_',$name)); 
    108108  } 
    109109 
     
    120120  function search_station($name) { 
    121121    send_to_log(6,"IRadio: Initialize station search for \"$name\""); 
    122     return $this->parse("?s=".str_replace(' ','+',$name),str_replace(' ','_',$name)); 
     122    return $this->parse("/directory/index.phtml?s=".str_replace(' ','+',$name),str_replace(' ','_',$name)); 
    123123  } 
    124124