Giter Site home page Giter Site logo

Comments (21)

p1nkyy avatar p1nkyy commented on August 14, 2024 8

Someone found a solution (temporarily).

1. In your browser, open your dev console (ctrl-shift-I or F12 for me).
2. Go to the network tab, click the cog at the top-right and make sure "Persist Logs" is on.
3. Go to https://libbyapp.com/.
4. In the dev console, type "sentry" into the filter bar.
5. Click on the furthest-down entry that is a "GET" request.
6. In the right panel, go into the "Request Headers" and find "Authorization" -- its format should be "Bearer" followed by a long string of characters. Copy just the long string.
7. Make sure Calibre is closed, and open the plugin config file (%APPDATA%\calibre\plugins\overdrive_libby.json on Windows, unsure Mac/Linux paths).
8. Find the line for "libby_token", and replace its value with the one you copied in step 6.
9. Open Calibre and the plugin should work as expected now.

The line should look something like "libby_token": "eyJ0eX", (except the token will be hundreds of characters long. )

The path for the plugin config file for Mac would be /Users/USERNAME/Library/Preferences/calibre/plugins/overdrive_libby.json
To get to it you could also open Calibre, go to Preferences, Miscellaneous, Open Calibre Configuration Folder, then close the app when the folder opens.

And if you're using Chrome for the first steps, instead of Persist Logs, it's called Preserve Logs. So tick that and then the GET request should have an icon that looks like this: {;} and the name showed up for me as counts?cards= string of numbers and symbols

from libby-calibre-plugin.

SeriousHornet avatar SeriousHornet commented on August 14, 2024 5

Someone found a solution (temporarily).

1. In your browser, open your dev console (ctrl-shift-I or F12 for me).
2. Go to the network tab, click the cog at the top-right and make sure "Persist Logs" is on.
3. Go to https://libbyapp.com/.
4. In the dev console, type "sentry" into the filter bar.
5. Click on the furthest-down entry that is a "GET" request.
6. In the right panel, go into the "Request Headers" and find "Authorization" -- its format should be "Bearer" followed by a long string of characters. Copy just the long string.
7. Make sure Calibre is closed, and open the plugin config file (%APPDATA%\calibre\plugins\overdrive_libby.json on Windows, unsure Mac/Linux paths).
8. Find the line for "libby_token", and replace its value with the one you copied in step 6.
9. Open Calibre and the plugin should work as expected now.

The line should look something like "libby_token": "eyJ0eX", (except the token will be hundreds of characters long. )

The path for the plugin config file for Mac would be /Users/USERNAME/Library/Preferences/calibre/plugins/overdrive_libby.json To get to it you could also open Calibre, go to Preferences, Miscellaneous, Open Calibre Configuration Folder, then close the app when the folder opens.

And if you're using Chrome for the first steps, instead of Persist Logs, it's called Preserve Logs. So tick that and then the GET request should have an icon that looks like this: {;} and the name showed up for me as counts?cards= string of numbers and symbols

Can confirm this works for downloading books now!! Awesome!

from libby-calibre-plugin.

SeriousHornet avatar SeriousHornet commented on August 14, 2024 2

Yep, I received the same error just now. It was working fine until yesterday, so this must be from the Libby side. They must have blocked it. Currently I'll have to move to manual downloading from the libby site and load it in Calibre. I will let you know if I find a workaround.

from libby-calibre-plugin.

LoisGNS avatar LoisGNS commented on August 14, 2024 1
1. Did you input the Adobe Digital Editions key in the DeACSM plug-in?

2. Where did you copy the token from? For me, it was not the last entry, but two before that. I would suggest removing the Libby plugin completely, reinstalling it and editing the .json file. I used Notepad++ for editing.
  1. The plugin says "Authorized with ADE ID (AdobeID) xxxxxxxx on device xxxxx, emulating ADE 2.01 (9.3.58046). I routinely download from the library & it opens in Adobe Digital Editions. Drag/drop that into Calibre.
  2. The instructions said to use the last listing with "sentry" in it, and click GET. Under File, it says "counts?cards=xxxxxxxx,xxxxxxxx". Two lines above that, under "file" there is a sequence of 7 numbers, as opposed to 8 numbers-comma-8 numbers.

