fix: check whether image is downloaded whatever the ext name is#109
Open
Yastone wants to merge 1 commit intofffonion:masterfrom
Open
fix: check whether image is downloaded whatever the ext name is#109Yastone wants to merge 1 commit intofffonion:masterfrom
Yastone wants to merge 1 commit intofffonion:masterfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
因为个人需求#106 修改了验证图片是否已下载的逻辑。
因为之前我发现某些本子下载完成后会丢页数,所以一般会下载完成后再下载一遍防止丢页。
这就导致了一个问题,由于一些本子是会在下载完成之后统一把后缀名从jpg改为png,就会导致如果之前这个本子已经下载完成,那么再次下载的话就会从头开始下载,并且完成后就会产生重复的页数。
所以添加了一个函数用于忽略拓展名来比对图片是否已下载,若已下载则将文件加入**_flist_done**