]> git.sesse.net Git - vlc/commitdiff
* videoportals.c: Add title support for dailymotion videos.
authorAntoine Cellerier <dionoea@videolan.org>
Sat, 12 May 2007 14:57:12 +0000 (14:57 +0000)
committerAntoine Cellerier <dionoea@videolan.org>
Sat, 12 May 2007 14:57:12 +0000 (14:57 +0000)
modules/demux/playlist/videoportals.c

index 9581a3014a9c6afd139062b799a2dfc68fbac9b8..292109adeb52b24eafd479a9f8c43fe9fc5a6488 100644 (file)
@@ -150,8 +150,18 @@ int E_(Import_VideoPortal)( vlc_object_t *p_this )
                     psz_url = strdup( psz_cur );
                     decode_URI( psz_url );
                     *psz_tmp = '&';
-                    break;
                 }
+                if( ( psz_cur = strstr( psz_line, "<title>" ) ) )
+                {
+                    char *psz_tmp;
+                    psz_cur += strlen( "<title>" );
+                    psz_tmp = strchr( psz_cur, '<' );
+                    *psz_tmp = 0;
+                    psz_title = strdup( psz_cur );
+                    decode_URI( psz_title );
+                    *psz_tmp = '<';
+                }
+                if( psz_url && psz_title ) break;
             }
         }
     }