[vlc-commits] youtube.lua: return title as name field from alternate API too
Pierre Ynard
git at videolan.org
Sat Sep 19 08:37:20 CEST 2020
vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Sat Sep 19 08:18:13 2020 +0200| [b42890f04ce0bd8e6cd383236ead8c82cb220323] | 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
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b42890f04ce0bd8e6cd383236ead8c82cb220323
---
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