Hirdetés

2024. április 18., csütörtök

Gyorskeresés

Téma összefoglaló

Téma összefoglaló

  • Utoljára frissítve: 2021-09-05 14:01:59

LOGOUT.hu

2021. Júliusi frissítés - DSM 7.0 infók: Kb. egy hónapja jelentették be a DSM 7.0 RC-t, ami a kiadás előtti utolsó verzió (hivatalos sajtóközlemény). 2021. Június 29-től már telepíthetjük manuálisan a DSM felületén betallózva az új rendszert, de jelenleg ezt még mindenkinek csak saját felelősségére tegye! A figyelmeztetés oka: bizonyos alkalmazásokat (pl. Synology Moments és Photo Station helyett Synology Photos lesz, Cloud Station helyett Synology Drive Suite lesz) kivezetett a Synology a DSM7.0 megjelenésével és helyettük másokat vezet be. A teljes change log itt található.

Összefoglaló kinyitása ▼

Hozzászólások

(#48469) gyugyo79 válasza gyugyo79 (#48460) üzenetére


gyugyo79
addikt

Synology - Docker - WebGrab+Plus
XMLTV - EPG (Plex Kompatibilis)

A Docker könyvtárba csináltam egy WG könyvtárat és abba egy config meg egy data könyvtárat mert az oldalon a Usage -nál írják ezt :
-v :/config \
-v :/data \

A PLEX felhasználónak adtam jogot ezt olvasni

linuxserver/webgrabplus
Töltsük le a dockerben a linuxserver/webgrabplus -t.
Kép hozzáadása :

Indítás

Adunk egy nevet és kiválasztjuk a speciális beállításokat.

Automatikus újraindítás pipa (nem fontos)

Könyvtárak beállítása

Környezet beállítása (kis segítség lentebb a Ctrl+C - Ctrl+V -hez) :
LANG hu_HU.UTF-8
LANGUAGE hu_HU.UTF-8
LC_TIME hu_HU.UTF-8
TZ Europe/Budapest
PUID
PGID


A PUID and PGID -hez be kel lépni a NAS-ra ssh -n és kiadni egy id parancsot.
Az kiírja az admin felhasználóét akivel beléptetek. (vagy id <felhasznalonev> ) és akkor az adott felhasználóról írja ki .. (legyen joga a felhasználónak Docker/WG a könyvtárat használni)
Ha ezekkel megvagyunk alkalmaz.

Tovább

Alkalmaz

Fut is a tároló.
Ha a FS-be megnézzük a Docker/WG/config könyvtárba ott is van a képen látható 2 fájl és a könyvtár és a tulajdonosuk az akit a UID alapján megadtunk.

A Dockerbe - tároló - tárolót kiválasztjuk és részletek vagy dupla katt a tárolón.
Terminál fül és ott létrehozás gomb indít egy bash -t

ide beírjuk a következőket
unlink /etc/localtime -> Enter
ln /usr/share/zoneinfo/CET /etc/localtime -> Enter
echo "Europe/Budapest" > etc/timezone -> Enter
exit -> Enter
Törlés gomb és be lehet az ablakot zárni.
A tárolót újra kell indítani (Művelet ->újraindítás)

Most már ha minden jól ment jó időzítéssel szedi majd a WebGrab+ az epg -t ;)
Most jön a beállítása ami két részből áll. Mind a 2 fájl ott van a Docker>WG>config mappában.
Az egyik az időzítés beállítása, hogy mikor fusson le ez a wg-cron fájlba állítható.
A fájl tartalma:
* * * * * s6-setuidgid abc /bin/bash /defaults/update.sh

┌───────────── perc (0 - 59)
│ ┌───────────── óra (0 - 23)
│ │ ┌───────────── hónap napja (1 - 31)
│ │ │ ┌───────────── hónap (1 - 12)
│ │ │ │ ┌───────────── Hét napja (0 - 6) Hétfő az 1
│ │ │ │ │
│ │ │ │ │
│ │ │ │ │
* * * * * s6-setuidgid abc /bin/bash /defaults/update.sh
-----------------------------------------
minta:
30 5 * * * s6-setuidgid abc /bin/bash /defaults/update.sh
-> minden nap 05:30 -kot indul
15 0 * * 1,3,5 s6-setuidgid abc /bin/bash /defaults/update.sh
-> Hétfőn,Szerdán,Pénteken 00:15 -kor indul

A tároló indításakor olvassa fel ezt. Ezért ha módosítjuk akkor utána újra kell indítani a tárolót.

A másik a WebGrab++.config.xml fájl.
Ennek a tartalmához segítség minta :

<?xml version="1.0"?>
<settings>

<!-- for detailed info about the settings see http://webgrabplus.com/documentation/configuration/webgrabconfigxml -->

<filename>/data/guide.xml</filename>
<mode></mode>
<postprocess grab="y" run="n">mdb</postprocess>
<user-agent>Mozilla/5.0 (Windows NT 6.1; WOW64; rv:29.0) Gecko/20100101 Firefox/29.0</user-agent>
<logging>on</logging>
<retry time-out="5">4</retry>
<timespan>2</timespan>
<update>i</update>
<!--

-->

<channels>
<channel update="i" site="port.hu" site_id="1" xmltv_id="M1">M1</channel>
<channel update="i" site="port.hu" site_id="2" xmltv_id="M2">M2</channel>
<channel update="i" site="port.hu" site_id="361" xmltv_id="M2.HD">M2 HD</channel>
<channel update="i" site="port.hu" site_id="254" xmltv_id="M3">M3</channel>
<channel update="i" site="port.hu" site_id="290" xmltv_id="M4.Sport">M4 Sport</channel>
<channel update="i" site="port.hu" site_id="301" xmltv_id="M5">M5</channel>
<channel update="i" site="port.hu" site_id="6" xmltv_id="DUNA">DUNA</channel>
<channel update="i" site="port.hu" site_id="103" xmltv_id="DUNA.WORLD">DUNA WORLD</channel>
<channel update="i" site="port.hu" site_id="5" xmltv_id="RTL.Klub">RTL Klub</channel>
<channel update="i" site="port.hu" site_id="241" xmltv_id="RTLII">RTLII</channel>
<channel update="i" site="port.hu" site_id="312" xmltv_id="RTL.Spike">RTL Spike</channel>
<channel update="i" site="port.hu" site_id="180" xmltv_id="RTL.Gold">RTL Gold</channel>
<channel update="i" site="port.hu" site_id="178" xmltv_id="RTL+">RTL+</channel>
<channel update="i" site="port.hu" site_id="3" xmltv_id="TV2">TV2</channel>
<channel update="i" site="port.hu" site_id="244" xmltv_id="Super.TV2">Super TV2</channel>
<channel update="i" site="port.hu" site_id="32" xmltv_id="Film+">Film+</channel>
<channel update="i" site="port.hu" site_id="79" xmltv_id="Cool.TV">Cool TV</channel>
<channel update="i" site="port.hu" site_id="89" xmltv_id="Film.Cafe">Film Café</channel>
<channel update="i" site="port.hu" site_id="229" xmltv_id="Mozi+">Mozi+</channel>
<channel update="i" site="port.hu" site_id="257" xmltv_id="Paramount.Channel">Paramount Channel</channel>
<channel update="i" site="port.hu" site_id="139" xmltv_id="AMC">AMC</channel>
<channel update="i" site="port.hu" site_id="233" xmltv_id="TLC">TLC</channel>
<channel update="i" site="port.hu" site_id="215" xmltv_id="Prime">Prime</channel>
<channel update="i" site="port.hu" site_id="325" xmltv_id="Epic.Drama">Epic Drama</channel>
<channel update="i" site="port.hu" site_id="359" xmltv_id="Film4">Film4</channel>
<channel update="i" site="port.hu" site_id="284" xmltv_id="Galaxy4">Galaxy4</channel>
<channel update="i" site="port.hu" site_id="228" xmltv_id="Story4">Story4</channel>
<channel update="i" site="port.hu" site_id="38" xmltv_id="TV4">TV4</channel>
<channel update="i" site="port.hu" site_id="179" xmltv_id="Sorozat+">Sorozat+</channel>
<channel update="i" site="port.hu" site_id="42" xmltv_id="AXN">AXN</channel>
<channel update="i" site="port.hu" site_id="132" xmltv_id="Sony.Max">Sony Max</channel>
<channel update="i" site="port.hu" site_id="138" xmltv_id="Sony.Movie.Channel">Sony Movie Channel</channel>
<channel update="i" site="port.hu" site_id="21" xmltv_id="VIASAT3">VIASAT3</channel>
<channel update="i" site="port.hu" site_id="164" xmltv_id="VIASAT6">VIASAT6</channel>
<channel update="i" site="port.hu" site_id="307" xmltv_id="FEM3">FEM3</channel>
<channel update="i" site="port.hu" site_id="304" xmltv_id="Izaura.TV">IzauraTV</channel>
<channel update="i" site="port.hu" site_id="194" xmltv_id="Comedy.Central">Comedy Central</channel>
<channel update="i" site="port.hu" site_id="316" xmltv_id="Comedy.Central.Family">Comedy Central Family</channel>
<channel update="i" site="port.hu" site_id="311" xmltv_id="Humor+">Humor+</channel>
<channel update="i" site="port.hu" site_id="96" xmltv_id="fix.tv">fix tv</channel>
<channel update="i" site="port.hu" site_id="248" xmltv_id="DIGI.World">DIGI World</channel>
<channel update="i" site="port.hu" site_id="249" xmltv_id="DIGI.Animal.World">DIGI Animal World</channel>
<channel update="i" site="port.hu" site_id="83" xmltv_id="Discovery.Channel">Discovery Channel</channel>
<channel update="i" site="port.hu" site_id="185" xmltv_id="DoQ">DoQ</channel>
<channel update="i" site="port.hu" site_id="182" xmltv_id="HISTORY">HISTORY</channel>
<channel update="i" site="port.hu" site_id="181" xmltv_id="HISTORY.HD">HISTORY HD</channel>
<channel update="i" site="port.hu" site_id="212" xmltv_id="LifeTV">LifeTV</channel>
<channel update="i" site="port.hu" site_id="14" xmltv_id="National.Geographic">National Geographic</channel>
<channel update="i" site="port.hu" site_id="159" xmltv_id="Nat.Geo.HD">Nat Geo HD</channel>
<channel update="i" site="port.hu" site_id="141" xmltv_id="Nat.Geo.Wild">Nat Geo Wild</channel>
<channel update="i" site="port.hu" site_id="294" xmltv_id="Nat.Geo.Wild.HD">Nat Geo Wild HD</channel>
<channel update="i" site="port.hu" site_id="9" xmltv_id="Spektrum">Spektrum</channel>
<channel update="i" site="port.hu" site_id="20" xmltv_id="Spektrum.Home">Spektrum Home</channel>
<channel update="i" site="port.hu" site_id="305" xmltv_id="Spiler.TV">Spiler TV</channel>
<channel update="i" site="port.hu" site_id="362" xmltv_id="Spiler2.TV">Spiler2 TV</channel>
<channel update="i" site="port.hu" site_id="84" xmltv_id="Travel">Travel</channel>
<channel update="i" site="port.hu" site_id="243" xmltv_id="Viasat.Nature.History.HD">Viasat Nature/History HD</channel>
<channel update="i" site="port.hu" site_id="223" xmltv_id="Viasat.Nature">Viasat Nature</channel>
<channel update="i" site="port.hu" site_id="66" xmltv_id="Viasat.History">Viasat History</channel>
<channel update="i" site="port.hu" site_id="65" xmltv_id="Viasat.Explore">Viasat Explore</channel>
<channel update="i" site="port.hu" site_id="211" xmltv_id="DIGI.Sport 1">DIGI Sport 1</channel>
<channel update="i" site="port.hu" site_id="230" xmltv_id="DIGI.Sport 2">DIGI Sport 2</channel>
<channel update="i" site="port.hu" site_id="295" xmltv_id="DIGI.Sport 3">DIGI Sport 3</channel>
<channel update="i" site="port.hu" site_id="94" xmltv_id="Eurosport.1">Eurosport 1</channel>
<channel update="i" site="port.hu" site_id="37" xmltv_id="Eurosport.2">Eurosport 2</channel>
<channel update="i" site="port.hu" site_id="90" xmltv_id="Sport1">Sport1</channel>
<channel update="i" site="port.hu" site_id="44" xmltv_id="Sport2">Sport2</channel>
<channel update="i" site="port.hu" site_id="176" xmltv_id="The.Fishing.and.Hunting">The Fishing & Hunting</channel>
<channel update="i" site="port.hu" site_id="77" xmltv_id="Boomerang">Boomerang</channel>
<channel update="i" site="port.hu" site_id="91" xmltv_id="Cartoon.Network">Cartoon Network</channel>
<channel update="i" site="port.hu" site_id="35" xmltv_id="Disney.Channel">Disney Channel</channel>
<channel update="i" site="port.hu" site_id="97" xmltv_id="Megamax">Megamax</channel>
<channel update="i" site="port.hu" site_id="235" xmltv_id="Music.Channel">Music Channel</channel>
<channel update="i" site="port.hu" site_id="253" xmltv_id="HiT.Music.Channel">H!T Music Channel</channel>
<channel update="i" site="port.hu" site_id="144" xmltv_id="MTV.Hungary">MTV Hungary</channel>
<channel update="i" site="port.hu" site_id="99" xmltv_id="VH1.Europe">VH1 Europe</channel>
<channel update="i" site="port.hu" site_id="8" xmltv_id="HBO">HBO</channel>
<channel offset="0" same_as="HBO" xmltv_id="HBO.HD">HBO HD</channel>
<channel update="i" site="port.hu" site_id="59" xmltv_id="HBO2">HBO2</channel>
<channel update="i" site="port.hu" site_id="143" xmltv_id="HBO3">HBO3</channel>
<channel update="i" site="port.hu" site_id="47" xmltv_id="Cinemax">Cinemax</channel>
<channel update="i" site="port.hu" site_id="60" xmltv_id="Cinemax2">Cinemax2</channel>
<channel update="i" site="port.hu" site_id="226" xmltv_id="Filmbox">Filmbox</channel>
<channel update="i" site="port.hu" site_id="173" xmltv_id="FilmboxExtraHD">FilmboxExtraHD</channel>
<channel update="i" site="port.hu" site_id="177" xmltv_id="FilmboxPremium">FilmboxPremium</channel>
<channel update="i" site="port.hu" site_id="227" xmltv_id="FilmboxFamily">FilmboxFamily</channel>
<channel update="i" site="port.hu" site_id="224" xmltv_id="FilmboxPlus">FilmboxPlus</channel>
<channel update="i" site="port.hu" site_id="95" xmltv_id="FilmMania">Film Mánia</channel>
<!--
<channel update="i" site="port.hu" site_id="port_site_id_szam" xmltv_id="ID_odafigyelve">Csatnev</channel>
-->
</channels>

</settings>

Ha szeretnétek valamit hozzá adni :
Fel kell menni port.hu-ra és megnézni a csatorna site_id -ját (képen a 8)

mint fent látható az HBO sora így néz ki
<channel update="i" site="port.hu" site_id="8" xmltv_id="HBO">HBO</channel>
csinálni kell egy új sort (előző kimásol + bemásol site_id, xmltv_id csatorna név beírása) vagy használjátok amit a végére raktam
<channel update="i" site="port.hu" site_id="port_site_id_szam" xmltv_id="ID_odafigyelve">Csatnev</channel>
Ami fontos, az xmltv_id ba amit megadtok ne legyen space, ékezetes, speciális karakter stb. ha megnézitek a listát látjátok .

Ha ezt beállítottátok akkor beállítotok a teszthez a wg-cron -be egy közeli időpontot újra indítjátok a tárolót és megnézitek, hogy elkezdi e megcsinálni az Docker>WG>data könyvtárba a guide.xml -t
Ha minden jó elkezdi csinálni.
A config mappába létrejön egy robots könyvtár még meg egy hot_cookies.txt és egy WebGrab++.log.txt

Gubanc esetén a WebGrab++.log.txt -be találjátok merre kellene a hibát keresni vagy, hogy ha minden lement akkor mennyi ideig tartott stb ...

Azt hiszem ennyi ha szükségetek van valamihez epg -re akkor csak megadjátok az elérését és kész ...

* szerk a
<channel update="i" site="port.hu" site_id="8" xmltv_id="HBO">HBO</channel>
<channel offset="0" same_as="HBO" xmltv_id="HBO.HD">HBO HD</channel>

ott egy minta, hogy lehet anélkül egy HD adóhoz duplikálni tartalmat, hogy a porton végig küldenénk még egyszer a grabbert. A WebGrab+ dokumentációban van róla bővebben írva.

[ Szerkesztve ]

Copyright © 2000-2024 PROHARDVER Informatikai Kft.