2019-02-24, 17:47
I just recently wrote a bash script that walks through my movie media files with mediainfo to determine if there are any commentary tracks. Here it is
Is there any way to script writing a "Commentary" tag to the media file in Kodi database, if one doesn't already exist? I'd rather not go through them one-by-one and add them.
Pastebin to slightly updated script.
python:#!/bin/bash
for file in /Volumes/*/Movies/*/*.mkv /Volumes/*/Movies/*/*.mp4 /Volumes/*/Movies/*/*.avi /Volumes/*/Movies/*/*.m4v; do
if mediainfo "$file" | grep -qi commentary; then
echo ""$file" has a commentary track!"
echo ""$file" has a commentary track!" >> ~/Desktop/films.with.commentaries.txt
fi
done
Is there any way to script writing a "Commentary" tag to the media file in Kodi database, if one doesn't already exist? I'd rather not go through them one-by-one and add them.
Pastebin to slightly updated script.