kyaaa!! >~<
This commit is contained in:
parent
fea0c31d08
commit
e15437252e
7 changed files with 0 additions and 233 deletions
22
main.py
22
main.py
|
|
@ -1,22 +0,0 @@
|
|||
# module imports
|
||||
import sys
|
||||
import json
|
||||
import logging
|
||||
|
||||
# init logging
|
||||
logging.basicConfig(stream=sys.stderr, level=logging.DEBUG)
|
||||
|
||||
# variable init
|
||||
infojson={}
|
||||
source=sys.argv[1]
|
||||
|
||||
logging.info(f"loading info.json for {source}...")
|
||||
with open(f"{source}.json") as file:
|
||||
infojson=json.load(file)
|
||||
|
||||
# TODO: insert method to check url or dict
|
||||
logging.debug("determining file type...")
|
||||
from standards import exif
|
||||
if infojson.extension in exif.allowed_exts:
|
||||
logging.debug(f"exif module supports {infojson.extesnion} files. using it... ")
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue