Skip to content

Commit

Permalink
Fixed dropbox support not working for some users.
Browse files Browse the repository at this point in the history
  • Loading branch information
Grocel committed Jun 23, 2023
1 parent 356ff23 commit d40c39a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
1 change: 0 additions & 1 deletion lua/streamradio_core/classes/skin_controller.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 3 additions & 4 deletions lua/streamradio_core/interfaces/dropbox.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ Make sure your Dropbox has a valid path in it.
}

local DropboxPatterns = {
"dropbox%://s/(.+)",
"dropbox%://(.+)",
"/s/(.+)",
"com/(.+)",
}

local DropboxURLs = {
Expand Down Expand Up @@ -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
Expand All @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions materials/3dstreamradio/_data/version.vmt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
421
1686589065
422
1687559271

0 comments on commit d40c39a

Please sign in to comment.