These forums are archived

See this post for further info

get_iplayer forums

Forum archived. Posting disabled.

How do I use --fileprefix to rename an episode via Cron PVR

user-1079

Hi,

Title say it all really... :-)

I've been using get_iplayer for years on a headless Debian 6 server.
I've just moved to Debian 8 on a new microserver (lowpower).
I've set it all up again and it all works nicely.

Whilst installing I noticed that there are some renaming options available now.

I normally have the PVR option run every night via a Cron Job.

However I'm not sure how I might add the renaming options to the Cron Job.
I have tried simply adding --fileprefix <nameshort>.<senum>.<episodeshort>
after (and before the --PVR option) the get_iplayer command in the Cron Job,
but it doesn't seem to work.

What is the correct command/way to get an episode to rename to say something like
Dr.Who s06e06.mp4... (whilst using the PVR option).

Thanks

user-2

I suspect you just need to put double-quotes around the value for --fileprefix. Otherwise, the shell metacharacters will be evaluated, which you don't want.

user-1079

(31-10-2015, 09:55 PM)I suspect you just need to put double-quotes around the value for --fileprefix. Otherwise, the shell metacharacters will be evaluated, which you don't want.

And you suspect correctly! Works perfectly with the quotes...
Thanks for that....
Sometimes I don't see the wood for the trees!
I spent an hour before realising I was missing something obvious which is why I asked!

These forums are archived

See this post for further info