diff options
Diffstat (limited to 'playtreeparser.c')
-rw-r--r-- | playtreeparser.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/playtreeparser.c b/playtreeparser.c index 2785d398e6..6f23be3cb2 100644 --- a/playtreeparser.c +++ b/playtreeparser.c @@ -558,13 +558,18 @@ parse_textplain(play_tree_parser_t* p) { if(line[0] == '\0') continue; - //Special check for smil reference in file + //Special check for embedded smil or ram reference in file embedded = 0; if (strlen(line) > 5) for(c = line; c[0]; c++ ) - if((c[0] == '.') && (tolower(c[1]) == 's') && (tolower(c[2])== 'm') && + if ( ((c[0] == '.') && //start with . and next have smil with optional ? or & + (tolower(c[1]) == 's') && (tolower(c[2])== 'm') && (tolower(c[3]) == 'i') && (tolower(c[4]) == 'l') && - (!c[5] || c[5] == '?' || c[5] == '&')) { + (!c[5] || c[5] == '?' || c[5] == '&')) || // or + ((c[0] == '.') && // start with . and next have smi or ram with optional ? or & + ( ((tolower(c[1]) == 's') && (tolower(c[2])== 'm') && (tolower(c[3]) == 'i')) || + ((tolower(c[1]) == 'r') && (tolower(c[2])== 'a') && (tolower(c[3]) == 'm')) ) + && (!c[4] || c[4] == '?' || c[4] == '&')) ){ entry=embedded_playlist_parse(line); embedded = 1; break; |