Branding: real Piped logo (from frontend container) + profile card picks piped mark by backend URL
This commit is contained in:
1 parent
fcd21e72e5
commit
611e5fd373
5 files changed
+15
-2
No files matched your search
@@ -40,7 +40,7 @@ requires_widevine_version=1.0
|
||||
playlet_lib_squashfs_remote_url=https://github.com/iBicha/playlet/releases/latest/download/playlet-lib.squashfs.pkg
|
||||
playlet_lib_zip_remote_url=https://github.com/iBicha/playlet/releases/latest/download/playlet-lib.zip
|
||||
playlet_lib_zip_embedded_url=pkg:/lib/playlet-lib.zip
|
||||
playlet_lib_zip_debug_url=https://gitea.spaghet.io/spaghet/playlet-piped/raw/branch/main/piped/playlet-lib-1795495815.zip
|
||||
playlet_lib_zip_debug_url=https://gitea.spaghet.io/spaghet/playlet-piped/raw/branch/main/piped/playlet-lib-1795496523.zip
|
||||
|
||||
git_commit_sha=unknown
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import "pkg:/source/utils/Locale.bs"
|
||||
import "pkg:/source/utils/StringUtils.bs"
|
||||
import "pkg:/source/utils/Types.bs"
|
||||
|
||||
function Init()
|
||||
m.normalFont = m.top.findNode("normalFont")
|
||||
@@ -53,7 +54,13 @@ function OnContentSet() as void
|
||||
backendType = content.type
|
||||
if backendType = "invidious"
|
||||
m.top.serverUrl = content.serverUrl
|
||||
' A Piped-backed profile is stored as an invidious profile (token
|
||||
' shape + auth machinery reuse); the local router URL is the tell.
|
||||
if InStr(LCase(ValidString(content.serverUrl)), "piped") > 0
|
||||
m.top.backendTypePosterUri = "pkg:/images/piped-logo.png"
|
||||
else
|
||||
m.top.backendTypePosterUri = "pkg:/images/invidious-logo.png"
|
||||
end if
|
||||
else if backendType = "youtube"
|
||||
m.top.serverUrl = "YouTube"
|
||||
m.top.backendTypePosterUri = "pkg:/images/youtube-logo.png"
|
||||
|
||||
@@ -78,7 +78,13 @@ function OnContentSet() as void
|
||||
backendType = content.type
|
||||
if backendType = "invidious"
|
||||
m.top.serverUrl = content.serverUrl
|
||||
' A Piped-backed profile is stored as an invidious profile (token
|
||||
' shape + auth machinery reuse); the local router URL is the tell.
|
||||
if InStr(LCase(ValidString(content.serverUrl)), "piped") > 0
|
||||
m.top.backendTypePosterUri = "pkg:/images/piped-logo.png"
|
||||
else
|
||||
m.top.backendTypePosterUri = "pkg:/images/invidious-logo.png"
|
||||
end if
|
||||
else if backendType = "youtube"
|
||||
m.top.serverUrl = "YouTube"
|
||||
m.top.backendTypePosterUri = "pkg:/images/youtube-logo.png"
|
||||
|
||||
@@ -129,7 +129,7 @@ namespace Http
|
||||
end function
|
||||
|
||||
function LibBuildTag() as string
|
||||
return "PIPED-LIB-23"
|
||||
return "PIPED-LIB-24"
|
||||
end function
|
||||
|
||||
function FetchJson(path as string, params = invalid as object) as dynamic
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 18 KiB |
Reference in new issue
Block a user