parent
e15437252e
commit
86ea8ba4fa
@ -0,0 +1,22 @@
|
||||
# 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…
Reference in New Issue