diff --git a/workshop/gamemodes/cinema_modded/gamemode/extensions/sh_url.lua b/workshop/gamemodes/cinema_modded/gamemode/extensions/sh_url.lua index 8a5391c..181102c 100644 --- a/workshop/gamemodes/cinema_modded/gamemode/extensions/sh_url.lua +++ b/workshop/gamemodes/cinema_modded/gamemode/extensions/sh_url.lua @@ -316,6 +316,14 @@ function parse(url, default) -- path is whatever was left if url ~= "" then parsed.path = url + + -- get file information + if string.GetFileFromFilename(url) then + parsed.file = { + name = string.GetFileFromFilename(url), + ext = string.GetExtensionFromFilename(url) + } + end else parsed.path = "/" end