Commit 04eab2d9 authored by Antoine Cellerier's avatar Antoine Cellerier

videoportals.c: Add support for google video (this sometimes fails ... the gvp...

videoportals.c: Add support for google video (this sometimes fails ... the gvp vile referencing an empty url).
parent 2dc29d7d
...@@ -117,6 +117,20 @@ int E_(Import_VideoPortal)( vlc_object_t *p_this ) ...@@ -117,6 +117,20 @@ int E_(Import_VideoPortal)( vlc_object_t *p_this )
} }
} }
} }
/* Google video */
else if( ( psz_cur = strstr( psz_path, "video.google.com" ) )
&& strstr( psz_cur, "videoplay" ) )
{
char *docid = strstr( psz_cur, "docid=" );
if( docid )
{
docid += strlen( "docid=" );
/* This doesn't always work ... */
asprintf( &psz_url,
"http://video.google.com/videogvp?docid=%s",
docid );
}
}
if( !psz_url ) if( !psz_url )
{ {
......
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