Talk:The Witcher (TV series) soundtrack

Metadata source
Soundtracks metadata was extracted from the OST release on Presto. — Gilrond (talk) 09:08, 24 January 2020 (UTC)

Extracting
I used ffprobe to dump the metadata and then a script to re-arrange the result if anyone needs:


 * 1) !/bin/bash

count=0 idx=0 buff=

function round_seconds { local time_min=$(echo "$1" | cut -d : -f 2) local time_sec=$(echo "$1" | cut -d : -f 3) # rounding time_sec=$(printf %02.0f $time_sec)

printf "${time_min}:${time_sec}" }

function truncate_seconds { local time_min=$(echo "$1" | cut -d : -f 2) local time_sec=$(echo "$1" | cut -d : -f 3) # truncating time_sec=$(echo $time_sec | cut -d . -f 1)

printf "${time_min}:${time_sec}" }

for i in *.flac; do ffprobe -loglevel error -sexagesimal -show_entries format=duration:format_tags=title,artist -of default=noprint_wrappers=1:nokey=1 "$i"; done > tracks.txt
 * 1) for i in *.opus; do ffprobe -loglevel error -sexagesimal -show_entries stream=duration:stream_tags=title,artist -of default=noprint_wrappers=1:nokey=1 "$i"; done > tracks.txt

track_num=1 while read line; do (( idx = $count % 3 ))

if (( $idx == 0 )); then line=$(truncate_seconds "$line") fi

buff[$(( 2 - $idx ))]="$line"

if (( $idx == 2 )); then title="${buff[0]}" artist="${buff[1]}" duration="${buff[2]}"

echo "|-" echo "| ${track_num} || ${title} || ${artist} || ${duration}"

(( track_num++ )) fi

(( count++ )) done < <(cat tracks.txt)

— Gilrond (talk) 09:53, 24 January 2020 (UTC)

Cleanup
Updated the script above to generate the contents of the table. — Gilrond (talk) 18:22, 24 January 2020 (UTC)

"CD cover"
Netflix has posted "CD cover" of the soundtrack on instagram, can be added. — SMiki5five (talk) 17:01, 24 January 2020 (UTC)
 * Nice find, thanks! I'll add it together with the other one. — Gilrond (talk) 17:27, 24 January 2020 (UTC)

Darker style for the table?
It would be nice to make the table borders darker, in similar style as info boxes for album art on the right. — Gilrond (talk) 05:14, 26 January 2020 (UTC)