calaldees / KaraKara

Karaoke Event System - Attendees can view and queue tracks from their mobile phones
https://karakara.uk
GNU General Public License v3.0
28 stars 9 forks source link

Ensure every track has a title and some attachments #102

Closed shish closed 1 year ago

shish commented 2 years ago

Right now the code assumes every track has track.tags.title, because the title is referenced in a ton of places and adding is-null checks in every place is a mess. But then if a track slips through without a title, things crash :(

Similar for attachments - we assume every track has video, preview, and image attachments

Can we update export_track_data.py to log a warning and avoid exporting the track if any of these fields are missing?