Comment 18 for bug 1945838

Revision history for this message
sezanzeb (sezanzeb) wrote (last edit ):

> if we want a check whether there are any tags after we read them all (to avoid any avoidable errors if a non-audio file is added)

Files can't be classified as non-audio by looking at tags, which might be empty

> and maybe if we should add the `if taglist` check

```
            for audio_stream in info.get_audio_streams():
                # Read tags for each audio stream
                taglist = audio_stream.get_tags()
                if taglist:
                    taglist.foreach(lambda *args: self._add_tag(*args, sound_file))
```

that probably makes sense yes