Are you suggesting I should use the one with only one number and not the "cards=..." ? However, flipping between them (and a few similar ones), the token looks exactly the same. I didn't literally compare them byte for byte, but I would expect a quick flip to show a change if there was any difference, and I don't see anything changing.

I've been using notepad, not notepad++; I just tried in Notepad++ and got the same kind of error trying to open the plugin as I got when using notepad, so it doesn't seem to make any difference, referencing a unicode character it didn't like.

UnicodeEncodeError: 'latin-1' codec can't encode character '\u2026' in position 512: ordinal not in range(256)

The \u2026 character is an elipsis,

I found a MobileRead post suggesting copying with right-click rather than the more typical way, since the ellipsis might not be an actual character in the token, but instead indicating there were additional characters not shown. Using that actually allowed me to open the plugin without trouble, and I found I could even download a book as an epub, which had never worked before. But still no working magazine downloads, which is the main functionality I'm missing (and one I had been using a lot).

from libby-calibre-plugin.

LoisGNS avatar LoisGNS commented on August 14, 2024

I'm having trouble downloading magazines (just in the past day or two):

calibre, version 6.14.1
ERROR: Unhandled exception: KeyError: Failed to download e-book

calibre 6.14.1 Portable embedded-python: True
Windows-10-10.0.19045-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.19045')
Python 3.10.1
Windows: ('10', '10.0.19045', 'SP0', 'Multiprocessor Free')
Interface language: None
Successfully initialized third party plugins: DeACSM (0, 0, 16) && Gather KFX-ZIP (from KFX Input) (2, 10, 0) && DeDRM (10, 0, 3) && Package KFX (from KFX Input) (2, 10, 0) && Access Aide (0, 1, 13) && Action Chains (1, 18, 19) && Annotations (1, 17, 13) && Calibre Power Search Plugin (2, 2, 0) && CalibreSpy (1, 0, 92) && Count Pages (1, 13, 6) && DOC Input (1, 0, 1) && Ebook Translator (2, 3, 3) && Editor Chains (0, 8, 3) && EpubMerge (2, 18, 0) && EpubSplit (3, 6, 0) && FanFicFare (4, 20, 0) && FictionDB (1, 4, 1) && Find Duplicates (1, 10, 9) && GetFileName (0, 2, 0) && Goodreads (1, 8, 1) && Goodreads_Rating (4, 0, 0) && Job Spy (1, 0, 205) && KFX metadata reader (from KFX Input) (2, 10, 0) && From KFX (2, 10, 0) && KFX Input (2, 10, 0) && Set KFX metadata (from KFX Output) (2, 3, 1) && KFX Output (2, 3, 1) && Kindle Collections (1, 7, 29) && KindleUnpack - The Plugin (0, 83, 1) && Mass Search-Replace (1, 7, 1) && Media File Importer (1, 0, 27) && Modify ePub (1, 8, 2) && MultiColumnSearch (1, 0, 96) && Open With (1, 8, 1) && OverDrive Libby (0, 1, 9) && Overdrive Link (2, 57, 0) && Reading List (1, 15, 1) && Save To Format (0, 0, 6) && Search The Internet (1, 10, 4) && Similar Stories (1, 0, 58) && Standard Ebooks (1, 0, 0) && TTS to MP3 (0, 6, 0) && View Manager (1, 10, 2) && Wiki Reader (2, 2, 1) && all recipes Recipe Reader (1, 0, 2) && Overdrive Link Metadata Source (2, 57, 0)
Traceback (most recent call last):
File "calibre\gui2\threaded_jobs.py", line 82, in start_work
File "calibre_plugins.overdrive_libby.magazine_download", line 387, in call
File "calibre_plugins.overdrive_libby.magazine_download", line 467, in _custom_download
File "calibre_plugins.overdrive_libby.libby.client", line 822, in process_ebook
KeyError: 'openbook'

