From d40c39aa23db023624140fe8aad33107cceecf00 Mon Sep 17 00:00:00 2001 From: Grocel Date: Sat, 24 Jun 2023 00:27:51 +0200 Subject: [PATCH] Fixed dropbox support not working for some users. --- lua/streamradio_core/classes/skin_controller.lua | 1 - lua/streamradio_core/interfaces/dropbox.lua | 7 +++---- materials/3dstreamradio/_data/version.vmt | 4 ++-- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/lua/streamradio_core/classes/skin_controller.lua b/lua/streamradio_core/classes/skin_controller.lua index b05e472..07be857 100644 --- a/lua/streamradio_core/classes/skin_controller.lua +++ b/lua/streamradio_core/classes/skin_controller.lua @@ -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 diff --git a/lua/streamradio_core/interfaces/dropbox.lua b/lua/streamradio_core/interfaces/dropbox.lua index 9b670c7..68f3ccb 100644 --- a/lua/streamradio_core/interfaces/dropbox.lua +++ b/lua/streamradio_core/interfaces/dropbox.lua @@ -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) diff --git a/materials/3dstreamradio/_data/version.vmt b/materials/3dstreamradio/_data/version.vmt index 2b63424..6281361 100644 --- a/materials/3dstreamradio/_data/version.vmt +++ b/materials/3dstreamradio/_data/version.vmt @@ -1,2 +1,2 @@ -421 -1686589065 +422 +1687559271