Skip over mutagen errors

This commit is contained in:
dave 2017-08-14 00:32:27 -07:00
parent 301ce666ca
commit 5eb3f9680f
1 changed files with 3 additions and 0 deletions

View File

@ -7,6 +7,7 @@ from time import time
from threading import Thread
from pysonic.types import KNOWN_MIMES, MUSIC_TYPES
from mutagen.id3 import ID3
from mutagen import MutagenError
from mutagen.id3._util import ID3NoHeaderError
@ -139,6 +140,8 @@ class PysonicFilesystemScanner(object):
except ID3NoHeaderError:
except MutagenError as m:
self.library.db.update_metadata(track_file["id"], **tags)
logging.warning("Library scan complete in {}s".format(int(time() - start)))