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
5c29e5fc
Commit
5c29e5fc
authored
Apr 09, 2010
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Lua: fix the remaining scripts.
parent
5d6abdc3
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
11 deletions
+11
-11
share/lua/meta/art/01_musicbrainz.lua
share/lua/meta/art/01_musicbrainz.lua
+1
-1
share/lua/meta/art/02_frenchtv.lua
share/lua/meta/art/02_frenchtv.lua
+1
-1
share/lua/meta/fetcher/tvrage.lua
share/lua/meta/fetcher/tvrage.lua
+4
-4
share/lua/meta/reader/filename.lua
share/lua/meta/reader/filename.lua
+5
-5
No files found.
share/lua/meta/art/01_musicbrainz.lua
View file @
5c29e5fc
...
...
@@ -54,7 +54,7 @@ end
-- Return the artwork
function
fetch_art
()
local
meta
=
vlc
.
item
:
metas
()
local
meta
=
vlc
.
i
nput
.
i
tem
:
metas
()
if
not
(
meta
[
"artist"
]
and
meta
[
"album"
])
then
return
nil
end
...
...
share/lua/meta/art/02_frenchtv.lua
View file @
5c29e5fc
...
...
@@ -40,7 +40,7 @@ function fetch_art()
[
"Virgin 17"
]
=
"http://upload.wikimedia.org/wikipedia/fr/3/39/Virgin17logo.png"
,
[
"La Chaîne Parlementaire"
]
=
"http://upload.wikimedia.org/wikipedia/fr/9/98/Public-Senat-LCP-An_logo_2010.png"
}
local
meta
=
vlc
.
item
:
metas
();
local
meta
=
vlc
.
i
nput
.
i
tem
:
metas
();
local
channel
if
meta
[
"title"
]
then
channel
=
meta
[
"title"
]
...
...
share/lua/meta/fetcher/tvrage.lua
View file @
5c29e5fc
...
...
@@ -28,7 +28,7 @@ function get_query( title )
end
function
fetch_meta
()
local
metas
=
vlc
.
item
:
metas
()
local
metas
=
vlc
.
i
nput
.
i
tem
:
metas
()
local
showName
=
metas
[
"showName"
]
if
not
showName
then
...
...
@@ -73,9 +73,9 @@ function fetch_meta()
return
false
end
vlc
.
item
:
set_meta
(
"title"
,
showName
..
" S"
..
seasonNumber
..
"E"
..
episodeNumber
..
" - "
..
title
)
vlc
.
item
:
set_meta
(
"artwork_url"
,
artwork
)
vlc
.
item
:
set_meta
(
"episodeName"
,
title
)
vlc
.
i
nput
.
i
tem
:
set_meta
(
"title"
,
showName
..
" S"
..
seasonNumber
..
"E"
..
episodeNumber
..
" - "
..
title
)
vlc
.
i
nput
.
i
tem
:
set_meta
(
"artwork_url"
,
artwork
)
vlc
.
i
nput
.
i
tem
:
set_meta
(
"episodeName"
,
title
)
return
true
end
share/lua/meta/reader/filename.lua
View file @
5c29e5fc
...
...
@@ -24,7 +24,7 @@ function trim (s)
end
function
read_meta
()
local
metas
=
vlc
.
item
:
metas
()
local
metas
=
vlc
.
i
nput
.
i
tem
:
metas
()
-- Don't do anything if there is already a title
if
metas
[
"title"
]
then
...
...
@@ -45,8 +45,8 @@ function read_meta()
-- Remove . in showName
showName
=
trim
(
string.gsub
(
showName
,
"%."
,
" "
))
vlc
.
item
:
set_meta
(
"title"
,
showName
..
" S"
..
seasonNumber
..
"E"
..
episodeNumber
)
vlc
.
item
:
set_meta
(
"showName"
,
showName
)
vlc
.
item
:
set_meta
(
"episodeNumber"
,
episodeNumber
)
vlc
.
item
:
set_meta
(
"seasonNumber"
,
seasonNumber
)
vlc
.
i
nput
.
i
tem
:
set_meta
(
"title"
,
showName
..
" S"
..
seasonNumber
..
"E"
..
episodeNumber
)
vlc
.
i
nput
.
i
tem
:
set_meta
(
"showName"
,
showName
)
vlc
.
i
nput
.
i
tem
:
set_meta
(
"episodeNumber"
,
episodeNumber
)
vlc
.
i
nput
.
i
tem
:
set_meta
(
"seasonNumber"
,
seasonNumber
)
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