shiori/internal
Monirzadeh f4817cb9c3
fix: Ensure bookmark files are correctly downloaded before deleting current ones (#683)
* generate ebook get dstPath

* Archive and ebook can recover if download faild

* recover thumb if download faild

* thumb image create just if image processing is sucssesful

* create epub in tmp if it sucssesful copy to destination

* archive file create in tmp if it successful move to destination

* move to destination as function

* update ebook download api and remove .epub from file name

* report faild item to user

* not show dialog if error not happen

* update thumbnail based on last status of bookmark fix #524

* better warning massage

Co-authored-by: Felipe Martin <812088+fmartingr@users.noreply.github.com>

* tmpFile without .epub

* MoveToDestination change to MoveFileToDestination

* return .epub

* log if downloadBookImage return error

* fix bug remove imgPath just if download last image be unsuccessful

* update old unit test

* add processing.go unit test

* small massage for report failded item to the user

* add some more unit test and samplefile

* use sample image in unit test

* use local sample file and unit test not need internet connection anymore

* update error to user and log that too

* add more comment

* update comment

* change variable name parentDir to dstDir

* more simpler error handling

* remove unneeded defer

* remvoe unneeded epubWriter.Close()

* more readable unit test in processing

* more readable unit test for ebooks

* delete all defer os.RemoveAll from unit tests

* Better comment

Co-authored-by: Felipe Martin <812088+fmartingr@users.noreply.github.com>

* Better Error output

Co-authored-by: Felipe Martin <812088+fmartingr@users.noreply.github.com>

* fix err.String() method

---------

Co-authored-by: Felipe Martin <812088+fmartingr@users.noreply.github.com>
2023-08-20 18:20:13 +02:00
..
cmd default to sqlite, warn dbms users (#667) 2023-07-30 07:41:32 +02:00
config Allow JWT authentication into legacy APIs (#651) 2023-07-21 07:57:42 +02:00
core fix: Ensure bookmark files are correctly downloaded before deleting current ones (#683) 2023-08-20 18:20:13 +02:00
database Run legacy API and new API at the same time. (#648) 2023-07-19 18:25:41 +02:00
domains Run legacy API and new API at the same time. (#648) 2023-07-19 18:25:41 +02:00
http Swagger improvements (#666) 2023-08-12 08:38:52 +02:00
model Show version in login page (#652) 2023-07-21 09:25:19 +02:00
testutil Run legacy API and new API at the same time. (#648) 2023-07-19 18:25:41 +02:00
view fix: Ensure bookmark files are correctly downloaded before deleting current ones (#683) 2023-08-20 18:20:13 +02:00
webserver fix: Ensure bookmark files are correctly downloaded before deleting current ones (#683) 2023-08-20 18:20:13 +02:00
assets.go Start working on new REST API. Refactor logic in domains. (#497) 2023-07-17 14:30:18 +01:00