Logging added for identified metadata

This commit is contained in:
Dirk Alders 2025-07-28 17:35:28 +02:00
parent 0f1155465b
commit 2e497e2d9e

View File

@ -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):