from libby-calibre-plugin.

sarcheer avatar sarcheer commented on August 14, 2024

Also started receiving this error when opening the plugin on both 7.8 and 7.9.

from libby-calibre-plugin.

p1nkyy avatar p1nkyy commented on August 14, 2024

I hope @ping would come along and update. Pretty please...

from libby-calibre-plugin.

LoisGNS avatar LoisGNS commented on August 14, 2024

Many (including me) have posted on MobileRead that this isn't working for them, unfortunately.

from libby-calibre-plugin.

p1nkyy avatar p1nkyy commented on August 14, 2024

Many (including me) have posted on MobileRead that this isn't working for them, unfortunately.

It didn't work for magazines.
If it doesn't work for you for books then you must be copying the string incorrectly or something. Try copying the whole thing instead of blocking it manually and remove Bearer in front of the string. It finally worked for me.

from libby-calibre-plugin.

LoisGNS avatar LoisGNS commented on August 14, 2024

I only need it for magazines. For books, I download directly from the library website, then import, since when I downloaded them directly all I got was an .acsm file, not the actual book anyway. Unfortunately, there's no way (that I know of) to get the magazines directly from the library site. I was often getting additional errors when I marked & copied just the relevant part, so if I retry, I'll try it as you suggest, which (if I understand correctly) is copy everything from "Bearer" to the end of the token, paste it into the json file, and then delete "Bearer"?

Edit: I tried it this way, but not only do magazine-downloads still not work, but I get errors when I load the plugin. All I can do is revert back to the previous .json file. I am using notepad to open and paste the token into the file. Is there something else I should be using? But unless there's a way to restore magazine downloads, it doesn't seem to be worth the effort, since everything but downloading works with the un-edited .json file.

from libby-calibre-plugin.

SeriousHornet avatar SeriousHornet commented on August 14, 2024

I only need it for magazines. For books, I download directly from the library website, then import, since when I downloaded them directly all I got was an .acsm file, not the actual book anyway. Unfortunately, there's no way (that I know of) to get the magazines directly from the library site. I was often getting additional errors when I marked & copied just the relevant part, so if I retry, I'll try it as you suggest, which (if I understand correctly) is copy everything from "Bearer" to the end of the token, paste it into the json file, and then delete "Bearer"?

Edit: I tried it this way, but not only do magazine-downloads still not work, but I get errors when I load the plugin. All I can do is revert back to the previous .json file. I am using notepad to open and paste the token into the file. Is there something else I should be using? But unless there's a way to restore magazine downloads, it doesn't seem to be worth the effort, since everything but downloading works with the un-edited .json file.

Yes, when you download books through the plugin it will give you .acsm file which will be automatically converted to .epub if you have the DeACSM plugin installed. That's how I set it up on my pc. It worked flawlessly till this 403 error.

from libby-calibre-plugin.

LoisGNS avatar LoisGNS commented on August 14, 2024

Yes, when you download books through the plugin it will give you .acsm file which will be automatically converted to .epub if you have the DeACSM plugin installed. That's how I set it up on my pc. It worked flawlessly till this 403 error.

I do have that plugin, but it hasn't automatically converted for me, hence my always downloading more directly.

Also, I've tried multiple times to enter the token from the website, and it always gives me errors when starting up the plugin, so I end up restoring the .json from a backed-up copy. Do I need to use a certain editor to make it work? I've been using Notepad. Though in the end, if it doesn't let me download magazines, I'm not sure it's worth the effort, since everything else works the way I'm used to using it.

from libby-calibre-plugin.

SeriousHornet avatar SeriousHornet commented on August 14, 2024

Yes, when you download books through the plugin it will give you .acsm file which will be automatically converted to .epub if you have the DeACSM plugin installed. That's how I set it up on my pc. It worked flawlessly till this 403 error.

I do have that plugin, but it hasn't automatically converted for me, hence my always downloading more directly.

