Skip to content

Instantly share code, notes, and snippets.

View barbequesauce's full-sized avatar

Barbeque Sauce barbequesauce

  • Hudson Valley, NY
View GitHub Profile
@barbequesauce
barbequesauce / checktags
Created April 12, 2022 21:34
WIP - check archives for metadata and call tagger as apropos
#!/usr/bin/env python
"""
These functions were designed to work on archives without writing anything to disk
before it's necessary. Thus, no extracting all files to a temp directory. Should
significantly speed up anything aside from a solid RAR archive.
"""
__author__ = "btx"
import os
#!/usr/bin/env python
"""
These functions were designed to work on archives without writing anything to disk
before it's necessary. Thus, no extracting all files to a temp directory. Should
significantly speed up anything aside from a solid RAR archive.
"""
__author__ = "btx"
import os
@barbequesauce
barbequesauce / gist:4f919e2e83aacac7672bae769b045714
Created August 23, 2018 19:23
Remove scanner pages from CBZs
#!/usr/bin/env python3
"""
A tool to find and remove scanner pages from cbz files. It's possible to operate on a single file
or recursively over tens of thousands of files.
Two basic use-cases:
Two-pass use-case: