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
cedbf7f3
Commit
cedbf7f3
authored
Mar 08, 2011
by
Pierre Ynard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
youtube.lua: don't force avformat demuxer
Not needed anymore
parent
ac1e77a6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
share/lua/playlist/youtube.lua
share/lua/playlist/youtube.lua
+3
-4
No files found.
share/lua/playlist/youtube.lua
View file @
cedbf7f3
...
...
@@ -38,7 +38,6 @@ function probe()
if
vlc
.
access
~=
"http"
and
vlc
.
access
~=
"https"
then
return
false
end
options
=
{
":demux=avformat,ffmpeg"
}
youtube_site
=
string.match
(
string.sub
(
vlc
.
path
,
1
,
8
),
"youtube"
)
if
not
youtube_site
then
-- FIXME we should be using a builtin list of known youtube websites
...
...
@@ -152,7 +151,7 @@ function parse()
path
=
"http://www.youtube.com/v/"
..
video_id
end
end
return
{
{
path
=
path
;
name
=
name
;
description
=
description
;
artist
=
artist
;
arturl
=
arturl
;
options
=
options
}
}
return
{
{
path
=
path
;
name
=
name
;
description
=
description
;
artist
=
artist
;
arturl
=
arturl
}
}
else
-- This is the flash player's URL
if
string.match
(
vlc
.
path
,
"title="
)
then
name
=
vlc
.
strings
.
decode_uri
(
get_url_param
(
vlc
.
path
,
"title"
))
...
...
@@ -168,8 +167,8 @@ function parse()
if
not
string.match
(
vlc
.
path
,
"t="
)
then
-- This sucks, we're missing "t" which is now mandatory. Let's
-- try using another url
return
{
{
path
=
"http://www.youtube.com/v/"
..
video_id
;
name
=
name
;
arturl
=
arturl
;
options
=
options
}
}
return
{
{
path
=
"http://www.youtube.com/v/"
..
video_id
;
name
=
name
;
arturl
=
arturl
}
}
end
return
{
{
path
=
"http://www.youtube.com/get_video.php?video_id="
..
video_id
..
"&t="
..
get_url_param
(
vlc
.
path
,
"t"
)
..
format
;
name
=
name
;
arturl
=
arturl
;
options
=
options
}
}
return
{
{
path
=
"http://www.youtube.com/get_video.php?video_id="
..
video_id
..
"&t="
..
get_url_param
(
vlc
.
path
,
"t"
)
..
format
;
name
=
name
;
arturl
=
arturl
}
}
end
end
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