szarroug3 / X-Ray_Calibre_Plugin

X-Ray Creator plugin for Calibre
http://www.mobileread.com/forums/showthread.php?t=273189
GNU General Public License v3.0
57 stars 12 forks source link

Progress is stuck at "Unavailable" for the bulk of a job #69

Closed stoduk closed 7 years ago

stoduk commented 7 years ago

In Calibre's "Jobs" window, the Progress sits at "Unavailable" for an extended period - when processing a single book it prints that error for around 23s of the total 28s run time.

The problem is that the value being passed in to notifications.put() is zero. Why Calibre doesn't treat this as 0% rather than some error case I don't know. It should arguably be fixed in Calibre, but sometimes it is easier to just work around an API's quirks :)

Note: this is obviously just a cosmetic issue, and I don't know how many users will actually see it (do people normally open the Jobs window?).

A couple of possible fixes:

szarroug3 commented 7 years ago

Hey! You're back! Yeah I don't like it either. I wasn't sure what to do about it.. Guess I can make it 1% or something.

On Sat, Oct 29, 2016, 9:03 AM Anthony Toole notifications@github.com wrote:

In Calibre's "Jobs" window, the Progress sits at "Unavailable" for an extended period - when processing a single book it prints that error for around 23s of the total 28s run time.

The problem is that the value being passed in to notifications.put() is zero. Why Calibre doesn't treat this as 0% rather than some error case I don't know. It should arguably be fixed in Calibre, but sometimes it is easier to just work around an API's quirks :)

Note: this is obviously just a cosmetic issue, and I don't know how many users will actually see it (do people normally open the Jobs window?).

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/szarroug3/X-Ray_Calibre_Plugin/issues/69, or mute the thread https://github.com/notifications/unsubscribe-auth/AIEjUW0N2q63tbOj00th0FJdH4Pze58eks5q41JKgaJpZM4KkHr7 .