.\" Automatically generated by Pod::Man 4.11 (Pod::Simple 3.35) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "epgsearchuservars.conf 5" .TH epgsearchuservars.conf 5 "2019-11-01" "perl v5.30.0" "Epgsearch Version 2.4.0" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" epgsearchuservars.conf \- User defined variables .SH "DESCRIPTION" .IX Header "DESCRIPTION" In this file you can defines variables which then can be used in epgsearch in any play where variables are possible. .SH "SYNTAX" .IX Header "SYNTAX" Variables looks like \f(CW%Variablename\fR%. .PP \&\*(L"Variablename\*(R" can be consist of any alphanumerical character. Space and special characters are not allowed. .PP The variable names are case-insensitive. .PP Examples for possible names: .PP .Vb 1 \& %Series% %DocuVar1% %ThemesSubtitleDate1% .Ve .SS "Assignment" .IX Subsection "Assignment" .Vb 1 \& %Series%=New series~Thriller .Ve .PP The variable \f(CW%Series\fR% will be assigned with the string \*(L"New series~Thriller\*(R". .PP Assignments are always strings. Spaces stay spaces. .PP .Vb 1 \& %Path%=%Series% .Ve .PP The variable \f(CW%Path\fR% gets the content of the variable \f(CW%Series\fR%. .PP You can do nearly everything: .PP .Vb 1 \& %Path%=%Serie%~Lost .Ve .PP The variable \f(CW%Path\fR% contains now the string \*(L"New series~Thriller~Lost\*(R". .SS "Control structures" .IX Subsection "Control structures" You can use simple \*(L"if then else\*(R" constructions. .PP These constructions cannot contain strings, only variables. Spaces are ignored. .PP .Vb 1 \& %Foo%=Other \& \& %Variable%=%Path% ? %Path% : %Foo% .Ve .PP If \f(CW%Path\fR% is not empty, assign the content of \f(CW%Path\fR% to \f(CW%Variable\fR%, otherwise the content of \f(CW%Foo\fR%. .PP \&\*(L"%Path% ?\*(R" means \*(L"not empty?\*(R". You can use other checks. .PP .Vb 1 \& %Variable%=%Path%!=5 ? %Path% : %Foo% .Ve .PP \&\*(L"%Path%!=5 ?\*(R" means \*(L"is \f(CW%Path\fR% equal 5?\*(R" .PP You can also compare variables. .PP .Vb 1 \& %Five%=5 \& \& %Variable%=%Path%!=%Five% ? %Path% : %Foo% .Ve .PP Other possible checks: .PP .Vb 2 \& == equal \& != not equal .Ve .SS "Calling a system command" .IX Subsection "Calling a system command" You can call external commands. The returned string will be assigned to a variable .PP .Vb 1 \& %Result%=system(scriptname,%Variable1% %Variable2% \-f %Variable3% \-\-dir=%Variable4% \-\-dummy) .Ve .PP Calls the script \*(L"scriptname\*(R" with the parameters \*(L"%Variable1%\*(R", \&\*(L"%Variable2%\*(R", etc. The result will be stored in \f(CW%Result\fR%. .PP You can use as many variables as you want. .PP If needed, epgsearch will quote the variable. .PP The script must return a string \fBwithout\fR line break! .PP If the script returns nothing, an empty string will be assigned to the Variable \f(CW%Result\fR%. .SS "Possible variables" .IX Subsection "Possible variables" The following variables exist: .PP .Vb 12 \& %time% \- start time in format HH:MM \& %timeend% \- end time in format HH:MM \& %date% \- start date in format TT.MM.YY \& %datesh% \- start date in format TT.MM. \& %time_w% \- weekday name \& %time_d% \- start day in format TT \& %time_lng% \- start time in seconds since 1970\-01\-01 00:00 \& %title% \- title \& %subtitle% \- subtitle \& %summary% \- summary \& %htmlsummary% \- summary, where all CR are replaced with \*(Aq
\*(Aq \& %eventid% \- numeric event ID \& \& %% \- a value from the extended EPG categories, specified in \& F, like %genre% or %category% \& \& %chnr% \- channel number \& %chsh% \- the short channel name \& %chlng% \- the \*(Aqnormal\*(Aq channel name \& %chdata% \- VDR\*(Aqs internal channel representation (e.g. \*(AqS19.2E\-1\-1101\-28106\*(Aq) \& \& %colon% \- the sign \*(Aq:\*(Aq \& %datenow% \- current date in format TT.MM.YY \& %dateshnow% \- current date in format TT.MM. \& %timenow% \- current time in format HH:MM \& %videodir% \- VDR video directory (e.g. /video) \& %plugconfdir% \- VDR plugin config directory (e.g. /etc/vdr/plugins) \& %epgsearchdir% \- epgsearch config directory (e.g. /etc/vdr/plugins/epgsearch) .Ve .PP See also \f(CW\*(C`epgsearchcats.conf(5)\*(C'\fR. .SH "EXAMPLES" .IX Header "EXAMPLES" .Vb 2 \& # Weekday, Date, Time \& %DateStr%=%time_w% %date% %time% \& \& # Themes or Subtitle or Date \& %ThemesSubtitleDate1%=%Subtitle% ? %Subtitle% : %DateStr% \& %ThemesSubtitleDate%=%Themes% ? %Themes% : %ThemesSubtitleDate1% \& \& # Calls this script to get a recording path \& %DocuScript%=system(doku.pl,%Title%,%Subtitle%,%Episode%,%Themes%,%Category%,%Genre%) \& %Docu%=%DocuScript% .Ve .SH "SEE ALSO" .IX Header "SEE ALSO" \&\f(CWepgsearch(1)\fR, \f(CW\*(C`epgsearchcats.conf(5)\*(C'\fR .SH "AUTHOR (man pages)" .IX Header "AUTHOR (man pages)" Mike Constabel .SH "REPORT BUGS" .IX Header "REPORT BUGS" Bug reports (german): .PP .PP Mailing list: .PP .SH "COPYRIGHT and LICENSE" .IX Header "COPYRIGHT and LICENSE" Copyright (C) 2004\-2010 Christian Wieninger .PP This program is free software; you can redistribute it and/or modify it under the terms of the \s-1GNU\s0 General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. .PP This program is distributed in the hope that it will be useful, but \s-1WITHOUT ANY WARRANTY\s0; without even the implied warranty of \&\s-1MERCHANTABILITY\s0 or \s-1FITNESS FOR A PARTICULAR PURPOSE.\s0 See the \&\s-1GNU\s0 General Public License for more details. .PP You should have received a copy of the \s-1GNU\s0 General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, \s-1MA 02110\-1301 USA\s0 Or, point your browser to http://www.gnu.org/licenses/old\-licenses/gpl\-2.0.html .PP The author can be reached at cwieninger@gmx.de .PP The project's page is at http://winni.vdr\-developer.org/epgsearch .PP The \s-1MD5\s0 code is derived from the \s-1RSA\s0 Data Security, Inc. \s-1MD5\s0 Message-Digest Algorithm.