Hirdetés

Új hozzászólás Aktív témák

  • tkomlosi

    aktív tag

    válasz tomy_cz #516 üzenetére

    ssh-val belépni libreelec-es boxba és ott megcsinálni az alábbiakat. ennek hatására meg fog jelenni a tvheadend Configuration-->Channel/EPG-->Epg Grabber Modules menüben és csak aktiválni kell és szedni fogja az epg-t, napi 2 alkalommal tölti le 12:04 és 00:04-kor vagy a Re-run internal grabbers gomb megnyomásával azonnal tölti.

    akkor ez másoljátok bele egy fájlba, aminek a neve úgy kezdődik, hogy tv_grab_valami; pl.: tv_grab_szmegma

    majd adjatok neki futási jogot: chmod +x tv_grab_szmegma

    másoljátok be a megfelelő helyre, valahol a /storage rész alatt lesz (én pontosan nem tudom, debian-on /usr/bin)

    #!/bin/sh
    . /etc/profile
    xmltv_file_location=~/guide.xml
    epg_source=http://epg.koditvepg.com/HU/guide.xml.gz
    dflag=
    vflag=
    cflag=
    qflag=

    if [ "$#" -lt "1" ] ; then

    # remove existing previously generated guide files
    for file in ${xmltv_file_location} ${xmltv_file_location}.gz
    do
    if [ -f ${file} ];
    then
    rm -f ${file} 2>/dev/null
    fi
    done

    # download latest compressed guide file from server
    wget -qO ${xmltv_file_location}.gz $epg_source

    # uncompress the guide file
    gzip -d ${xmltv_file_location}.gz

    # put the content to the output
    cat $xmltv_file_location

    # alternatively use the following command line:
    # curl -Ls ${epg_source} | gzip -d

    exit 0
    fi

    # special handling if there are several arguments
    for arg
    do
    delim=""
    case "$arg" in
    #translate --gnu-long-options to -g (short options)
    --description) args="${args}-d ";;
    --version) args="${args}-v ";;
    --capabilities) args="${args}-c ";;
    --quiet) args="${args}-q ";;

    #pass through anything else
    *) [[ "${arg:0:1}" == "-" ]] || delim="\""
    args="${args}${delim}${arg}${delim} ";;
    esac
    done

    # reset the positional parameters to the short options
    eval set -- $args

    while getopts "dvcq" option
    do
    case $option in
    d) dflag=1;;
    v) vflag=1;;
    c) cflag=1;;
    q) qflag=1;;
    \?) printf "unknown option: -%s\n" $OPTARG
    printf "Usage: %s: [--description] [--version] [--capabilities] \n" $(basename $0)
    exit 2
    ;;
    esac >&2
    done

    if [ "$dflag" ]
    then
    printf "koditvepg.com\n"
    fi
    if [ "$vflag" ]
    then
    printf "1.0\n"
    fi
    if [ "$cflag" ]
    then
    printf "baseline\n"
    fi
    if [ "$qflag" ]
    then
    printf ""
    fi

    exit 0

    [ Szerkesztve ]

Új hozzászólás Aktív témák