calaldees / KaraKara

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

New `track_list.json` format #91

Closed calaldees closed 2 years ago

calaldees commented 2 years ago

processmedia2 will have a new final step export_media.py to output a static file in the following format.

The track_list.json format will be changed to something like the following.

{
    'BASE62_HASH-TRACKID-11-characters': {
        'source_filename': '',  # For debugging
        'attachments': [
            {
                'url': 'PATH/BASE62_HASH.mp4',
                'use': 'preview',
                'mime': 'video/mp4',
            },
            ## if you want consistent image order then sort by url-string to get consistent order
        ],
        'duration': 300.0,
        'srt': 'SRT_TEXT',
        'tags': 'TAG_TEXT',
    }
}

I don't want multiple stages of transforms. I want as few data transforms as possible.

shish commented 2 years ago

tracks.json has a fairly settled format now (see the code for the exact format, it's not exactly what was written here)