Project

General

Profile

Change filename of recordings

Added by Acid Rain over 10 years ago

Hello,

first of all: Excuse my baaaaad english :)

is it possible to change the filnename of the recordings?
Actually it is with my checkboxes activated:
ChannelName ProgramTitle DateTime
Example:
Sky Sport HD 1-Live F1_ 1. Free Praxis in Montreal.2014-06-06.15-55.ts

But, for a better sorting, i'd like to have it like this:
DateTime ChannelName ProgramTitle
Example:
2014-06-06.15-55_Sky Sport HD 1-Live F1_ 1. Free Training in Montreal.ts

Is there a configuration possibility, or must i do this with the post processor command options?
I don't know much about Linux...
How must the script be?


Replies (3)

RE: Change filename of recordings - Added by Prof Yaffle over 10 years ago

Renaming files sometimes works, although I've never really studied it to know why (or how, or whether, or...)...

What are you viewing the recordings in? It sounds like you're looking at them as files - in which case, why don't you just sort in your file browser?

RE: Change filename of recordings - Added by Acid Rain over 10 years ago

Hi,

Im looking at them via samba from a windows client.
Also i'm archiving them on a seperate system.
Sometimes on bluray or dvd.

And i like a special structure, but dont want to have much work for it. :-)

The last two years i Startes to archive the formula 1.
Incl trainings, qualifying, races and Interviews.
Thats why i like to have the names like abovoe.

DateTime ChannelName ProgramTitle

RE: Change filename of recordings - Added by Prof Yaffle over 10 years ago

You can't do this from within tvheadend... you could change the code to write those fields in a different order, but that's overkill.

You're probalby better off having a post-processing script as you suggest. You know the filename format is <a load of characters>.YYYY-MM-DD.HH-MM.ts, so it should be possible to match that with a regular expression, extract what you need and rename accordingly. It's a shell script challenge rather than a tvheadend one, though.

    (1-3/3)