lightnovel-center / linovelib2epub

Crawl light novel from some websites and convert it to epub.
https://pypi.org/project/linovelib2epub/
GNU Affero General Public License v3.0
71 stars 8 forks source link

Bug Fixed #14

Closed Holence closed 1 year ago

Holence commented 1 year ago
  1. 爬取图片的headers增添了'referer'
  2. 第一章(插圖)图片为lazyload,修改获取url为"data-src"属性
  3. 增添了去除第一章(插圖)多余图片的功能(很多图片是后续章节的黑白插图,没必要再次出现在第一章的彩图中)
  4. 修复了divide_volume=True时,所有每个epub都会存有所有图片的bug:在LightNovelVolume和volume dict中添加了一个volume_img_folder属性,将图片保存在[image_download_folder]/[volume_img_folder]/[filename]的路径
  5. 修改了book.toc的生成方法
    • divide_volume=False时,保持原先不变
    • divide_volume=True时,一级标题为volume里的所有chapter(一些阅读器可以显示 当前chapter已读的页数 / 当前chapter的总页数
wdpm commented 1 year ago
  1. 爬取图片的headers增添了'referer'
  2. 第一章(插圖)图片为lazyload,修改获取url为"data-src"属性
  3. 增添了去除第一章(插圖)多余图片的功能(很多图片是后续章节的黑白插图,没必要再次出现在第一章的彩图中)
  4. 修复了divide_volume=True时,所有每个epub都会存有所有图片的bug:在LightNovelVolume和volume dict中添加了一个volume_img_folder属性,将图片保存在[image_download_folder]/[volume_img_folder]/[filename]的路径
  5. 修改了book.toc的生成方法

    • divide_volume=False时,保持原先不变
    • divide_volume=True时,一级标题为volume里的所有chapter(一些阅读器可以显示 当前chapter已读的页数 / 当前chapter的总页数

4,5点明天再看,太晚了。

wdpm commented 1 year ago

@all-contributors please add @Holence as a contributor for code

allcontributors[bot] commented 1 year ago

@wdpm

I've put up a pull request to add @Holence! :tada:

wdpm commented 1 year ago

@Holence 辛苦了,感谢你的代码贡献。

Holence commented 1 year ago

没事,也是自己需要用,就顺便修了修😄