Skip to content
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.

Commit

Permalink
Bug fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Seng-Jik committed Nov 11, 2021
1 parent 9d996bd commit 24ddbfa
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion KoKo/SankakuComplex.fs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,13 @@ type SankakuComplex (name, urlBase, sourceBase) =
x.Source.Value
]

tags = x.Tags |> Seq.map (fun x -> x.NameEn)
tags =
x.Tags
|> Seq.choose (fun x ->
x.JsonValue.TryGetProperty("name")
|> Option.orElse (x.JsonValue.TryGetProperty("name_en"))
|> Option.orElse (x.JsonValue.TryGetProperty("name_jp")))
|> Seq.map JsonExtensions.AsString

previewImage = mapToImage x.PreviewUrl

Expand Down

0 comments on commit 24ddbfa

Please sign in to comment.