BASC-Archiver icon indicating copy to clipboard operation
BASC-Archiver copied to clipboard

Keep track of JSON better

Open DanielOaks opened this issue 9 years ago • 2 comments

We should probably create a JSON manager that loads and saves the thread json file, so we can handle it like *Fuuka does their thread grabbing. For example, being able to put "deleted": true as an attribute of specific posts when they go missing, stuff like that. So we can load and save it as necessary, and keep a more accurate representation of the thread.

DanielOaks avatar Oct 29 '15 22:10 DanielOaks

How about a SQLite database at the root of the archive/4chan/ folder that keeps track of this kind of thing? Simple and elegant, and easily exportable.

antonizoon avatar Nov 12 '15 22:11 antonizoon

Hmm, the issue there is with multiple instances of the archiver running and smashing each others' database handlers/accesses. This mostly refers to the JSON thread manifest files in specific threads' folders though, so we shouldn't need to handle it larger up in the directory tree.

DanielOaks avatar Nov 12 '15 23:11 DanielOaks