jvatic / audible-downloader

Download your Audible library for personal use/backup.
BSD 3-Clause "New" or "Revised" License
26 stars 3 forks source link

Downloading book should always write the associated info.txt #39

Open HeruEwasham opened 8 months ago

HeruEwasham commented 8 months ago

Hello.

I see that the first book I have in the backup folder, seems to always redownload when running the backup again, even when the folder has contents in it. Is it some error that makes so the first entry is not shown when checking is if already backuped?

jvatic commented 8 months ago

There a few things that seem likely candidates for this issue:

  1. The file extension of the downloaded book has been changed
  2. There's no info.txt next to it
  3. There's no URL: https://www.audible... in the info.txt

Do any of those appear to be what's happening?

HeruEwasham commented 8 months ago

The downloaded book has not changed from the .mp4-file extension.

The url in the info.txt file existed. But I tried now to delete the info.txt-file and let the program redownload the book and recreate the info.txt. Then I saw too things:

  1. The url of info.txt changed. Or more correctly, the old url had some more numbers in the url.
  2. When I tried to backup again, it did not try to download it again (i.e the problem went away).

As I see it, it seems that info.txt was not updated (while it maybe should?). Ie. Maybe the info.txt should be updated/recreated each time it want to download the book, even if the info.txt existed already? As it seems that a partly currupted info.txt is to blame.