Thanks Thanks:  14
Likes Likes:  12
Dislikes Dislikes:  0
Results 1 to 15 of 20

Thread: Generator oscam.srvid si oscam.services

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    叛徒 kosar's Avatar
    Join Date
    25 Feb 2013
    Location
    覆盆子灌木
    Posts
    293
    Mentioned
    0 Post(s)
    Rep Power
    0

    Lightbulb

    Pentru oscam.srvid, am luat un script de pe forum care facea cccam.channelinfo si l-am modificat pentru oscam. Este adaptat pentru satelitul thor, dar se poate continua script-ul pentru a se adauga si alti sateliti.
    L-am testat pe ubuntu, face un fisier oscam.srvid perfect functional.

    Scriptul arata astfel:

    Code:
    #!/bin/shwget -O web.list http://en.kingofsat.net/pack-upc.php
    awk -F '>' 'BEGIN {chan = "invalid"}
    /WIDTH="15%"/ {chan = substr($3,1,length($3) - 3)}
    /class="s"/ {sid = substr($2,1,length($2) - 2)
    if (chan == "invalid") next
    printf "0D02,0D97,1815:%x\ | UPC Direkt D02 | %s\ \n", sid , chan
    chan = "invalid"}' web.list > cccam.upc
    wget -O web.list http://en.kingofsat.net/pack-focussat.php
    awk -F '>' 'BEGIN {chan = "invalid"}
    /WIDTH="15%"/ {chan = substr($3,1,length($3) - 3)}
    /class="s"/ {sid = substr($2,1,length($2) - 2)
    if (chan == "invalid") next
    printf "0B02:%x\ | FocusSAT | %s\ \n", sid , chan
    chan = "invalid"}' web.list > cccam.focussat
    wget -O web.list http://en.kingofsat.net/pack-digitv.php
    awk -F '>' 'BEGIN {chan = "invalid"}
    /WIDTH="15%"/ {chan = substr($3,1,length($3) - 3)}
    /class="s"/ {sid = substr($2,1,length($2) - 2)
    if (chan == "invalid") next
    printf "1802,1880:%x\ | Digi Tv | %s\ \n", sid , chan
    chan = "invalid"}' web.list > cccam.digi
    wget -O web.list http://en.kingofsat.net/pack-canaldigitalnordic.php
    awk -F '>' 'BEGIN {chan = "invalid"}
    /WIDTH="15%"/ {chan = substr($3,1,length($3) - 3)}
    /class="s"/ {sid = substr($2,1,length($2) - 2)
    if (chan == "invalid") next
    printf "0B00:%x\ | Telenor | %s\ \n", sid , chan
    chan = "invalid"}' web.list > cccam.telenor
    cat cccam.* > /var/tuxbox/config/oscam.srvid
    rm -f cccam.upc
    rm -f cccam.focussat
    rm -f cccam.digi
    rm -f cccam.telenor
    rm -f web.list
    exit 0
    Inainte de a rula script-ul, trebuie facut folderul tinta,

    /var/tuxbox/config

    si facut sa poata fi scris si modificat

    sudo chmod -R 777 /var/tuxbox/config

    Script-ul la randul lui trebuie sa fie intr-un folder care se poate modifica, pentru a permite crearea de fisiere temporare si stergerea lor la sfarsitul executarii scriptului.

    Fisierul rezultat arata astfel:

    Code:
    1802,1880:3ee | Digi Tv | Fishing & Hunting 1802,1880:3f3 | Digi Tv | FilmBox 
    1802,1880:fb4 | Digi Tv | Digi Sport 1 HD Hungary 
    1802,1880:fbe | Digi Tv | Sport 1 HD Hungary
    Bafta !

    P.S. A trebuit sa scot TELENOR din fisierul rezultat, pentru ca forumul nu mi-a permis sa fac un post mai lung de un anumit numar de caractere, cu telenor inclus se depasea acest numar de caractere, insa script-ul rulat dintr-un mediu linux creaza fisierul complet.
    Last edited by piccolo08; 22-02-14 at 03:30.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •