You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mpDris2 crashes if mutagen is present but cannot read the file and does not throw a MutagenError exception:
Traceback (most recent call last):
File "/usr/bin/mpDris2", line 1480, in <module>
mpd_wrapper.run()
File "/usr/bin/mpDris2", line 291, in run
if self.my_connect():
File "/usr/bin/mpDris2", line 366, in my_connect
self.timer_callback()
File "/usr/bin/mpDris2", line 454, in timer_callback
self._update_properties(force=False)
File "/usr/bin/mpDris2", line 758, in _update_properties
self.update_metadata()
File "/usr/bin/mpDris2", line 580, in update_metadata
cover = self.find_cover(song_url)
File "/usr/bin/mpDris2", line 643, in find_cover
if song.tags:
AttributeError: 'NoneType' object has no attribute 'tags'
#107 is similar but the fix in e3bdb9e only catches explicit mutagen errors, I assume. I'm using mutagen 1.43.0.
The text was updated successfully, but these errors were encountered:
Tag extraction failure should just fall back to loading standalone cover
files instead of failing completely.
Also, apparently mutagen.File() is a function and can return None if the
provided file type is completely unrecognized. This should make the
function handle both situations in the same way.
Ref: #127
Hi,
mpDris2 crashes if mutagen is present but cannot read the file and does not throw a MutagenError exception:
#107 is similar but the fix in e3bdb9e only catches explicit mutagen errors, I assume. I'm using mutagen 1.43.0.
The text was updated successfully, but these errors were encountered: