Skip to content

Commit

Permalink
Update sh_url_main.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
CattoGamer committed Oct 30, 2024
1 parent 846d394 commit 3793580
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ local videoExtensions = {
}
validExtensions = table.Merge(validExtensions, videoExtensions)


function SERVICE:Match( url )
local allowed = true

Expand Down Expand Up @@ -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)

Expand All @@ -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
Expand Down

0 comments on commit 3793580

Please sign in to comment.