Seite 11 von 31

Re: Pluto TV

Verfasst: Di 12. Okt 2021, 08:40
von annie
Wir reden hier von HD2 Boxen (Tank, ZEE² usw)

Re: Pluto TV

Verfasst: Di 12. Okt 2021, 09:11
von Gorcon
Eine Zee2 kann ich auch nochmal ausprobieren.

Nachtrag:
Kann das Problem mit der Uhrzeit beim EPG nachvollziehen. (bei RakutenTV genauso)

Re: Pluto TV

Verfasst: Di 12. Okt 2021, 11:10
von TangoCash
Dann ist es wie ich geschrieben habe, timezone geht nicht bei ulibc.
Nochn Versuch:

Code: Alles auswählen

		struct tm starttime, stoptime;
#ifdef BOXMODEL_CS_HD2
		char sign;
		int  offset_h;
		int  offset_m;
		sscanf(start, "%04d%02d%02d%02d%02d%02d %c%02d%02d", &(starttime.tm_year), &(starttime.tm_mon), &(starttime.tm_mday), &(starttime.tm_hour), &(starttime.tm_min), &(starttime.tm_sec), &sign, &offset_h, &offset_m);
		starttime.tm_year -= 1900;
		starttime.tm_mon -= 1;
		starttime.tm_isdst = -1;
		starttime.tm_gmtoff = (sign == '-' ? -1: 1) * (offset_h*60*60+offset_m*60);
		sscanf(stop, "%04d%02d%02d%02d%02d%02d %c%02d%02d", &(stoptime.tm_year), &(stoptime.tm_mon), &(stoptime.tm_mday), &(stoptime.tm_hour), &(stoptime.tm_min), &(stoptime.tm_sec), &sign, &offset_h, &offset_m);
		stoptime.tm_year -= 1900;
		stoptime.tm_mon -= 1;
		stoptime.tm_isdst = -1;
		stoptime.tm_gmtoff = (sign == '-' ? -1: 1) * (offset_h*60*60+offset_m*60);
#else
		strptime(start, "%Y%m%d%H%M%S %z", &starttime);
		strptime(stop, "%Y%m%d%H%M%S %z", &stoptime);
#endif
		time_t start_time = mktime(&starttime) + starttime.tm_gmtoff;
		time_t duration = mktime(&stoptime) + stoptime.tm_gmtoff - start_time;

Re: Pluto TV

Verfasst: Di 12. Okt 2021, 11:12
von annie
sag mir mal in welcher Datei das geändert werden muß, dann compilier ich mir das mal.

Re: Pluto TV

Verfasst: Di 12. Okt 2021, 11:13
von TangoCash
Das ist die stelle
https://github.com/neutrino-images/ni-n ... l.cpp#L476

Oder als patch:
202110121114-neutrino-tangos.patch
(1.46 KiB) 74-mal heruntergeladen

Re: Pluto TV

Verfasst: Di 12. Okt 2021, 12:12
von annie
Werde nochmal neu compilieren, im Patch ist ein Schreibfehler fehlt ein "T"

#ifdef BOXMODEL_CST_HD2

Re: Pluto TV

Verfasst: Di 12. Okt 2021, 13:12
von annie
Auf der Tank geht nun bei Pluto EPG

Die Zeiten sind aber noch falsch

Ich zeige das gleich, muß mal den Müll löschen und nur pluto.xml drin lassen.

Denn die Box lässt sich sonst nur in Zeitlupe bedienen
99.png
111.png

Re: Pluto TV

Verfasst: Di 12. Okt 2021, 13:16
von TangoCash
Gehen die Zeiten vor oder nach? Da muss man bestimmt den unterschied von UTC zur lokalzeit "von Hand" berechnen. Normalerweise macht da mktime selbst....

Aber ich glaube die Tank hat für den EPG usw nicht genug RAM, deswegen so träge - da sind wir wieder beim Dampf :stuck_out_tongue_winking_eye:

Re: Pluto TV

Verfasst: Di 12. Okt 2021, 13:27
von annie
die Zeiten 00:59 und 00:38 sind bei allen Plutosendern gleich

Bin nicht sicher ob der EPG passt

Der EPG passt nicht zur Sendung, Focus TV müsste laut EPG was von reich und arm laufen, läuft aber was mit Hunden
222.png

Re: Pluto TV

Verfasst: Di 12. Okt 2021, 13:31
von TangoCash
Auf Movies sollte "Einfach unwiderstehlich" laufen, und deine Anzeige wäre Phantoms eigentlich ab 22:34

Re: Pluto TV

Verfasst: Di 12. Okt 2021, 13:33
von annie
Im Patch das Jahr 1900 wie kommt man da drauf ?

+ starttime.tm_year -= 1900;

Re: Pluto TV

Verfasst: Di 12. Okt 2021, 13:37
von TangoCash
Das tm struct beginnt ab 1900 zu zählen, d.h. 2021 wäre im struct dann 121...

Code: Alles auswählen

<programme channel="5f3bd0e63f793300071574cd" start="20211012103900 +0000" stop="20211012113500 +0000">
    <title>Focus TV - Freizeit: Nicht ohne meinen Hund - wenn Vierbeiner das Leben bestimmen</title>
Zeit ist in UTC=GMT, wir sind GMT+1

Also macht da mktime da noch blödsinn - blöde ulibc

The uClibc time code requires at least the timezone
abbreviation _and_ the offset. Since it doesn't use the zoneinfo data,
it has no way of knowing what offset to use.

D.H. da muss zwingend die TZ Umgebungsvariable vor aufruf von mktime gesetzt werden.

mal testen:
202110121114-neutrino-tangos.patch
(1.48 KiB) 82-mal heruntergeladen

Re: Pluto TV

Verfasst: Di 12. Okt 2021, 13:50
von annie
ich compiliere
EPG scheint zu stimmen, die Zeit ist aber noch falsch
Uhrzeit 11:11 ??? Das ist jetzt auch bei Sat und Kabelsender falsch :)

Aber das ist der richtige Weg...
11.png
22.png

Re: Pluto TV

Verfasst: Di 12. Okt 2021, 14:36
von annie
+ setenv("TZ","GMT+1",1);

verändert die Uhrzeit der Box !!!

Re: Pluto TV

Verfasst: Di 12. Okt 2021, 14:42
von TangoCash
Dann muss nun noch das "Zeit" Setzen für die HD2 abgeändert werden...
The tzset() function shall use the value of the environment variable TZ to set time conversion information used by ctime() , localtime() , mktime() , and strftime(). If TZ is absent from the environment, implementation-defined default timezone information shall be used.
Irgendwas stimmt da noch nicht mit der timezone generell bei der HD2.
Eigentlich sollte die TZ Umgebungvaraiable schon gesetzt sein bevor neutrino startet, ist sie aber scheinbar nicht, sonst würde sich die Uhrzeit nicht verändern.

Erst sollte das mal stimmen, dann kann man mit dem EPG weiter machen.

Re: Pluto TV

Verfasst: Di 12. Okt 2021, 16:30
von annie
anstatt +1 hab ich -2 genommen, dann stimmt es für diese Gegend :)
ssscreenshot.png

Re: Pluto TV

Verfasst: Di 12. Okt 2021, 17:54
von TangoCash
Bis die Uhr umgestellt wird, dann nicht mehr 🤪

Re: Pluto TV

Verfasst: Di 12. Okt 2021, 18:12
von vanhofen
Der Stand hier ist der, dass der Patch von Tango rein kann, weil er prinzipiell funktioniert, ich aber wegen TZ nochmal ran muss. Lese ich das richtig?

Re: Pluto TV

Verfasst: Di 12. Okt 2021, 18:48
von TangoCash
Im Grunde ja, du musst schauen , das TZ richtig gesetzt vor neutrino start, dann kann der patch ohne die setenv geschichte rein.

Re: Pluto TV

Verfasst: Mi 13. Okt 2021, 08:28
von annie
Das nightly von heute wird den EPG fixen für die HD2 Boxen.
Vielen Dank an Tango und Vanhofen.
Ich selber habe heute Morgen selber compiliert, geflasht und ausprobiert.

Uhrzeit der Sendungen stimmen, wenn die EPG Datei von Pluto eingelesen ist.

Ich wäre dafür, "zuverlässig" :) nicht funktionierende Curlversuche für die Logo's rauszunehmen oder abschaltbar zu machen:

Code: Alles auswählen

[neutrino] curl error: The requested URL returned error: 404 (https://images.pluto.tv/channels/5e7b855972c36600076b7ddd/logo.png)
[neutrino] curl error: The requested URL returned error: 404 (https://images.pluto.tv/channels/5e7b8923fc302800079e4f4f/logo.png)
[neutrino] curl error: The requested URL returned error: 404 (https://images.pluto.tv/channels/5efb54eaa5714d000744b6a0/logo.png)
[neutrino] curl error: The requested URL returned error: 404 (https://images.pluto.tv/channels/5f3d2b57d6c60800074cb305/logo.png)
[neutrino] curl error: The requested URL returned error: 404 (https://images.pluto.tv/channels/5f3d2bcd0fadc30007b4863b/logo.png)
[neutrino] curl error: The requested URL returned error: 404 (https://images.pluto.tv/channels/5f3d2c4e501f18000788d8e9/logo.png)
[neutrino] curl error: The requested URL returned error: 404 (https://images.pluto.tv/channels/5f3d2cb9f5b291000773807a/logo.png)
[neutrino] curl error: The requested URL returned error: 404 (https://images.pluto.tv/channels/6041222727dfcf000786e954/logo.png)
[neutrino] curl error: The requested URL returned error: 404 (https://images.pluto.tv/channels/604123023ece0b0007a43049/logo.png)
[neutrino] curl error: The requested URL returned error: 404 (https://images.pluto.tv/channels/6041236542d13a0007c600f8/logo.png)

aa.png