mirror of
https://github.com/Grocel/3D-Stream-Radio.git
synced 2025-03-04 03:03:07 -05:00
Fixed dropbox support not working for some users.
This commit is contained in:
parent
356ff23788
commit
d40c39aa23
@ -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
|
||||
|
@ -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)
|
||||
|
@ -1,2 +1,2 @@
|
||||
421
|
||||
1686589065
|
||||
422
|
||||
1687559271
|
||||
|
Loading…
Reference in New Issue
Block a user