Recording File Name: avoid series/episode if missing

Post your great ideas and suggestions here
Post Reply
chis
Posts: 11
Joined: Sat Nov 23, 2013 10:16 am

Recording File Name: avoid series/episode if missing

Post by chis » Mon Jan 12, 2015 8:21 am

Most of the series I record have valid series and episode details and I want them to appear in the filename for use by Plex. Others do not have series and episode data, yet Argus still treats them as a series and I can't avoid getting wrong details in the filename.

My suggestion: Have a VARIABLE that includes series and episode in a standard format (such as S01E01 or 1x01) only if they exist in the metadata for the programme.

To get series and episodes coming through, I use variable %%SERIES%%x%%EPISODENUMBER%%. This works great for series with the right details. But for series without them, this gives me #x# which confuses Plex and makes it think all episode recordings are copies of a single episode. I'd like to skip that entire series/episode variable(s) if there aren't valid details. Alternatively, a way to have them treated as a one-time recording would be equally effective.

rudig
Posts: 254
Joined: Tue Sep 06, 2011 6:21 pm

Re: Recording File Name: avoid series/episode if missing

Post by rudig » Mon Jan 12, 2015 7:13 pm

Why don't you create a post script that checks for valid information? And if it's not valid than replaces with other values?

chis
Posts: 11
Joined: Sat Nov 23, 2013 10:16 am

Re: Recording File Name: avoid series/episode if missing

Post by chis » Tue Jan 13, 2015 7:59 am

Why don't you create a post script that checks for valid information?
I've wondered about that (as it's easily detected), but don't know where to start.

I assume I'd want:
After each recording has completed,
Remove any " 1x1" from the filename.

Any tips on how to create something like this?

rudig
Posts: 254
Joined: Tue Sep 06, 2011 6:21 pm

Re: Recording File Name: avoid series/episode if missing

Post by rudig » Tue Jan 13, 2015 8:51 am

You could create a .cmd file with some command described here:

http://ss64.com/nt/syntax-replace.html

Parse the values passed through to the batch-file and than rename the file.
Also of course update the argus database with the rename command described here:

http://www.argus-tv.com/wiki/index.php? ... _Processor

Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests