Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Artwork ¶
type ArtworkBookmarksBody ¶
type ArtworkBookmarksBody struct {
Works []BookmarkArtwork `json:"works"`
Total uint64 `json:"total"`
}
type BookmarkArtwork ¶
type BookmarkArtwork struct {
BookmarkWork
Page
IllustType *uint8 `json:"illustType"`
Url *string `json:"url"`
}
type BookmarkNovel ¶
type BookmarkNovel struct {
BookmarkWork
BookmarkCount *uint64 `json:"bookmarkCount"`
IsOriginal *bool `json:"isOriginal"`
Url *string `json:"url"`
}
type BookmarkWork ¶
type BookmarkWork struct {
Id any `json:"id"`
Title *string `json:"title"`
UserId any `json:"userId"`
UserName *string `json:"userName"`
XRestrict *uint8 `json:"xRestrict"`
AiType *uint8 `json:"aiType"`
PageCount *uint64 `json:"pageCount"`
CreateDate *string `json:"createDate"`
Tags *[]string `json:"tags"`
TitleCaptionTranslation struct {
WorkTitle *string `json:"workTitle"`
WorkCaption *string `json:"workCaption"`
} `json:"titleCaptionTranslation"`
}
type FramesData ¶
type Novel ¶
type Novel struct {
Work
Content *string `json:"content"`
CoverUrl *string `json:"coverUrl"`
Language *string `json:"language"`
TextEmbeddedImages map[string]struct {
Urls struct {
Thumb *string `json:"128x128"`
Small *string `json:"480mw"`
Regular *string `json:"1200x1200"`
Original *string `json:"original"`
} `json:"urls"`
} `json:"textEmbeddedImages"`
}
func (*Novel) FromDto ¶
func (dto *Novel) FromDto(downloadTime time.Time, size *imageext.Size) ( w *work.Work, coverUrl *string, uploadedImages NovelUpladedImages, pixivImages NovelPixivImages, pages NovelPages, withPages bool, )
Provided size is only used to determine embedded image urls. If you don't need novel content and images, pass nil instead.
type NovelBookmarksBody ¶
type NovelBookmarksBody struct {
Works []BookmarkNovel `json:"works"`
Total uint64 `json:"total"`
}
type NovelPages ¶ added in v0.8.0
type NovelPages = func( imageName func(index int) string, pageName func(page int) string, ) []fsext.Asset
Call to finish parsing novel contents when all asset names are known.
type NovelPixivImages ¶ added in v0.8.0
Map: index -> Pixiv work ID, used for downloading novel illustrations.
type NovelUpladedImages ¶ added in v0.8.0
Map: index -> URL, used for downloading novel illustrations.
type Page ¶
type Work ¶
type Work struct {
Id *string `json:"id"`
Title *string `json:"title"`
Description *string `json:"description"`
UserId *string `json:"userId"`
UserName *string `json:"userName"`
XRestrict *uint8 `json:"xRestrict"`
AiType *uint8 `json:"aiType"`
IsOriginal *bool `json:"isOriginal"`
PageCount *uint64 `json:"pageCount"`
ViewCount *uint64 `json:"viewCount"`
BookmarkCount *uint64 `json:"bookmarkCount"`
LikeCount *uint64 `json:"likeCount"`
CommentCount *uint64 `json:"commentCount"`
CreateDate *string `json:"createDate"`
SeriesId any `json:"seriesId"`
Order *uint64 `json:"order"`
Title *string `json:"title"`
} `json:"seriesNavData"`
Tags struct {
Tags *[](struct {
Tag *string `json:"tag"`
}) `json:"tags"`
} `json:"tags"`
TitleCaptionTranslation struct {
WorkTitle *string `json:"workTitle"`
WorkCaption *string `json:"workCaption"`
} `json:"titleCaptionTranslation"`
}
Click to show internal directories.
Click to hide internal directories.