Fixed dropbox support not working for some users.

This commit is contained in:
Grocel 2023-06-24 00:27:51 +02:00
parent 356ff23788
commit d40c39aa23
3 changed files with 5 additions and 7 deletions

View File

@ -102,7 +102,6 @@ function CLASS:NetworkSkinInternal()
end
local playerlist = table.GetKeys(self.NetworkPlayerList or {})
local data = self.Data or {}
self.NetworkPlayerList = nil
if #playerlist <= 0 then return end

View File

@ -19,9 +19,8 @@ Make sure your Dropbox has a valid path in it.
}
local DropboxPatterns = {
"dropbox%://s/(.+)",
"dropbox%://(.+)",
"/s/(.+)",
"com/(.+)",
}
local DropboxURLs = {
@ -54,7 +53,7 @@ function RADIOIFACE:ParseURL(url)
continue
end
result = string.match( result, "^/s/(.+)$" ) or result
result = string.match( result, "^/(.+)$" ) or result
result = string.TrimLeft( result, "/" )
if result == "" then
@ -67,7 +66,7 @@ function RADIOIFACE:ParseURL(url)
return nil
end
local g_dropbox_content_url = "https://www.dl.dropboxusercontent.com/s/";
local g_dropbox_content_url = "https://www.dl.dropboxusercontent.com/";
function RADIOIFACE:Convert(url, callback)
local path = self:ParseURL(url)

View File

@ -1,2 +1,2 @@
421
1686589065
422
1687559271