Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
f4e91040
Commit
f4e91040
authored
May 11, 2007
by
Antoine Cellerier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
videoportals.c: Add metacafe URL support.
parent
04eab2d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
modules/demux/playlist/videoportals.c
modules/demux/playlist/videoportals.c
+26
-0
No files found.
modules/demux/playlist/videoportals.c
View file @
f4e91040
...
...
@@ -56,6 +56,7 @@ int E_(Import_VideoPortal)( vlc_object_t *p_this )
byte_t
*
p_peek
;
int
i_peek
;
printf
(
">>> %s
\n
"
,
psz_path
);
/* YouTube */
if
(
(
psz_cur
=
strstr
(
psz_path
,
"youtube.com"
)
)
)
{
...
...
@@ -131,6 +132,31 @@ int E_(Import_VideoPortal)( vlc_object_t *p_this )
docid
);
}
}
/* metacafe */
else
if
(
(
psz_cur
=
strstr
(
psz_path
,
"metacafe.com"
)
)
)
{
if
(
strstr
(
psz_cur
,
"watch/"
)
)
{
psz_cur
=
strstr
(
psz_cur
,
"watch/"
);
psz_cur
+=
strlen
(
"watch/"
);
if
(
psz_cur
[
strlen
(
psz_cur
)
-
1
]
==
'/'
)
psz_cur
[
strlen
(
psz_cur
)
-
1
]
=
'\0'
;
asprintf
(
&
psz_url
,
"http://www.metacafe.com/fplayer/%s.swf"
,
psz_cur
);
}
else
if
(
(
psz_cur
=
strstr
(
psz_path
,
"images.metacafe.com"
)
)
)
{
if
(
(
psz_cur
=
strstr
(
psz_cur
,
"mediaURL="
)
)
)
{
char
*
psz_tmp
;
psz_cur
+=
strlen
(
"mediaURL="
);
psz_tmp
=
strchr
(
psz_cur
,
'&'
);
*
psz_tmp
=
0
;
psz_url
=
strdup
(
psz_cur
);
*
psz_tmp
=
'&'
;
}
}
}
if
(
!
psz_url
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment