Another elrond suggestion: only init orig_metadata if there's anything in the dict.
This commit sponsored by Joshua Rosen. Thank you!
This commit is contained in:
parent
9d4cebfd36
commit
4f239ff194
@ -178,5 +178,7 @@ def store_metadata(media_entry, metadata):
|
||||
videorate = metadata["videorate"]
|
||||
stored_metadata["videorate"] = [videorate.num, videorate.denom]
|
||||
|
||||
# Only save this field if there's something to save
|
||||
if len(stored_metadata):
|
||||
media_entry.media_data_init(
|
||||
orig_metadata=stored_metadata)
|
||||
|
Loading…
x
Reference in New Issue
Block a user