diff --git a/playlet-app/src/manifest b/playlet-app/src/manifest index 640ec43f..d24d397c 100644 --- a/playlet-app/src/manifest +++ b/playlet-app/src/manifest @@ -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 diff --git a/playlet-lib/src/components/Screens/ProfileScreen/ProfileRowList/ProfileRowListCell.bs b/playlet-lib/src/components/Screens/ProfileScreen/ProfileRowList/ProfileRowListCell.bs index 19fafba8..4c795dc9 100644 --- a/playlet-lib/src/components/Screens/ProfileScreen/ProfileRowList/ProfileRowListCell.bs +++ b/playlet-lib/src/components/Screens/ProfileScreen/ProfileRowList/ProfileRowListCell.bs @@ -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 - m.top.backendTypePosterUri = "pkg:/images/invidious-logo.png" + ' 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" diff --git a/playlet-lib/src/components/Screens/ProfileScreen/ProfileView/ProfileView.bs b/playlet-lib/src/components/Screens/ProfileScreen/ProfileView/ProfileView.bs index f52d7bde..4aed5fae 100644 --- a/playlet-lib/src/components/Screens/ProfileScreen/ProfileView/ProfileView.bs +++ b/playlet-lib/src/components/Screens/ProfileScreen/ProfileView/ProfileView.bs @@ -78,7 +78,13 @@ function OnContentSet() as void backendType = content.type if backendType = "invidious" m.top.serverUrl = content.serverUrl - m.top.backendTypePosterUri = "pkg:/images/invidious-logo.png" + ' 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" diff --git a/playlet-lib/src/components/Web/PlayletWebServer/Middleware/PipedBackendRouter.bs b/playlet-lib/src/components/Web/PlayletWebServer/Middleware/PipedBackendRouter.bs index eae12597..33d0cf5e 100644 --- a/playlet-lib/src/components/Web/PlayletWebServer/Middleware/PipedBackendRouter.bs +++ b/playlet-lib/src/components/Web/PlayletWebServer/Middleware/PipedBackendRouter.bs @@ -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 diff --git a/playlet-lib/src/images/piped-logo.png b/playlet-lib/src/images/piped-logo.png index 8a3a968f..de592641 100644 Binary files a/playlet-lib/src/images/piped-logo.png and b/playlet-lib/src/images/piped-logo.png differ