HTTP: Support a stream title hack
Support a stream title hack employed by some iHeartRadio streams Signed-off-by: Christopher Snowhill <kode54@gmail.com>
This commit is contained in:
parent
1115e9651d
commit
13254f25b1
1 changed files with 9 additions and 0 deletions
|
@ -86,6 +86,15 @@ static int http_parse_shoutcast_meta(HTTPSource *fp, const char *meta, size_t si
|
|||
*tit = 0;
|
||||
tit += 3;
|
||||
|
||||
if(!strncmp(tit, "text=\"", 6)) { // Hack for a certain stream
|
||||
char *titfirst = tit + 6;
|
||||
char *titlast = strchr(titfirst, '"');
|
||||
if(titlast) {
|
||||
*titlast = 0;
|
||||
}
|
||||
tit = titfirst;
|
||||
}
|
||||
|
||||
const char *orig_title = [fp->title UTF8String];
|
||||
const char *orig_artist = [fp->artist UTF8String];
|
||||
|
||||
|
|
Loading…
Reference in a new issue