Here's a suggestion. The pixbuf_get_file_info function will return None if the file passed to it is not a recognized image. That could be added to the "if not track.cover:" clause in the update_track function to test whether the arturl-passed file is a recognized image. If it fails that test, then it performs a cover search. See the attached file.
Here's a suggestion. The pixbuf_ get_file_ info function will return None if the file passed to it is not a recognized image. That could be added to the "if not track.cover:" clause in the update_track function to test whether the arturl-passed file is a recognized image. If it fails that test, then it performs a cover search. See the attached file.