gocast
gocast copied to clipboard
Thumbnails versions mixed up
Describe the bug Sometimes the versions of the thumbnails get mixed up. This is somehow related to the latest changes, I think it stopped working after the latest deployment.
Potential issue: https://github.com/joschahenningsen/TUM-Live/blob/ea2913f09ecb143961ec505b337b8959f3a8db0f/model/file.go#L15
To Reproduce Steps to reproduce the behavior:
- Go to https://live.rbg.tum.de/w/I2DL/12354/CAM
- Hover over timeline
- Observe thumbnails for presentation instead of camera
Expected behavior The thumbnail version should match the stream version.
Additional context The issue can somehow not be reproduced on the testserver. There all version seem to match, see https://test.live.mm.rbg.tum.de/w/airplay/498/CAM
todo: move FILETYPE_IMAGE_JPG to bottom, delete section previews
Another option would be to just migrate the existing thumbnail types to the new logic, so +1 in the database for all thumb types (until yesterday I guess).
That would be even cleaner I suppose.
This can also be tracked in #536 I think