Fixed issue #21
This commit is contained in:
parent
0b6e46a9d5
commit
a9cdd7d9a1
1 changed files with 8 additions and 1 deletions
|
@ -82,10 +82,17 @@ class Playable:
|
|||
if not isinstance(library, Path):
|
||||
library = Path(library)
|
||||
for meta in self.metadata:
|
||||
if meta.string is not None:
|
||||
if meta.string is not None and len(meta.string) < 100:
|
||||
output = output.replace(
|
||||
"{" + meta.name + "}", fix_filename(meta.string)
|
||||
)
|
||||
else:
|
||||
if "," in meta.string:
|
||||
shortened = ",".join(meta.string.split(",", 3)[:3])
|
||||
else:
|
||||
shortened = f"{meta.string[:50]}..."
|
||||
output = output.replace("{" + meta.name + "}", fix_filename(shortened))
|
||||
|
||||
if meta.name == "spotid":
|
||||
spotid = meta.string
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue