I want to know how I can automate "Livestreamer".
I download movies(series) every week. The command is like this:
livestreamer "hlsvariant://http://Bla_Bla" best -o Filename.ts
I want the change Bla_Bla automatically, and change the file name as NameOfMovie*.ts, where * is the chapter of the movie.
For example if there is a file NameOfMovie1.ts it renames it as NameOfMovie2.ts.
How can I do this?