Also, I've tried multiple times to enter the token from the website, and it always gives me errors when starting up the plugin, so I end up restoring the .json from a backed-up copy. Do I need to use a certain editor to make it work? I've been using Notepad. Though in the end, if it doesn't let me download magazines, I'm not sure it's worth the effort since everything else works the way I'm used to using it.

  1. Did you input the Adobe Digital Editions key in the DeACSM plug-in?
  2. Where did you copy the token from? For me, it was not the last entry, but two before that. I would suggest removing the Libby plugin completely, reinstalling it and editing the .json file. I used Notepad++ for editing.

I get if you wonder its worth the effort. For me, my main mode getting books is through libby as their books are neatly formatted. So this work flow suits me. It might vary for you though.

from libby-calibre-plugin.

SeriousHornet avatar SeriousHornet commented on August 14, 2024

Yes, I have used right-click to copy the authentication code. They change the code occasionally, as I have already done it twice with a different code each time. This temporary fix is fine for books. But for magazines, sadly there seems to be no solution yet.

from libby-calibre-plugin.

mr-berndt avatar mr-berndt commented on August 14, 2024

I keep getting this error as well, practically every time I am trying to use the plugin. While it is nice to have the workaround, it would be even nicer if the fix got implemented into the plugin itself. Any info from @ping on this?

from libby-calibre-plugin.

p1nkyy avatar p1nkyy commented on August 14, 2024

If someone can take one for the team and make a donation (he listed his donation page) and leaving a nice message to him to please consider come online and update the plugin, I think it'd be great. I was going to do it but it requires credit card, if only it accepts Paypal.

from libby-calibre-plugin.

LoisGNS avatar LoisGNS commented on August 14, 2024

I'd consider it if I saw any sign that @ping is paying attention. @ping, if you're around and willing to take a look at this, there might be some donations coming your way. The magazine download capability is the thing I miss most, since the plugin is the only way I'm aware of to do that.

from libby-calibre-plugin.

sgmoore avatar sgmoore commented on August 14, 2024

I keep getting this error as well, practically every time I am trying to use the plugin. While it is nice to have the workaround, it would be even nicer if the fix got implemented into the plugin itself

Can I ask how often you use the plugin?

I'm asking because I think this error doesn't happen if you use the plugin regularly.

I know I have not got this error for ages (feels like months) and that the token that you copy from the website expires after some time (I think it only lasts about a week). Also, when you open the plugin the token is refreshed. Hence my theory is that if you open the plugin every few days, then you never need to use the workaround.

I agree it would be nice if the fix got implemented into the plugin, but I don't think we can expect ping to help. He/She previously said that he/she didn't have the time and was looking for someone else to take over maintenance of the plugins and hasn't been active on github or the calibre forums.

from libby-calibre-plugin.

LoisGNS avatar LoisGNS commented on August 14, 2024

I use the plugin daily. I should say, however, that things are working fine for me with ebooks since I manually copied the code (once I found the magic method to copy it properly, since the more intuitive method didn't work), just not with magazines.

Although it's convenient to use the plugin for ebooks, it's also possible to download them directly from the libraries and then import. Magazines, though, were downloadable only via the plugin, so that's why to me getting that fixed has higher priority.

I didn't see an announcement from Ping that they didn't have the time, but since they haven't replied to these issues, it does seem likely that they aren't maintaining it anymore.

Is there anyone around who has the knowledge/experience to fix? I wish I did, but I don't.

from libby-calibre-plugin.

sgmoore avatar sgmoore commented on August 14, 2024

I didn't see an announcement from Ping that they didn't have the time, but since they haven't replied to these issues, it does seem likely that they aren't maintaining it anymore.

I'm not sure if there was an announcement, but I think there may have been several mentions and one of them was at #12 (comment)

from libby-calibre-plugin.

LoisGNS avatar LoisGNS commented on August 14, 2024

I didn't see that post, so thanks for pointing it out. I do wish someone can take this on.

from libby-calibre-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.