[vlc-commits] youtube.lua: return title as name field from alternate API too
Pierre Ynard
git at videolan.org
Sat Sep 19 08:43:40 CEST 2020
vlc/vlc-3.0 | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Sat Sep 19 08:18:13 2020 +0200| [3d41816e81b5ae33810bcff461cc19c2e5d45ed3] | committer: Pierre Ynard
youtube.lua: return title as name field from alternate API too
The name is used as fallback if the title is unset, but not conversely:
so setting the item title instead can have interesting side effects.
This was an odd one; like in most lua playlist scripts we really want to
set a name here.
Fixes #25124
(cherry picked from commit b42890f04ce0bd8e6cd383236ead8c82cb220323)
Signed-off-by: Pierre Ynard <linkfanel at yahoo.fr>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=3d41816e81b5ae33810bcff461cc19c2e5d45ed3
---
share/lua/playlist/youtube.lua | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/share/lua/playlist/youtube.lua b/share/lua/playlist/youtube.lua
index b262d0ec64..32b6972370 100644
--- a/share/lua/playlist/youtube.lua
+++ b/share/lua/playlist/youtube.lua
@@ -535,7 +535,7 @@ function parse()
arturl = vlc.strings.decode_uri( arturl )
end
- return { { path = path, title = title, description = description, artist = artist, arturl = arturl } }
+ return { { path = path, name = title, description = description, artist = artist, arturl = arturl } }
else -- Other supported URL formats
local video_id = string.match( vlc.path, "/[^/]+/([^?]*)" )
More information about the vlc-commits
mailing list