Skip to content

Comments

Add: timeout and retry for image download.#72

Open
gonejack wants to merge 3 commits intocyrilis:masterfrom
gonejack:master
Open

Add: timeout and retry for image download.#72
gonejack wants to merge 3 commits intocyrilis:masterfrom
gonejack:master

Conversation

@gonejack
Copy link

@gonejack gonejack commented Mar 9, 2019

Signed-off-by: gonejack igonejack@gmail.com

Hi, @cyrilis

I add default timeout and retry setting for image downloads for epub-gen, with SuperAgent's built-in feature.

About the tempDir, just to avoid epub-gen creates files under people's node_modules, I think it's a mistake so I change it.

image

New to coffee script but do run the test.

gonejack added 2 commits March 9, 2019 20:08
Signed-off-by: gonejack <igonejack@gmail.com>
Signed-off-by: gonejack <igonejack@gmail.com>
@gonejack
Copy link
Author

gonejack commented Mar 9, 2019

SuperAgent's implementation is not good or misleading after browsing their code and discovery their code would not work as people's expectation, I would rewrite related code later.

Signed-off-by: gonejack <igonejack@gmail.com>
@jenni
Copy link

jenni commented Oct 11, 2019

+1

This is a huge improvement and keeps the experience smooth saving the manual work of pre-downloading images and changing src references in html.

@gonejack gonejack force-pushed the master branch 3 times, most recently from 906b40b to d3975f7 Compare February 25, 2020 09:39
Daylon pushed a commit to Daylon/epub-gen that referenced this pull request Sep 29, 2024
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants