Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[vdr] Re: channels.conf script.
I have change the script a bit.
It has uniqueness support and works for vdr 1.x.x
http://home1.pp.sbbs.se/beppes/getchannels.pl
------------------------------------------------------------------------
getchannels.pl is a perl script that gets a fresh channels.conf for vdr.
Usage:
getchannels.pl -t {t|r} [-vc /vdrdir] -ul {0|1|2|3|4}
-satX Y=Z [-to X] [-lo] [-nl X] [-ca X] [-h]
Where:
-t = Type t=TV and r=RADIO.
-vc = vdr channels.conf dir.
Don't list channels that are in channels.conf regarding to
unique fields.
-ul = Unique Level.
0 = No uniqueness. If a channel has multiply AudioPIDs it will
be on separate channels.
Use this with vdr 1.0.x and 1.1.<=15.
1 = Gets an Unique channels.conf. If a channel has multiply
AudioPIDs it will be on one channel.
If two or more channels has the same SOURCE,SID,TID,NID
only one of them can be listed. Use this with vdr 1.1.16.
You can change the number of APIDs and languages priority
with -nl and -lo.
2 = Same as 1 but you got NID,TID,RID fields with zero.
Use this with vdr 1.1.17.;
3 = Gets an Unique channels.conf. If two or more channels has
the same SOURCE,SID,TID,NID
the RID field is used for uniqueness and NID and TID has the
right number.
Use this with vdr 1.1.>=??18??.
-satX Y=Z X is a number starting from 0.
Y is Satellite position/address in east grade with one
decimal with out "." and leading zeros.
1E is 0010 and 1W is 3590(360-1=395*10=3950).
Take a look at http://www.satcodx.com/
click on your language.
In the left column you see the number for this field.
Z is the source field for that satellite.
ex. -sat0 0192=S19.2E -sat1 0130=S13E
and if you want old diseqc source -sat0 0192=0 -sat1 0130=1
-to = Timeout value def. is 5 seconds.
If you want a channel list from 4 satellites and
vdr -w set to 60 seconds,
the timeout must be like this
(num of sat * timeout + overhead < vdr -w seconds).
Will return exit code 1 if timeouted.
-lo = Languages Order. If a channel has more languages
you can sort them.
ex. -lo ENG:ORG:NULL
NULL is when no description is found.
-nl = Number of languages. Def. 2. When vdr starts supporting
more then 2 APIDs
you can increase them here.
-ca X = Conditional Access number.
If a channel is encrypted, this will be add ca field.
-h This help.
Some Languages:
AFR AMH ARA ARM ASY AZR BEN BER BID BLR BOS BUL BUR CAM CAT CES CHI DAN
DEU DHI ENG ESP EST FAR FRA GAL GEO GLL GUJ HEB HEL HIN HRV IRI ITA JPN
KAN KOR KUR KYR KZK LAT LTH LUX MAG MAK MAL MAN MAR MLY MNT MON NED NOR
ORG ORI PER PHI POL POR PUN ROM RUS SAN SHQ SIN SLO SRP SUO SVE SVK TAM
TEL THA TRK TUR UKR URD UZB VTN WEL NULL
Examples:
getchannels.pl -t t -ul 0 -sat0 0192=0 -sat1 0130=1
This will list a channels.conf for vdr 1.0.x with only TV channels.
getchannels.pl -t t -ul 3 -vc /video -sat0 0192=S19.2E -sat1 0130=S13E
-lo ENG:ORG:NULL
This will list a channels.conf for vdr 1.1.17 with onlt TV channels.
With source field set to S19.2E and S13E.
If there is a channel that has more languages ex. LUX DEU ENG.
ENG will be the first APID and LUX will be the second. By default only
two APIDs will be added.
When using -vc a check with the current channels.conf will be done.
All channels that you have want be listed regarding to the unique fields.
----------------------------------------------------------------------
the makechannels bash script is gone.
::Beppe
Beppe wrote:
> Hi all,
>
> GOOD LUCK
>
> ::Beppe
>
>
>
>
--
Info:
To unsubscribe send a mail to listar@linuxtv.org with "unsubscribe vdr" as subject.
Home |
Main Index |
Thread Index