Comments (9)
I will look into this a bit later.
Some pages appear to have the smaller cover and the wide cover within the novel illustrations while others do not. Sure this can be fixed easily once imageInfo.isCover is actually set to true somewhere.
Aside from that i think this will be fairly easy to implement a simple check for if a smaller cover already exists for the book. (only issue here is inconsistent file names)
And of course url support for the cover if you find one on the net when there isn't one on the site your getting the book from.
from webtoepub.
At this point after extensively looking into this. The best option would be to provide an option for a custom cover url. This url should be passed into the images array like the rest of the images however so that all the checks can go through.
I will be making a seperate pull request from #10 to do this.
from webtoepub.
Initial version implemented in version 0.0.0.9.
Needs more work for extracting the file name from the supplied URL. Some cases don't work.
There are three cases for Baka Tsuki images.
- https://www.baka-tsuki.org/project/index.php?title=File:HSDxD_v01_cover.jpg
- https://www.baka-tsuki.org/project/thumb.php?f=HSDxD_v01_cover.jpg&width=427
- https://www.baka-tsuki.org/project/images/7/76/HSDxD_v01_cover.jpg
Only the first one works correctly.
from webtoepub.
@dteviot I recommend using this http://blog.teamtreehouse.com/reading-files-using-the-html5-filereader-api here https://github.com/dteviot/WebToEpub/blob/sonako/plugin/js/parsers/ImageCollector.js#L306 to get the image name and type from the file itself along with its width and height.
I've added myself to assignees for this as well.
from webtoepub.
Using the filereader api will also get rid of the need for complex regex's that might fail under certain conditions.
from webtoepub.
The above might be a bad idea though. I am still looking into other options.
from webtoepub.
@belldandu
This works for the failing cases, but it's kind of ugly. fc13f84
I guess it will do for the moment.
from webtoepub.
I'm going to call this done.
from webtoepub.
Yeah seems to work for now.
from webtoepub.
Related Issues (20)
- Unwanted elements being included in Scribble Hub stories. HOT 2
- Unable to start HOT 2
- Chinese characters showing up as Specials Unicode Block HOT 2
- 403 error for 18.foxaholic.com and foxaholic.com HOT 7
- https://phoenixwalktranslations.com parser HOT 2
- Please add a parser for jjwxc.net HOT 4
- Please add site https://jobnib.com HOT 1
- Patreon worked yesterday but no today HOT 12
- Please add site https://www.webnovelpub.pro/ HOT 5
- Simple-ish improvement ideas/Library feature is unintuitive and obscure
- Fannovels.org shows error on use HOT 15
- failed on downloading a specific chapter's content on asianfanfics.com HOT 6
- https://novelplex.org HOT 2
- Please add site https://hoxionia.com/series/the-last-order/ HOT 3
- Please add site https://booktoki339.com/novel/5919 HOT 3
- Tumblr (tumblr.com/username) - content is not being downloaded properly if the content is too long
- logon or satisy a CAPTCHA before WebToEpub can continue. HOT 4
- https://gravitytales.com/ . problem at making epub HOT 4
- Please add site https://app.yoru.world/en/ HOT 1
- Spacebattles award links HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webtoepub.