Add persistent "seen" ID tracking to skip already-downloaded AO3 works #265
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When I download works from my AO3 History, "Marked for later", or any other search, ao3downloader saves them to a folder. I then move the files into Calibre and delete them from that folder because Calibre keeps its own copy and I don’t want duplicates. However, ao3downloader detects already-downloaded works by checking the files that remain in that folder. Since I remove the files after importing to Calibre, ao3downloader repeatedly re-downloads the same works.
I'm thinking of adding the “seen” functionality used in lemmy-rss-pybot (which tracks seen item IDs) to ao3downloader so it records downloaded AO3 work IDs separately (e.g., in a local database or file) and skips re-downloading those IDs even if the original files are no longer present.
I've been semi-manually curating an ignore file to manage it, so this would be helpful.
It would need some way to allow redownload if the fic updated though, which ignore does not. Text files make it easier to review than a database - sqlite would work fine but takes additional skills to check the data. CSV would allow view and edit with a text editor or spreadsheet.
I wrote a Python script as a workaround since I couldn't find where I should make the changes.
How to use it
cd to
/path/to/ao3_archiverun ao3downloader
run
python import_new_fics.pyimport files in latest folder to calibre
remove files in latest folder
import_new_fics.py