Project

General

Profile

File Naming Conventions for Multi Part Episodes

Added by Mark M about 7 years ago

Hi, Does anyone know if it is possible to setup different naming conventions when two episodes of the same series are shown on the same day.
I would much prefer pt1 & pt2 as opposed to using the time.
Is there any way to achieve this?
Cheers
Mark


Replies (4)

RE: File Naming Conventions for Multi Part Episodes - Added by Mark M about 7 years ago

Hi Guys,

I have read the wiki regarding this and I have tried these options but I still cant get it to work properly.
The reason I need it to display properly is because I am scraping the recorded episodes into a database.
$t_$F_pt$n.$x
$t_$F_pt$n+1.$x
$t_$F_pt$(n+1).$x

Is there anyway to increment $n by 1?

Cheers
Mark

RE: File Naming Conventions for Multi Part Episodes - Added by Robert Cameron about 7 years ago

As I understand it, Tvheadend increases n as needed. For example, if a recording was interrupted and restarted, it will start the second recording with an incremented "n".

RE: File Naming Conventions for Multi Part Episodes - Added by Mark M about 7 years ago

Yes, my problem is I wanted the 1st recording to be n = 1 and any subsequent recordings +1,
then if two episodes of the same series records on the same night my scraper would recognize the correct recording as it is not possible to do this with time. This being the 1st recording pt1 and subsequent episodes pt2, pt3 etc

RE: File Naming Conventions for Multi Part Episodes - Added by Robert Cameron about 7 years ago

I wonder if as a workaround you could run a pre-recording script of touch "%f", which will create the expected file. Since this command is supposed to run before recording starts, TVH ought to see the file it wants to create as existing, and then increment "n" when it opens the file for recording. A subsequent post-record script with some basename, trim and sed magic should eliminate the touch-ed file (or just checking for a zero filesize) after the recording.

    (1-4/4)