Been searching for a while now and cant figure out how to get this done.
Running a Linux headless system and want to be able to rename sports media.
example
Rename- EPL 2019 TeamA vs TeamB 15 02 720pEN60fps Prov.mkv
to
English Premier League 15-02-2019 TeamA vs TeamB 720pEN60fps Prov.mkv
Have found a sports database https://www.thesportsdb.com/ which does nfo data so have been using that with this script
Code: Select all
{
def i = xml(folder / fn + '.xml')
[i.showtitle, i.aired, i.title].join(' - ')
}
So if anyone can please point me in the right direction for either directly renaming or how to use the nfo information it would be greatly appreciated.
Thanks