From 3793580ae8f57648a9d1b09b1bbafd1ac6b5d9c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Shadowsun=E2=84=A2?= <12494967+CattoGamer@users.noreply.github.com> Date: Wed, 30 Oct 2024 07:20:25 +0100 Subject: [PATCH] Update sh_url_main.lua --- .../gamemode/modules/theater/services/sh_url_main.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/workshop/gamemodes/cinema_modded/gamemode/modules/theater/services/sh_url_main.lua b/workshop/gamemodes/cinema_modded/gamemode/modules/theater/services/sh_url_main.lua index e40bdb0..56144c5 100644 --- a/workshop/gamemodes/cinema_modded/gamemode/modules/theater/services/sh_url_main.lua +++ b/workshop/gamemodes/cinema_modded/gamemode/modules/theater/services/sh_url_main.lua @@ -45,7 +45,6 @@ local videoExtensions = { } validExtensions = table.Merge(validExtensions, videoExtensions) - function SERVICE:Match( url ) local allowed = true @@ -210,7 +209,7 @@ function SERVICE:GetVideoInfo( data, onSuccess, onFailure ) local fileext = data2.file.ext local filename = data2.file.name - if validImageExtensions[ fileext ] then + if imageExtensions[ fileext ] then local info = {} info.title = ("Image: %s"):format(filename) @@ -229,7 +228,7 @@ function SERVICE:GetVideoInfo( data, onSuccess, onFailure ) return end - if validVideoExtensions[ fileext ] then + if videoExtensions[ fileext ] then theater.FetchVideoMedata( data:GetOwner(), data, function(metadata) if metadata.err then