pixiv-0.1.0: Pixiv API binding based on servant-client
Copyright(c) 2021 The closed eye of love
LicenseBSD-3-Clause
MaintainerPoscat <poscat@mail.poscat.moe>, berberman <berberman@yandex.com>
Stabilityalpha
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Web.Pixiv.Utils

Description

Miscellaneous utilities.

Synopsis

Documentation

isSinglePageIllust :: Illust -> Bool Source #

Judges if an illustration has only one image.

extractHighestQualityImageUrl :: ImageUrls -> Maybe Text Source #

Extracts the url of the highest quality image.

extractImageUrlsFromIllust :: Illust -> [Text] Source #

Extracts all urls from an illustration, using extractHighestQualityImageUrl.

unzipArchive Source #

Arguments

:: FilePath

destination directory

-> ByteString

zip archive

-> IO () 

Unzip a zip archive represented in ByteString to a directory.

ugoiraMetadataToFFConcat :: UgoiraMetadata -> ByteString Source #

Generates ffconcat meta file of an ugoira.