mirror of
https://code.videolan.org/videolan/vlc
synced 2024-10-03 01:31:53 +02:00
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
This commit is contained in:
parent
1ec799f3dd
commit
b42890f04c
@ -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, "/[^/]+/([^?]*)" )
|
||||
|
Loading…
Reference in New Issue
Block a user