Commit f2b009c1 authored by Antoine Cellerier's avatar Antoine Cellerier

* videoportals.c: Add title support for dailymotion videos.

parent 27f623d2
...@@ -150,8 +150,18 @@ int E_(Import_VideoPortal)( vlc_object_t *p_this ) ...@@ -150,8 +150,18 @@ int E_(Import_VideoPortal)( vlc_object_t *p_this )
psz_url = strdup( psz_cur ); psz_url = strdup( psz_cur );
decode_URI( psz_url ); decode_URI( psz_url );
*psz_tmp = '&'; *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;
} }
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment