1
0
mirror of synced 2024-11-06 01:18:51 +01:00

Add gitlab-ci

This commit is contained in:
jvoisin 2018-03-25 17:42:29 +02:00
parent aa893e9d61
commit e313ddb721
3 changed files with 7 additions and 2 deletions

5
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,5 @@
test:
script:
- apt-get update -qy
- apt-get install -qy --no-install-recommends python3-mutagen python3-gi-cairo gir1.2-poppler-0.18 gir1.2-gdkpixbuf-2.0 libimage-exiftool-perl
- python3 -m unittest discover -v

View File

@ -19,7 +19,7 @@ class JPGParser(abstract.AbstractParser):
def get_meta(self):
out = subprocess.check_output(['exiftool', '-json', self.filename])
meta = json.loads(out)[0]
meta = json.loads(out.decode('utf-8'))[0]
for key in self.meta_whitelist:
meta.pop(key, None)
return meta

View File

@ -16,7 +16,7 @@ class PNGParser(abstract.AbstractParser):
def get_meta(self):
out = subprocess.check_output(['exiftool', '-json', self.filename])
meta = json.loads(out)[0]
meta = json.loads(out.decode('utf-8'))[0]
for key in self.meta_whitelist:
meta.pop(key, None)
return meta