Documentation ¶
Index ¶
- func AsycChapter(ResultChan chan chan Chapter, chapter chan Chapter)
- func GenerateCover(this BookInfo)
- func KindlegenCmd(args ...string) *exec.Cmd
- func ReadAllString(filename string) string
- func TestContainVolume(src string) bool
- func WriteFile(filename string, data []byte) error
- type BookInfo
- func (this *BookInfo) ChangeVolumeState(hasVolume bool)
- func (this BookInfo) GenerateEPUB() error
- func (this BookInfo) GenerateJSON() error
- func (this BookInfo) GenerateMobi()
- func (this BookInfo) GenerateTxt()
- func (this BookInfo) PrintVolumeInfo()
- func (this *BookInfo) SetKindleEbookType(isMobi bool, isAzw3 bool)
- func (this BookInfo) Split() []BookInfo
- func (this BookInfo) VolumeState() bool
- type Chapter
- type EBookDLInterface
- type Ebook23US
- func (this Ebook23US) DownloadChapters(Bi BookInfo, proxy string) BookInfo
- func (this Ebook23US) DownloaderChapter(ResultChan chan chan Chapter, pc ProxyChapter, wg *sync.WaitGroup)
- func (this Ebook23US) GetBookBriefInfo(bookid string, proxy string) BookInfo
- func (this Ebook23US) GetBookInfo(bookid string, proxy string) BookInfo
- type Ebook999XS
- func (this Ebook999XS) DownloadChapters(Bi BookInfo, proxy string) BookInfo
- func (this Ebook999XS) DownloaderChapter(ResultChan chan chan Chapter, pc ProxyChapter, wg *sync.WaitGroup)
- func (this Ebook999XS) GetBookBriefInfo(bookid string, proxy string) BookInfo
- func (this Ebook999XS) GetBookInfo(bookid string, proxy string) BookInfo
- type EbookXSBiquge
- func (this EbookXSBiquge) DownloadChapters(Bi BookInfo, proxy string) BookInfo
- func (this EbookXSBiquge) DownloaderChapter(ResultChan chan chan Chapter, pc ProxyChapter, wg *sync.WaitGroup)
- func (this EbookXSBiquge) GetBookBriefInfo(bookid string, proxy string) BookInfo
- func (this EbookXSBiquge) GetBookInfo(bookid string, proxy string) BookInfo
- type LatestReleasesInfo
- type Meta
- type ProxyChapter
- type Volume
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AsycChapter ¶ added in v1.6.0
AsycChapter 同步下载章节的content内容
func KindlegenCmd ¶ added in v1.2.0
KindlegenCmd 执行外部kindlegen命令
func TestContainVolume ¶ added in v1.6.0
检测是 第一个 dt标签是否包含 “正文卷”,如果不包含就表示是分卷
Types ¶
type BookInfo ¶
type BookInfo struct { EBHost string `json:"ebook_host"` //下载小说的网站 EBookID string `json:"ebook_id"` //对应小说网站的bookid Name string `json:"bookname"` Author string `json:"author"` Description string `json:"novel_description"` IsMobi bool `json:"is_mobi"` //当为true的时候生成mobi IsAzw3 bool `json:"is_azw3"` //当为true的时候生成azw3, HasVolume bool `json:"has_volume"` //是否有小说分卷,默认为false;当设置为true的时候,Volumes里面需要包含分卷信息 Volumes []Volume `json:"volumes"` //小说分卷信息,一般不设置 Chapters []Chapter `json:"chapters"` //小说章节信息 }
BookInfo 小说信息
func LoadBookJSONData ¶ added in v1.7.2
LoadBookJSONData 从文件中读取BookInfo信息,并返回
func (*BookInfo) ChangeVolumeState ¶ added in v1.6.0
ChangeVolumeState 设置 是否包含分卷信息
func (BookInfo) GenerateEPUB ¶ added in v1.7.3
GenerateEPUB 生成ebpub小说
func (BookInfo) GenerateJSON ¶ added in v1.7.2
GenerateJSON 生成json格式的数据
func (BookInfo) PrintVolumeInfo ¶ added in v1.6.0
func (this BookInfo) PrintVolumeInfo()
PrintVolumeInfo 用于打印 小说分卷信息
func (*BookInfo) SetKindleEbookType ¶ added in v1.5.0
SetKindleEbookType 现在设置,mobi和awz3格式不能同时设置为true
func (BookInfo) Split ¶ added in v1.7.1
Split BookInfo里面的Chapter,以300章为一组进行分割 当少于300章的里面,全部分为一卷;当有1000卷的时候,分为4卷; 当分割有n个卷的时候,剩下的章节大于50章,重开一个分卷,当少于50的时候,分割到最后一个分卷里面
func (BookInfo) VolumeState ¶ added in v1.6.0
VolumeState 返回 HasVolume的状态,true,false
type Chapter ¶
type Chapter struct { Title string `json:"title"` Content string `json:"content"` Link string `json:"chapter_url_link"` }
Chapter 定义小说章节信息
type EBookDLInterface ¶ added in v1.4.0
type EBookDLInterface interface { GetBookInfo(bookid string, proxy string) BookInfo //获取小说的所有信息,包含小说名,作者,简介等信息 GetBookBriefInfo(bookid string, proxy string) BookInfo //获取小说最基本的信息,不包含章节信息 DownloaderChapter(ResultChan chan chan Chapter, pc ProxyChapter, wg *sync.WaitGroup) DownloadChapters(Bi BookInfo, proxy string) BookInfo }
EBookDLInterface 小说下载器接口interface
type Ebook23US ¶ added in v1.6.0
Ebook23US 顶点小说网 23us.la
func (Ebook23US) DownloadChapters ¶ added in v1.6.0
DownloadChapters 下载小说章节
func (Ebook23US) DownloaderChapter ¶ added in v1.6.0
func (this Ebook23US) DownloaderChapter(ResultChan chan chan Chapter, pc ProxyChapter, wg *sync.WaitGroup)
DownloaderChapter 下载小说章节
func (Ebook23US) GetBookBriefInfo ¶ added in v1.7.2
GetBookBriefInfo 获取小说的信息
type Ebook999XS ¶ added in v1.4.0
999小说网 999xs.com
func New999XS ¶ added in v1.4.0
func New999XS() Ebook999XS
func (Ebook999XS) DownloadChapters ¶ added in v1.4.0
func (this Ebook999XS) DownloadChapters(Bi BookInfo, proxy string) BookInfo
func (Ebook999XS) DownloaderChapter ¶ added in v1.6.0
func (this Ebook999XS) DownloaderChapter(ResultChan chan chan Chapter, pc ProxyChapter, wg *sync.WaitGroup)
DownloaderChapter 下载小说
func (Ebook999XS) GetBookBriefInfo ¶ added in v1.7.2
func (this Ebook999XS) GetBookBriefInfo(bookid string, proxy string) BookInfo
GetBookBriefInfo 获取小说的信息
func (Ebook999XS) GetBookInfo ¶ added in v1.4.0
func (this Ebook999XS) GetBookInfo(bookid string, proxy string) BookInfo
type EbookXSBiquge ¶ added in v1.4.0
EbookXSBiquge xsbiquge.com小说网
func (EbookXSBiquge) DownloadChapters ¶ added in v1.4.0
func (this EbookXSBiquge) DownloadChapters(Bi BookInfo, proxy string) BookInfo
DownloadChapters 下载所有章节
func (EbookXSBiquge) DownloaderChapter ¶ added in v1.6.0
func (this EbookXSBiquge) DownloaderChapter(ResultChan chan chan Chapter, pc ProxyChapter, wg *sync.WaitGroup)
func DownloaderChapter(ResultChan chan chan Chapter)
func (EbookXSBiquge) GetBookBriefInfo ¶ added in v1.7.2
func (this EbookXSBiquge) GetBookBriefInfo(bookid string, proxy string) BookInfo
GetBookBriefInfo 获取小说的信息
func (EbookXSBiquge) GetBookInfo ¶ added in v1.4.0
func (this EbookXSBiquge) GetBookInfo(bookid string, proxy string) BookInfo
GetBookInfo 获取小说的信息
type LatestReleasesInfo ¶ added in v1.7.3
LatestReleasesInfo 获取最新的Releases信息
func UpdateCheck ¶ added in v1.7.3
func UpdateCheck() (obj LatestReleasesInfo, err error)
UpdateCheck 检查更新
func (LatestReleasesInfo) Compare ¶ added in v1.7.3
func (ri LatestReleasesInfo) Compare(CurVersion string) string
Compare 对版本进行对比
func (LatestReleasesInfo) String ¶ added in v1.7.3
func (ri LatestReleasesInfo) String() string
String ReleaseInfo String()
type Meta ¶ added in v1.7.1
type Meta struct { Ebhost string `json:"ebhost"` Bookid string `json:"bookid"` BookName string `json:"bookname"` Author string `json:"author"` CoverURL string `json:"cover_url"` Description string `json:"description"` TxtURLPath string `json:"txt_url_path"` MobiURLPath string `json:"mobi_url_path"` EPUBURLPath string `json:"epub_url_path"` }
Meta 小说的metainfo
func GetMetaData ¶ added in v1.7.1
GetMetaData 从文件中读取meta信息,并返回
type ProxyChapter ¶ added in v1.3.0
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package main Code generated by go-bindata.
|
Package main Code generated by go-bindata. |