Logging added for identified metadata
This commit is contained in:
parent
0f1155465b
commit
2e497e2d9e
11
metadata.py
11
metadata.py
@ -31,16 +31,19 @@ def get_media_data(full_path, user_callback=None):
|
||||
#
|
||||
ft = common.get_filetype(full_path)
|
||||
#
|
||||
rv = None
|
||||
if ft == common.FILETYPE_AUDIO:
|
||||
return get_audio_data(full_path)
|
||||
rv = get_audio_data(full_path)
|
||||
elif ft == common.FILETYPE_IMAGE:
|
||||
return get_image_data(full_path)
|
||||
rv = get_image_data(full_path)
|
||||
elif ft == common.FILETYPE_VIDEO:
|
||||
return get_video_data(full_path)
|
||||
rv = get_video_data(full_path)
|
||||
elif ft == common.FILETYPE_DISC:
|
||||
return get_disc_data(full_path, user_callback)
|
||||
rv = get_disc_data(full_path, user_callback)
|
||||
else:
|
||||
logger.warning('Filetype not known: %s', full_path)
|
||||
logger.info("Media data identified: %s", repr(rv))
|
||||
return rv
|
||||
|
||||
|
||||
def get_audio_data(full_path):
|
||||
|
Loading…
x
Reference in New Issue
Block a user