I’m just stumpling over a problem in the Plex database. There seems to be wrong content. It’s about stream_types:
Table: stream_types
| rowid | id | name |
|---|---|---|
| 1 | 1 | audio |
| 2 | 2 | video |
| 3 | 3 | subtitle |
Table: media_streams
stream_type_id == 1 --> video
stream_type_id == 2 --> audio
stream_type_id == 3 --> subtitle
–> audio and video content is swapped.
It seems that the table stream_types is a documentational table that’s no longer in use. In fact it’s wrong content confuses developers.
BTW, there are more than three stream_type_ids in media_streams.