Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterPluginFactory(key string, factory PluginFactory)
- type APIResponse
- type AlbumBatchResult
- type AlbumDetail
- type AlbumListItem
- type CategoryParams
- type Client
- func (c *Client) AddFavoriteAlbum(albumID, folderID string) (map[string]any, error)
- func (c *Client) AlbumComment(videoID, comment, originator, status, commentID string) (map[string]any, error)
- func (c *Client) AutoUpdateDomains() error
- func (c *Client) CategoriesFilter(page int, timeRange, category, orderBy, subCategory string) (*SearchResult, error)
- func (c *Client) CategoriesPages(params CategoryParams, ...) error
- func (c *Client) CheckPhoto(photo *PhotoDetail) error
- func (c *Client) DayRanking(page int, category string) (*SearchResult, error)
- func (c *Client) Domains() []string
- func (c *Client) DownloadAlbumCover(albumID string) ([]byte, error)
- func (c *Client) DownloadByImageDetail(photoID, imageName string) ([]byte, error)
- func (c *Client) DownloadImage(imgURL string) ([]byte, error)
- func (c *Client) FavoriteFolder(page int, orderBy, folderID, username string) (*FavoriteResult, error)
- func (c *Client) FavoritePages(params FavoriteParams, ...) error
- func (c *Client) GetAlbumDetail(albumID string) (*AlbumDetail, error)
- func (c *Client) GetPhotoDetail(photoID string, fetchAlbum bool, fetchScrambleID bool) (*PhotoDetail, error)
- func (c *Client) GetScrambleID(photoID string) (string, error)
- func (c *Client) Login(username, password string) (map[string]any, error)
- func (c *Client) MonthRanking(page int, category string) (*SearchResult, error)
- func (c *Client) Search(searchQuery string, page int, mainTag int, ...) (*SearchResult, error)
- func (c *Client) SearchActor(searchQuery string, page int, orderBy, timeRange, category, subCategory string) (*SearchResult, error)
- func (c *Client) SearchAuthor(searchQuery string, page int, orderBy, timeRange, category, subCategory string) (*SearchResult, error)
- func (c *Client) SearchPages(params SearchParams, ...) error
- func (c *Client) SearchSite(searchQuery string, page int, orderBy, timeRange, category, subCategory string) (*SearchResult, error)
- func (c *Client) SearchTag(searchQuery string, page int, orderBy, timeRange, category, subCategory string) (*SearchResult, error)
- func (c *Client) SearchWork(searchQuery string, page int, orderBy, timeRange, category, subCategory string) (*SearchResult, error)
- func (c *Client) SetDomains(domains []string)
- func (c *Client) Setting() (map[string]any, error)
- func (c *Client) UpdateCookies(cookies map[string]string)
- func (c *Client) WeekRanking(page int, category string) (*SearchResult, error)
- type ClientType
- type Config
- type DirRule
- type DownloadOptions
- type Downloader
- type Episode
- type FavoriteParams
- type FavoriteResult
- type ImageDetail
- type ImageFailure
- type ImageOptions
- type ImageSuffixFilterPlugin
- type Option
- type PhotoBatchResult
- type PhotoDetail
- func (p *PhotoDetail) AlbumIndex() int
- func (p *PhotoDetail) CreateImageDetail(index int) (*ImageDetail, error)
- func (p *PhotoDetail) EnsureAuthor(defaultAuthor string) string
- func (p *PhotoDetail) EnsureDataOriginalQuery() string
- func (p *PhotoDetail) ImageURL(imgName string) (string, error)
- func (p *PhotoDetail) Images() ([]ImageDetail, error)
- func (p *PhotoDetail) IndexTitle() string
- func (p *PhotoDetail) IsSingleAlbum() bool
- func (p *PhotoDetail) ResolvedAlbumID() string
- type PhotoFailure
- type Plugin
- type PluginAdapter
- func (PluginAdapter) AfterAlbum(ctx PluginContext, album *AlbumDetail) error
- func (PluginAdapter) AfterImage(ctx PluginContext, photo *PhotoDetail, imageURL string, savePath string) error
- func (PluginAdapter) AfterInit(ctx PluginContext) error
- func (PluginAdapter) AfterPhoto(ctx PluginContext, photo *PhotoDetail) error
- func (PluginAdapter) BeforeAlbum(ctx PluginContext, album *AlbumDetail) error
- func (PluginAdapter) BeforeImage(ctx PluginContext, photo *PhotoDetail, imageURL string, savePath string) error
- func (PluginAdapter) BeforePhoto(ctx PluginContext, photo *PhotoDetail) error
- func (PluginAdapter) Configure(kwargs map[string]any) error
- func (PluginAdapter) Key() string
- type PluginConfig
- type PluginContext
- type PluginFactory
- type PluginGroup
- type PluginManager
- func (pm *PluginManager) AfterAlbum(ctx PluginContext, album *AlbumDetail) error
- func (pm *PluginManager) AfterImage(ctx PluginContext, photo *PhotoDetail, imageURL, savePath string) error
- func (pm *PluginManager) AfterInit(ctx PluginContext) error
- func (pm *PluginManager) AfterPhoto(ctx PluginContext, photo *PhotoDetail) error
- func (pm *PluginManager) BeforeAlbum(ctx PluginContext, album *AlbumDetail) error
- func (pm *PluginManager) BeforeImage(ctx PluginContext, photo *PhotoDetail, imageURL, savePath string) error
- func (pm *PluginManager) BeforePhoto(ctx PluginContext, photo *PhotoDetail) error
- func (pm *PluginManager) Register(p Plugin)
- func (pm *PluginManager) RegisterWithPolicy(p Plugin, safe bool, logEnable bool, valid string)
- type RetryTuningPlugin
- type SearchParams
- type SearchResult
- type ThreadingOptions
- type TopicFilterPlugin
- func (p *TopicFilterPlugin) AfterAlbum(ctx PluginContext, album *AlbumDetail) error
- func (p *TopicFilterPlugin) AfterImage(ctx PluginContext, photo *PhotoDetail, imageURL, savePath string) error
- func (p *TopicFilterPlugin) AfterPhoto(ctx PluginContext, photo *PhotoDetail) error
- func (p *TopicFilterPlugin) BeforeAlbum(ctx PluginContext, album *AlbumDetail) error
- func (p *TopicFilterPlugin) BeforeImage(ctx PluginContext, photo *PhotoDetail, imageURL, savePath string) error
- func (p *TopicFilterPlugin) BeforePhoto(ctx PluginContext, photo *PhotoDetail) error
- func (p *TopicFilterPlugin) Configure(kwargs map[string]any) error
- func (p *TopicFilterPlugin) Key() string
Constants ¶
View Source
const ( DefaultAppVersion = "2.0.19" AppTokenSecret = "18comicAPP" AppTokenSecret2 = "18comicAPPContent" AppDataSecret = "185Hcomic3PAPP7R" APIDomainServerSecret = "diosfjckwpqpdfjkvnqQjsik" DefaultHTMLUserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36" DefaultMobileUserAgent = "" /* 156-byte string literal not displayed */ )
View Source
const ( OrderByLatest = "mr" OrderByView = "mv" OrderByPicture = "mp" OrderByLike = "tf" OrderByScore = "tr" OrderByComment = "md" )
排序
View Source
const ( TimeToday = "t" TimeWeek = "w" TimeMonth = "m" TimeAll = "a" )
时间范围
View Source
const ( CategoryAll = "0" CategoryDoujin = "doujin" CategorySingle = "single" CategoryShort = "short" CategoryAnother = "another" CategoryHanman = "hanman" CategoryMeiman = "meiman" CategoryDoujinCos = "doujin_cosplay" Category3D = "3D" CategoryEnglishSite = "english_site" )
分类
Variables ¶
View Source
var DefaultAPIDomainServerURLs = []string{
"https://rup4a04-c01.tos-ap-southeast-1.bytepluses.com/newsvr-2025.txt",
"https://rup4a04-c02.tos-cn-hongkong.bytepluses.com/newsvr-2025.txt",
}
View Source
var DefaultAPIDomains = []string{
"www.cdnaspa.vip",
"www.cdnaspa.club",
"www.cdnplaystation6.vip",
"www.cdnplaystation6.cc",
}
View Source
var DefaultHTMLDomains = []string{
"18comic.vip",
}
Functions ¶
func RegisterPluginFactory ¶ added in v0.1.3
func RegisterPluginFactory(key string, factory PluginFactory)
Types ¶
type APIResponse ¶
type AlbumBatchResult ¶ added in v0.1.2
type AlbumBatchResult struct {
ID string
Album *AlbumDetail
Err error
}
func DownloadAlbumsBatch ¶ added in v0.1.2
func DownloadAlbumsBatch(option Option, albumIDs []string, workers int) []AlbumBatchResult
DownloadAlbumsBatch 并发下载多个 album(走 Downloader 框架)。
func FetchAlbumDetailsBatch ¶ added in v0.1.2
func FetchAlbumDetailsBatch(client *Client, albumIDs []string, workers int) []AlbumBatchResult
FetchAlbumDetailsBatch 并发获取多个 album 详情(不下载图片)。
type AlbumDetail ¶
type AlbumDetail struct {
ID string `json:"id"`
ScrambleID string `json:"scramble_id,omitempty"`
Name string `json:"name"`
Author []string `json:"author,omitempty"`
Description string `json:"description,omitempty"`
Tags []string `json:"tags,omitempty"`
Works []string `json:"works,omitempty"`
Actors []string `json:"actors,omitempty"`
PageCount int `json:"page_count,omitempty"`
PubDate string `json:"pub_date,omitempty"`
UpdateDate string `json:"update_date,omitempty"`
CommentCount int `json:"comment_count,omitempty"`
Likes string `json:"likes,omitempty"`
Views string `json:"views,omitempty"`
EpisodeIDs []string `json:"episode_ids,omitempty"`
EpisodeList []Episode `json:"episode_list,omitempty"`
RelatedList []AlbumListItem `json:"related_list,omitempty"`
Raw map[string]any `json:"raw,omitempty"`
}
type AlbumListItem ¶
type AlbumListItem struct {
ID string `json:"id"`
Name string `json:"name"`
Author string `json:"author,omitempty"`
Description string `json:"description,omitempty"`
Image string `json:"image,omitempty"`
Label string `json:"label,omitempty"`
Category string `json:"category,omitempty"`
CategorySub string `json:"category_sub,omitempty"`
TagList []string `json:"tag_list,omitempty"`
Raw map[string]any `json:"raw,omitempty"`
}
type CategoryParams ¶ added in v0.1.2
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) AddFavoriteAlbum ¶
func (*Client) AlbumComment ¶
func (*Client) AutoUpdateDomains ¶
func (*Client) CategoriesFilter ¶
func (c *Client) CategoriesFilter(page int, timeRange, category, orderBy, subCategory string) (*SearchResult, error)
func (*Client) CategoriesPages ¶ added in v0.1.2
func (c *Client) CategoriesPages(params CategoryParams, handler func(page int, result *SearchResult) (bool, error)) error
CategoriesPages 按页遍历分类结果。
func (*Client) CheckPhoto ¶
func (c *Client) CheckPhoto(photo *PhotoDetail) error
func (*Client) DayRanking ¶
func (c *Client) DayRanking(page int, category string) (*SearchResult, error)
func (*Client) DownloadAlbumCover ¶
func (*Client) DownloadByImageDetail ¶
func (*Client) FavoriteFolder ¶
func (c *Client) FavoriteFolder(page int, orderBy, folderID, username string) (*FavoriteResult, error)
func (*Client) FavoritePages ¶ added in v0.1.2
func (c *Client) FavoritePages(params FavoriteParams, handler func(page int, result *FavoriteResult) (bool, error)) error
FavoritePages 按页遍历收藏夹。
func (*Client) GetAlbumDetail ¶
func (c *Client) GetAlbumDetail(albumID string) (*AlbumDetail, error)
func (*Client) GetPhotoDetail ¶
func (*Client) MonthRanking ¶
func (c *Client) MonthRanking(page int, category string) (*SearchResult, error)
func (*Client) SearchActor ¶
func (*Client) SearchAuthor ¶
func (*Client) SearchPages ¶ added in v0.1.2
func (c *Client) SearchPages(params SearchParams, handler func(page int, result *SearchResult) (bool, error)) error
SearchPages 按页遍历搜索结果。handler 返回 false 可提前终止。
func (*Client) SearchSite ¶
func (*Client) SearchWork ¶
func (*Client) SetDomains ¶
func (*Client) UpdateCookies ¶
func (*Client) WeekRanking ¶
func (c *Client) WeekRanking(page int, category string) (*SearchResult, error)
type ClientType ¶
type ClientType string
const ( ClientTypeAPI ClientType = "api" ClientTypeHTML ClientType = "html" )
type DownloadOptions ¶
type DownloadOptions struct {
Image ImageOptions
Threading ThreadingOptions
}
type Downloader ¶
type Downloader struct {
Option Option
Client *Client
Plugins *PluginManager
SuccessImages map[string][]string // photoID -> saved paths
FailedImages []ImageFailure
FailedPhotos []PhotoFailure
// contains filtered or unexported fields
}
func NewDownloader ¶
func NewDownloader(option Option) *Downloader
func (*Downloader) DownloadAlbum ¶
func (d *Downloader) DownloadAlbum(albumID string) (*AlbumDetail, error)
func (*Downloader) DownloadPhoto ¶
func (d *Downloader) DownloadPhoto(photoID string) (*PhotoDetail, error)
func (*Downloader) HasFailures ¶
func (d *Downloader) HasFailures() bool
func (*Downloader) RaiseIfHasFailures ¶
func (d *Downloader) RaiseIfHasFailures() error
func (*Downloader) RegisterPlugin ¶
func (d *Downloader) RegisterPlugin(plugin Plugin)
type FavoriteParams ¶ added in v0.1.2
type FavoriteResult ¶
type FavoriteResult struct {
Total int `json:"total"`
Items []AlbumListItem `json:"items"`
Raw map[string]any `json:"raw,omitempty"`
}
type ImageDetail ¶ added in v0.1.5
type ImageDetail struct {
PhotoID string `json:"photo_id"`
AlbumID string `json:"album_id,omitempty"`
ScrambleID string `json:"scramble_id,omitempty"`
// DownloadURL 完整 URL(含 query 参数 v=...)
DownloadURL string `json:"download_url"`
// ImgName 原始文件名(含后缀),例如 "00001.webp"
ImgName string `json:"img_name"`
// FileName 不含后缀,例如 "00001"
FileName string `json:"file_name"`
// Suffix 含点后缀,例如 ".webp"
Suffix string `json:"suffix"`
// Index 从 1 开始
Index int `json:"index"`
}
ImageDetail 对齐 Python 版 JmImageDetail:描述一张图的下载信息。
type ImageFailure ¶
type ImageOptions ¶
type ImageSuffixFilterPlugin ¶ added in v0.1.3
type ImageSuffixFilterPlugin struct {
PluginAdapter
// contains filtered or unexported fields
}
func (*ImageSuffixFilterPlugin) BeforeImage ¶ added in v0.1.3
func (p *ImageSuffixFilterPlugin) BeforeImage(ctx PluginContext, photo *PhotoDetail, imageURL, savePath string) error
func (*ImageSuffixFilterPlugin) Configure ¶ added in v0.1.3
func (p *ImageSuffixFilterPlugin) Configure(kwargs map[string]any) error
func (*ImageSuffixFilterPlugin) Key ¶ added in v0.1.3
func (p *ImageSuffixFilterPlugin) Key() string
type Option ¶
type Option struct {
Log bool
Version string
ClientConfig Config
DirRule DirRule
Download DownloadOptions
Plugins PluginGroup
UseCache bool
}
func DefaultOption ¶
func DefaultOption() Option
func LoadOption ¶
func LoadOptionFromYAMLText ¶ added in v0.1.1
func (Option) DecideImageFilename ¶
func (Option) DecideImageSaveDir ¶
func (o Option) DecideImageSaveDir(album AlbumDetail, photo PhotoDetail) (string, error)
func (Option) DecideImageSuffix ¶
type PhotoBatchResult ¶ added in v0.1.2
type PhotoBatchResult struct {
ID string
Photo *PhotoDetail
Err error
}
func FetchPhotoDetailsBatch ¶ added in v0.1.2
func FetchPhotoDetailsBatch(client *Client, photoIDs []string, workers int, fetchAlbum, fetchScrambleID bool) []PhotoBatchResult
FetchPhotoDetailsBatch 并发获取多个 photo 详情。
type PhotoDetail ¶
type PhotoDetail struct {
ID string `json:"id"`
AlbumID string `json:"album_id,omitempty"`
Name string `json:"name"`
SeriesID string `json:"series_id,omitempty"`
Sort int `json:"sort,omitempty"`
Tags []string `json:"tags,omitempty"`
Author string `json:"author,omitempty"`
ScrambleID string `json:"scramble_id,omitempty"`
PageArr []string `json:"page_arr,omitempty"`
DataOriginalDomain string `json:"data_original_domain,omitempty"`
DataOriginal0 string `json:"data_original_0,omitempty"`
DataOriginalQuery string `json:"data_original_query,omitempty"`
FromAlbum *AlbumDetail `json:"from_album,omitempty"`
Raw map[string]any `json:"raw,omitempty"`
}
func (*PhotoDetail) AlbumIndex ¶ added in v0.1.5
func (p *PhotoDetail) AlbumIndex() int
func (*PhotoDetail) CreateImageDetail ¶ added in v0.1.5
func (p *PhotoDetail) CreateImageDetail(index int) (*ImageDetail, error)
func (*PhotoDetail) EnsureAuthor ¶ added in v0.1.5
func (p *PhotoDetail) EnsureAuthor(defaultAuthor string) string
func (*PhotoDetail) EnsureDataOriginalQuery ¶ added in v0.1.5
func (p *PhotoDetail) EnsureDataOriginalQuery() string
func (*PhotoDetail) ImageURL ¶ added in v0.1.5
func (p *PhotoDetail) ImageURL(imgName string) (string, error)
func (*PhotoDetail) Images ¶ added in v0.1.5
func (p *PhotoDetail) Images() ([]ImageDetail, error)
func (*PhotoDetail) IndexTitle ¶ added in v0.1.5
func (p *PhotoDetail) IndexTitle() string
func (*PhotoDetail) IsSingleAlbum ¶ added in v0.1.5
func (p *PhotoDetail) IsSingleAlbum() bool
func (*PhotoDetail) ResolvedAlbumID ¶ added in v0.1.5
func (p *PhotoDetail) ResolvedAlbumID() string
type PhotoFailure ¶
type Plugin ¶
type Plugin interface {
Key() string
Configure(kwargs map[string]any) error
AfterInit(ctx PluginContext) error
BeforeAlbum(ctx PluginContext, album *AlbumDetail) error
AfterAlbum(ctx PluginContext, album *AlbumDetail) error
BeforePhoto(ctx PluginContext, photo *PhotoDetail) error
AfterPhoto(ctx PluginContext, photo *PhotoDetail) error
BeforeImage(ctx PluginContext, photo *PhotoDetail, imageURL string, savePath string) error
AfterImage(ctx PluginContext, photo *PhotoDetail, imageURL string, savePath string) error
}
func BuildPluginFromConfig ¶ added in v0.1.3
func BuildPluginFromConfig(cfg PluginConfig) (Plugin, error)
type PluginAdapter ¶
type PluginAdapter struct{}
func (PluginAdapter) AfterAlbum ¶
func (PluginAdapter) AfterAlbum(ctx PluginContext, album *AlbumDetail) error
func (PluginAdapter) AfterImage ¶
func (PluginAdapter) AfterImage(ctx PluginContext, photo *PhotoDetail, imageURL string, savePath string) error
func (PluginAdapter) AfterInit ¶
func (PluginAdapter) AfterInit(ctx PluginContext) error
func (PluginAdapter) AfterPhoto ¶
func (PluginAdapter) AfterPhoto(ctx PluginContext, photo *PhotoDetail) error
func (PluginAdapter) BeforeAlbum ¶
func (PluginAdapter) BeforeAlbum(ctx PluginContext, album *AlbumDetail) error
func (PluginAdapter) BeforeImage ¶
func (PluginAdapter) BeforeImage(ctx PluginContext, photo *PhotoDetail, imageURL string, savePath string) error
func (PluginAdapter) BeforePhoto ¶
func (PluginAdapter) BeforePhoto(ctx PluginContext, photo *PhotoDetail) error
func (PluginAdapter) Configure ¶ added in v0.1.3
func (PluginAdapter) Configure(kwargs map[string]any) error
func (PluginAdapter) Key ¶
func (PluginAdapter) Key() string
type PluginConfig ¶
type PluginContext ¶
type PluginContext struct {
Option *Option
Downloader *Downloader
Client *Client
}
type PluginFactory ¶ added in v0.1.3
type PluginFactory func() Plugin
type PluginGroup ¶
type PluginGroup struct {
Valid string
BeforeAlbum []PluginConfig
AfterAlbum []PluginConfig
BeforePhoto []PluginConfig
AfterPhoto []PluginConfig
BeforeImage []PluginConfig
AfterImage []PluginConfig
AfterInit []PluginConfig
}
type PluginManager ¶
type PluginManager struct {
// contains filtered or unexported fields
}
func NewPluginManager ¶
func NewPluginManager() *PluginManager
func (*PluginManager) AfterAlbum ¶
func (pm *PluginManager) AfterAlbum(ctx PluginContext, album *AlbumDetail) error
func (*PluginManager) AfterImage ¶
func (pm *PluginManager) AfterImage(ctx PluginContext, photo *PhotoDetail, imageURL, savePath string) error
func (*PluginManager) AfterInit ¶
func (pm *PluginManager) AfterInit(ctx PluginContext) error
func (*PluginManager) AfterPhoto ¶
func (pm *PluginManager) AfterPhoto(ctx PluginContext, photo *PhotoDetail) error
func (*PluginManager) BeforeAlbum ¶
func (pm *PluginManager) BeforeAlbum(ctx PluginContext, album *AlbumDetail) error
func (*PluginManager) BeforeImage ¶
func (pm *PluginManager) BeforeImage(ctx PluginContext, photo *PhotoDetail, imageURL, savePath string) error
func (*PluginManager) BeforePhoto ¶
func (pm *PluginManager) BeforePhoto(ctx PluginContext, photo *PhotoDetail) error
func (*PluginManager) Register ¶
func (pm *PluginManager) Register(p Plugin)
func (*PluginManager) RegisterWithPolicy ¶ added in v0.1.3
func (pm *PluginManager) RegisterWithPolicy(p Plugin, safe bool, logEnable bool, valid string)
type RetryTuningPlugin ¶ added in v0.1.3
type RetryTuningPlugin struct {
PluginAdapter
// contains filtered or unexported fields
}
func (*RetryTuningPlugin) AfterInit ¶ added in v0.1.3
func (p *RetryTuningPlugin) AfterInit(ctx PluginContext) error
func (*RetryTuningPlugin) Configure ¶ added in v0.1.3
func (p *RetryTuningPlugin) Configure(kwargs map[string]any) error
func (*RetryTuningPlugin) Key ¶ added in v0.1.3
func (p *RetryTuningPlugin) Key() string
type SearchParams ¶ added in v0.1.2
type SearchResult ¶
type SearchResult struct {
Total int `json:"total"`
Items []AlbumListItem `json:"items"`
Raw map[string]any `json:"raw,omitempty"`
}
type ThreadingOptions ¶
type TopicFilterPlugin ¶ added in v0.1.3
type TopicFilterPlugin struct {
PluginAdapter
// contains filtered or unexported fields
}
func (*TopicFilterPlugin) AfterAlbum ¶ added in v0.1.3
func (p *TopicFilterPlugin) AfterAlbum(ctx PluginContext, album *AlbumDetail) error
func (*TopicFilterPlugin) AfterImage ¶ added in v0.1.3
func (p *TopicFilterPlugin) AfterImage(ctx PluginContext, photo *PhotoDetail, imageURL, savePath string) error
func (*TopicFilterPlugin) AfterPhoto ¶ added in v0.1.3
func (p *TopicFilterPlugin) AfterPhoto(ctx PluginContext, photo *PhotoDetail) error
func (*TopicFilterPlugin) BeforeAlbum ¶ added in v0.1.3
func (p *TopicFilterPlugin) BeforeAlbum(ctx PluginContext, album *AlbumDetail) error
func (*TopicFilterPlugin) BeforeImage ¶ added in v0.1.3
func (p *TopicFilterPlugin) BeforeImage(ctx PluginContext, photo *PhotoDetail, imageURL, savePath string) error
func (*TopicFilterPlugin) BeforePhoto ¶ added in v0.1.3
func (p *TopicFilterPlugin) BeforePhoto(ctx PluginContext, photo *PhotoDetail) error
func (*TopicFilterPlugin) Configure ¶ added in v0.1.3
func (p *TopicFilterPlugin) Configure(kwargs map[string]any) error
func (*TopicFilterPlugin) Key ¶ added in v0.1.3
func (p *TopicFilterPlugin) Key() string
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
example
|
|
|
album_detail
command
|
|
|
comment
command
|
|
|
downloader_basic
command
|
|
|
favorite
command
|
|
|
image
command
|
|
|
option_usage
command
|
|
|
photo_detail
command
|
|
|
plugin_simple
command
|
|
|
ranking
command
|
|
|
search
command
|
Click to show internal directories.
Click to hide internal directories.