Release: 9e6f9c0bef4dee208308971155bc254c

This commit is contained in:
Dirk Alders 2020-01-30 23:37:29 +01:00
parent 88ed56a985
commit fb5cafc8cc
5 changed files with 277 additions and 277 deletions

View File

@ -24,6 +24,7 @@ media (Media Tools)
__DEPENDENCIES__ = []
import logging
from media import metadata
logger_name = 'MEDIA'
logger = logging.getLogger(logger_name)
@ -37,7 +38,6 @@ __INTERPRETER__ = (3, )
def get_media_data(full_path):
from media import metadata
ft = metadata.get_filetype(full_path)
#
if ft == metadata.FILETYPE_AUDIO:

View File

@ -1,5 +1,5 @@
<?xml version="1.0" ?>
<coverage branch-rate="0.975" branches-covered="39" branches-valid="40" complexity="0" line-rate="0.9856" lines-covered="206" lines-valid="209" timestamp="1580418394944" version="4.5">
<coverage branch-rate="0.975" branches-covered="39" branches-valid="40" complexity="0" line-rate="0.9856" lines-covered="206" lines-valid="209" timestamp="1580423734911" version="4.5">
<!-- Generated by coverage.py: https://coverage.readthedocs.io -->
<!-- Based on https://raw.githubusercontent.com/cobertura/web/master/htdocs/xml/coverage-04.dtd -->
<sources/>
@ -12,11 +12,11 @@
<line hits="1" number="4"/>
<line hits="1" number="24"/>
<line hits="1" number="26"/>
<line hits="1" number="28"/>
<line hits="1" number="27"/>
<line hits="1" number="29"/>
<line hits="1" number="32"/>
<line hits="1" number="35"/>
<line hits="1" number="39"/>
<line hits="1" number="30"/>
<line hits="1" number="33"/>
<line hits="1" number="36"/>
<line hits="1" number="40"/>
<line hits="1" number="41"/>
<line branch="true" condition-coverage="100% (2/2)" hits="1" number="43"/>

File diff suppressed because it is too large Load Diff

Binary file not shown.

View File

@ -45,7 +45,7 @@ __KEY_CAMERA_MODEL__ = 'camera_model'
def get_filetype(full_path):
ext = os.path.splitext(full_path)[1]
ext = os.path.splitext(full_path.lower())[1]
if ext in EXTENTIONS_AUDIO:
return FILETYPE_AUDIO
elif ext in EXTENTIONS_IMAGE: