Skip to content

Commit

Permalink
Do not skip empty song object
Browse files Browse the repository at this point in the history
With Mutagen, if a file does not contain any tags, `not song` is `True`.
Therefore, the file will be skipped.

Closes #2
  • Loading branch information
DocMarty84 committed Oct 10, 2016
1 parent 182707c commit 0aed902
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/oomusic_folder_scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ def _scan_folder(self, folder_id):

# Get tags
song, song_tags = self._get_tags(os.path.join(rootdir, fn))
if not song:
if song is False:
continue
vals = {f: '' for f in self.FIELDS_TO_CLEAN}
vals.update({
Expand Down

0 comments on commit 0aed902

Please sign in to comment.