File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -319,6 +319,14 @@ package MythTV::Program;
319
319
$omonth = ' 00' ;
320
320
$oday = ' 00' ;
321
321
}
322
+ # Season/Episode/InetRef
323
+ my ($season , $episode , $inetref );
324
+ $season = ($self -> {' season' } or ' ' );
325
+ $season = " 0$season " if ($season && $season < 10);
326
+ $episode = ($self -> {' episode' } or ' ' );
327
+ $episode = " 0$episode " if ($episode && $episode < 10);
328
+ $inetref = ($self -> {' intetref' } or ' ' );
329
+
322
330
# Build a list of name format options
323
331
my %fields ;
324
332
($fields {' T' } = ($self -> {' title' } or ' ' )) =~ s / %/ %%/ g ;
@@ -400,6 +408,11 @@ package MythTV::Program;
400
408
$fields {' om' } = $omonth ; # month, leading zero
401
409
$fields {' oj' } = int ($oday ); # day of month
402
410
$fields {' od' } = $oday ; # day of month, leading zero
411
+ # Season/Episode/Inetref
412
+ $fields {' ss' } = $season ;
413
+ $fields {' ep' } = $episode ;
414
+ $fields {' in' } = $inetref ;
415
+
403
416
# Literals
404
417
$fields {' %' } = ' %' ;
405
418
($fields {' -' } = $separator ) =~ s / %/ %%/ g ;
Original file line number Diff line number Diff line change 110
110
\% T = Title (show name)
111
111
\% S = Subtitle (episode name)
112
112
\% R = Description
113
+ \% ss = Season (leading zero)
114
+ \% ep = Episode (leading zero)
115
+ \% in = Internet reference number
113
116
\% C = Category
114
117
\% U = RecGroup
115
118
\% hn = Hostname of the machine where the file resides
You can’t perform that action at this time.
0 commit comments