From 7844e712e652e7aa58a7233932fea41dec7ad15c Mon Sep 17 00:00:00 2001 From: Seng Jik <853974536@qq.com> Date: Fri, 12 Nov 2021 14:42:25 +0800 Subject: [PATCH] Disable favorite in Sankaku Idol --- KoKo/SankakuComplex.fs | 5 ++++- KoKoViewer/KoKoViewer.csproj | 2 +- KoKoViewer/Package.appxmanifest | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/KoKo/SankakuComplex.fs b/KoKo/SankakuComplex.fs index de5bdc0..479784e 100644 --- a/KoKo/SankakuComplex.fs +++ b/KoKo/SankakuComplex.fs @@ -11,7 +11,10 @@ type SankakuComplex (name, urlBase, sourceBase) = interface ISpider with member x.Name = name member x.All = Spider.search "" x - member x.GetPostById id = async { return Spider.search $"id:{id}" x |> Seq.tryHead } + member x.GetPostById id = + if name = "Sankaku Idol" + then async { return None } + else async { return Spider.search $"id:{id}" x |> Seq.tryHead } member spider.Search tags = let pages = Seq.initInfinite (fun pageId -> diff --git a/KoKoViewer/KoKoViewer.csproj b/KoKoViewer/KoKoViewer.csproj index ac6cf12..10b4ec8 100644 --- a/KoKoViewer/KoKoViewer.csproj +++ b/KoKoViewer/KoKoViewer.csproj @@ -25,7 +25,7 @@ C:\Repos\KoKo\KoKoViewer\bin\AppPackages\ True Always - x86|x64|arm|arm64 + x86|x64|arm 0 diff --git a/KoKoViewer/Package.appxmanifest b/KoKoViewer/Package.appxmanifest index d34a9c9..9165c1d 100644 --- a/KoKoViewer/Package.appxmanifest +++ b/KoKoViewer/Package.appxmanifest @@ -9,7 +9,7 @@ + Version="1.0.2.0" />