From 118ebf668d222508bc53a9051fbdbb94814bc95f Mon Sep 17 00:00:00 2001 From: ed Date: Sat, 29 May 2021 05:43:09 +0200 Subject: [PATCH] fix bugs --- README.md | 1 - copyparty/authsrv.py | 6 ++++-- copyparty/up2k.py | 6 +++--- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index b170c7da..04888b5b 100644 --- a/README.md +++ b/README.md @@ -518,7 +518,6 @@ in the `scripts` folder: roughly sorted by priority -* mtag mediainfo (multitag) * separate sqlite table per tag * audio fingerprinting * readme.md as epilogue diff --git a/copyparty/authsrv.py b/copyparty/authsrv.py index 28f649fc..31fe03df 100644 --- a/copyparty/authsrv.py +++ b/copyparty/authsrv.py @@ -507,8 +507,10 @@ class AuthSrv(object): self.log(m.format(vol.vpath, mtp), 1) errors = True - for mtp in self.args.mtp or []: - mtp = mtp.split("=")[0] + tags = self.args.mtp or [] + tags = [x.split("=")[0] for x in tags] + tags = [y for x in tags for y in x.split(",")] + for mtp in tags: if mtp not in all_mte: m = 'metadata tag "{}" is defined by "-mtm" or "-mtp", but is not used by "-mte" (or by any "cmte" volume-flag)' self.log(m.format(mtp), 1) diff --git a/copyparty/up2k.py b/copyparty/up2k.py index 728071cf..be496ed9 100644 --- a/copyparty/up2k.py +++ b/copyparty/up2k.py @@ -654,15 +654,15 @@ class Up2k(object): elif v.audio == "y": continue - match = False if v.ext: + match = False for ext in v.ext: if abspath.lower().endswith("." + ext): match = True break - if not match: - continue + if not match: + continue parsers[k] = v