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)
 * I edited the table's properties and set it to the style of i.e. tables in TW3. What do you think? — »»Dove«« (talk) 20:57, 10 February 2020 (UTC)
 * How exactly did you do it? Changing border-color only affects the outer border color. But something also changed the inner ones. Or may be it's only like that in the preview? It's rather confusing. When I remove your changes and click preview, it doesn't return to the old view, it still has dark borders. — Gilrond (talk) 02:00, 11 February 2020 (UTC)
 * Ah, I got it. The culprit was border="1". — Gilrond (talk) 02:05, 11 February 2020 (UTC)
 * I'm still not quite sure how to set the color of the inner border of each table cell. Rather than pure black it would be better to have some gray color there, like the infobox. But it anyway already looks better than before. — Gilrond (talk) 02:07, 11 February 2020 (UTC)
 * You probably have to take a look at the style page Hydradark.css where the css for class ".sortable" is defined. There are depending classes with tr (table header lines) and td (cells). You can play around via your private CSS first, than show what solution you suggest. Because it will affect every table of this class. And I don't think that there will be introduced a second ".sortable" design... — »»Dove«« (talk) 17:22, 12 February 2020 (UTC)