changeset 16871:0586a1ffba44

preliminary support for wpl playlists, closes #362
author reynaldo
date Fri, 28 Oct 2005 22:12:20 +0000
parents 09ad0b5e6643
children 9d4becb83656
files playtreeparser.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/playtreeparser.c	Thu Oct 27 06:55:05 2005 +0000
+++ b/playtreeparser.c	Fri Oct 28 22:12:20 2005 +0000
@@ -436,7 +436,7 @@
     strstrip(line);
     if(line[0] == '\0') // Ignore empties
       continue;
-    if (strncasecmp(line,"<smil",5)==0)
+    if (strncasecmp(line,"<smil",5)==0 || strncasecmp(line,"<?wpl",5)==0)
       break; // smil header found
     else
       return NULL; //line not smil exit
@@ -452,7 +452,7 @@
     if (line[0]=='\0')
       continue;
     if (!entrymode) { // all entries filled so far 
-      if (strncasecmp(line,"<video",6)==0  || strncasecmp(line,"<audio",6)==0) {
+      if (strncasecmp(line,"<video",6)==0  || strncasecmp(line,"<audio",6)==0 || strncasecmp(line,"<media",6)) {
         pos=strstr(line,"src=");   // Is source present on this line
         if (pos !=NULL) {
           s_start=pos+5;