fix: remove all none metadata from metadata collection
This commit is contained in:
parent
9addcf1862
commit
3f3bb77cc9
@ -29,6 +29,8 @@ class AudioMetadata:
|
|||||||
"""
|
"""
|
||||||
https://www.programcreek.com/python/example/84797/mutagen.id3.ID3
|
https://www.programcreek.com/python/example/84797/mutagen.id3.ID3
|
||||||
"""
|
"""
|
||||||
|
if value is None:
|
||||||
|
continue
|
||||||
self.frames.add(value)
|
self.frames.add(value)
|
||||||
|
|
||||||
def add_song_metadata(self, song: Song):
|
def add_song_metadata(self, song: Song):
|
||||||
|
@ -3,7 +3,7 @@ from pathlib import Path
|
|||||||
import json
|
import json
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from .shared import DEBUG, DEBUG_LOGGING, DEBUG_DUMP, DEBUG_TRACE
|
from .shared import DEBUG, DEBUG_LOGGING, DEBUG_DUMP, DEBUG_TRACE, DEBUG_OBJECT_TRACE
|
||||||
from .config import config, read_config, write_config
|
from .config import config, read_config, write_config
|
||||||
from .enums.colors import BColors
|
from .enums.colors import BColors
|
||||||
from .path_manager import LOCATIONS
|
from .path_manager import LOCATIONS
|
||||||
@ -53,7 +53,7 @@ def trace(msg: str):
|
|||||||
output("trace: " + msg, BColors.OKBLUE)
|
output("trace: " + msg, BColors.OKBLUE)
|
||||||
|
|
||||||
def object_trace(obj):
|
def object_trace(obj):
|
||||||
if not DEBUG_TRACE:
|
if not DEBUG_OBJECT_TRACE:
|
||||||
return
|
return
|
||||||
|
|
||||||
output("object: " + str(obj), BColors.GREY)
|
output("object: " + str(obj), BColors.GREY)
|
||||||
|
Loading…
Reference in New Issue
Block a user