[solved][epgd/tvsp] error: on line 1: '[' or '{' expected near 'GIF'

  • Hi,

    ich bekomme seit 11.06. beim Verarbeiten der heruntergeladenen tvm Dateien den Fehler

    Code
    Jun 18 17:43:41 vdr epgd[6890]: Downloaded 'ARD' for 2024-06-18 with (44) Bytes, changed since last load.
    Jun 18 17:43:41 vdr epgd[6890]: error: on line 1: '[' or '{' expected near 'GIF'
    ...
    Jun 18 17:51:03 vdr epgd[6890]: EPG Update finished, loaded 400 files (17,188 KB), 37 non-updates skipped, 400 rejected due to format error.
    ...

    Damit phast mein EPG so langsam aus.

    Hat Jemand einen Tip?

    Danke und ciao.

    Michael.

    VDR zwei drei
    • VDR 01 (Server): 2.7.4/6 4 x TT Budget S2-3200
      Plugins: [channellists - control - epgsearch - live - markad - streamdev-server - tvscraper]
    • VDR 02 (Client): 2.6.9 1 x TT Premium S2-6400 (HDMI an TV), 1 x softhddevice (HDMI an TV); TV Grundig 40 VLE 8160 SL; TFT-Display Origen AE 16T
      Plugins: [channellists - control - dvbhddevice - epgsync - graphtftng - mpv - osd2web - osdteletext - skinnopacity - softhddevice - streamdev-client - svdrpservice]

    Edited 2 times, last by nobanzai (June 18, 2024 at 5:56 PM).

  • Hi,

    Problem tritt hier nicht auf, zumindest wird kein Fehler geloggt.

    Code
    Jun 19 07:41:30 web epgd[688]: Downloaded 'ARD' for 2024-07-02 with (75972) Bytes, changed since last load.
    Jun 19 07:41:30 web epgd[688]: [91B blob data]
    ...
    Jun 19 07:42:00 web epgd[688]: EPG Update finished, loaded 396 files (31,558 MB), 370 non-updates skipped, 46 rejected due to format error.

    Allerdings habe ich folgende Fehler seit einer Weile:

    Code
    Jun 19 07:39:50 web epgd[688]: Checking tvm id 1
    Jun 19 07:39:51 web epgd[688]: Downloaded file 'http://www.clickfinder.de/daten/onlinedata/cftv520/tvdaten-premium-1.cftv' with (99220) Bytes
    Jun 19 07:39:51 web epgd[688]: Extracting 'tvdaten-premium-1.cftv'
    Jun 19 07:39:51 web epgd[688]: Creating xml of 1
    Jun 19 07:39:51 web epgd[688]: tmp.xml.gz:24085: parser error : Extra content at the end of the document
    Jun 19 07:39:51 web epgd[688]: ^
    Jun 19 07:39:51 web epgd[688]: Error parsing XML File 'tvdaten-premium-1.cftv'
    Jun 19 07:39:51 web epgd[688]: XSLT transformation for 'tvdaten-premium-1.cftv' failed, ignoring
    Jun 19 07:39:51 web epgd[688]: Processing of 'tvdaten-premium-1.cftv' failed

    Christian

  • Hi,

    Hi,

    Problem tritt hier nicht auf, zumindest wird kein Fehler geloggt.

    also an epgd selber liegt das nicht. Die Version ist vom 26.05., außerdem habe ich eine Installation aus einer Sicherung vom 01.06. raus gezerrt. Auch bei der kommt der Fehler. Und er tritt - wie geschrieben - erst seit 11.06. auf.

    Nachdem du den Fehler nicht hast, kann es auch nicht an den tvm-Daten liegen.

    Was nutzt epgd denn zum Parsen der Files? Kann es evtl. ein Parser-Problem sein?

    Aber auch das wäre komisch, weil der letzte Update des Systems hat gestern, der vorletzte am 30.05. stattgefunden. Dazwischen haben sich auch keine Programme/Libs geändert.

    Danke und ciao.

    Michael.

    VDR zwei drei
    • VDR 01 (Server): 2.7.4/6 4 x TT Budget S2-3200
      Plugins: [channellists - control - epgsearch - live - markad - streamdev-server - tvscraper]
    • VDR 02 (Client): 2.6.9 1 x TT Premium S2-6400 (HDMI an TV), 1 x softhddevice (HDMI an TV); TV Grundig 40 VLE 8160 SL; TFT-Display Origen AE 16T
      Plugins: [channellists - control - dvbhddevice - epgsync - graphtftng - mpv - osd2web - osdteletext - skinnopacity - softhddevice - streamdev-client - svdrpservice]
  • Hm, wenn ich das richtig sehe, kommt das aus tvsp.c:

    Code
                tell(0, "Downloaded '%s' for %s with (%d) Bytes%s", extid.c_str(), date.c_str(), (int) jsonData.length(),
                     inFileRef ? ", changed since last load." : "");

    Und danach wird der Fehler gemeldet.

    Ich habe jetzt mal die Files abspeichern lassen - und die abgespeicherten tvsp-XMLs sind alle leer.

    Danach habe ich das tvsp Plugin mal gelöscht - und der Fehler ist weg.

    Also ist offenbar erstens das im Eimer, was das Plugin runter lädt und zum zweiten dieser Fehler nicht angefangen in tvsp und in EPGD.

    VDR zwei drei
    • VDR 01 (Server): 2.7.4/6 4 x TT Budget S2-3200
      Plugins: [channellists - control - epgsearch - live - markad - streamdev-server - tvscraper]
    • VDR 02 (Client): 2.6.9 1 x TT Premium S2-6400 (HDMI an TV), 1 x softhddevice (HDMI an TV); TV Grundig 40 VLE 8160 SL; TFT-Display Origen AE 16T
      Plugins: [channellists - control - dvbhddevice - epgsync - graphtftng - mpv - osd2web - osdteletext - skinnopacity - softhddevice - streamdev-client - svdrpservice]

    Edited 2 times, last by nobanzai (June 19, 2024 at 2:02 PM).

  • nobanzai June 19, 2024 at 1:54 PM

    Changed the title of the thread from “[epgd] error: on line 1: '[' or '{' expected near 'GIF'” to “[epgd/tvsp] error: on line 1: '[' or '{' expected near 'GIF'”.
  • Keiner ne Idee, warum die Files leer sein könnten? Bzw. hat das keiner außer mir? Oder nutzt keiner EPGD mit tvsp?

    VDR zwei drei
    • VDR 01 (Server): 2.7.4/6 4 x TT Budget S2-3200
      Plugins: [channellists - control - epgsearch - live - markad - streamdev-server - tvscraper]
    • VDR 02 (Client): 2.6.9 1 x TT Premium S2-6400 (HDMI an TV), 1 x softhddevice (HDMI an TV); TV Grundig 40 VLE 8160 SL; TFT-Display Origen AE 16T
      Plugins: [channellists - control - dvbhddevice - epgsync - graphtftng - mpv - osd2web - osdteletext - skinnopacity - softhddevice - streamdev-client - svdrpservice]
  • Ok, ich hab jetzt auch noch das JSON-File abspeichern lassen - das sieht nicht gut aus:

    Code
    GIF89a^A^@^A^@<90>^@^@ÿ^@^@^@^@^@!ù^D^E^P^@^@^@,^@^@^@^@^A^@^A^@^@^B^B^D^A^@;^@

    Sieht aus wie ein GIF, aber warum?

    VDR zwei drei
    • VDR 01 (Server): 2.7.4/6 4 x TT Budget S2-3200
      Plugins: [channellists - control - epgsearch - live - markad - streamdev-server - tvscraper]
    • VDR 02 (Client): 2.6.9 1 x TT Premium S2-6400 (HDMI an TV), 1 x softhddevice (HDMI an TV); TV Grundig 40 VLE 8160 SL; TFT-Display Origen AE 16T
      Plugins: [channellists - control - dvbhddevice - epgsync - graphtftng - mpv - osd2web - osdteletext - skinnopacity - softhddevice - streamdev-client - svdrpservice]
  • Hat das evtl. was damit zu tun:

    Code
    curl https://live.tvspielfilm.de/static/broadcast/list/ARD/2024-06-29
    curl: (60) SSL certificate problem: self signed certificate
    More details here: https://curl.se/docs/sslcerts.html
    
    curl failed to verify the legitimacy of the server and therefore could not
    establish a secure connection to it. To learn more about this situation and
    how to fix it, please visit the web page mentioned above.
    VDR zwei drei
    • VDR 01 (Server): 2.7.4/6 4 x TT Budget S2-3200
      Plugins: [channellists - control - epgsearch - live - markad - streamdev-server - tvscraper]
    • VDR 02 (Client): 2.6.9 1 x TT Premium S2-6400 (HDMI an TV), 1 x softhddevice (HDMI an TV); TV Grundig 40 VLE 8160 SL; TFT-Display Origen AE 16T
      Plugins: [channellists - control - dvbhddevice - epgsync - graphtftng - mpv - osd2web - osdteletext - skinnopacity - softhddevice - streamdev-client - svdrpservice]
  • Code
    curl_easy_setopt(handle, CURLOPT_SSL_VERIFYPEER, 0);

    in lib/curl.c im EPGD Verzeichnis hat jedenfalls nix verbessert 8-<

    VDR zwei drei
    • VDR 01 (Server): 2.7.4/6 4 x TT Budget S2-3200
      Plugins: [channellists - control - epgsearch - live - markad - streamdev-server - tvscraper]
    • VDR 02 (Client): 2.6.9 1 x TT Premium S2-6400 (HDMI an TV), 1 x softhddevice (HDMI an TV); TV Grundig 40 VLE 8160 SL; TFT-Display Origen AE 16T
      Plugins: [channellists - control - dvbhddevice - epgsync - graphtftng - mpv - osd2web - osdteletext - skinnopacity - softhddevice - streamdev-client - svdrpservice]
  • Es liegt aber ganz eindeutig an dem curl (curl-8.0.1-150400.5.44.1.x86_64) auf dieser Maschine. Auf einer anderen Kiste mit neuerer curl-Version (curl-8.8.0-2.1.x86_64) wird immerhin auf der Kommandozeile ein gzipptes JSON-File heruntergeladen:

    Code
    curl -k -H "Accept: application/json" https://live.tvspielfilm.de/static/broadcast/list/ARD/2024-06-29 --output whatever
    VDR zwei drei
    • VDR 01 (Server): 2.7.4/6 4 x TT Budget S2-3200
      Plugins: [channellists - control - epgsearch - live - markad - streamdev-server - tvscraper]
    • VDR 02 (Client): 2.6.9 1 x TT Premium S2-6400 (HDMI an TV), 1 x softhddevice (HDMI an TV); TV Grundig 40 VLE 8160 SL; TFT-Display Origen AE 16T
      Plugins: [channellists - control - dvbhddevice - epgsync - graphtftng - mpv - osd2web - osdteletext - skinnopacity - softhddevice - streamdev-client - svdrpservice]
  • weiss nicht, was bei dir anders, als bei meinem epg, hier klappt es

    Naja, die curl-Version wahrscheinlich.

    VDR zwei drei
    • VDR 01 (Server): 2.7.4/6 4 x TT Budget S2-3200
      Plugins: [channellists - control - epgsearch - live - markad - streamdev-server - tvscraper]
    • VDR 02 (Client): 2.6.9 1 x TT Premium S2-6400 (HDMI an TV), 1 x softhddevice (HDMI an TV); TV Grundig 40 VLE 8160 SL; TFT-Display Origen AE 16T
      Plugins: [channellists - control - dvbhddevice - epgsync - graphtftng - mpv - osd2web - osdteletext - skinnopacity - softhddevice - streamdev-client - svdrpservice]
  • Oder auch nicht.

    Ich habe es jetzt sowohl mit derselben curl-Version auf dem VDR-Server getestet, die auf dem Client funktioniert, als auch den Server von openSUSE Leap 15.5 auf 15.6 aktualisiert und mit deren curl-Version getestet.

    Fazit: Auf diesem Server funktioniert es nicht 8-(

    Aktuell bin ich mit meinem Latein am Ende.

    VDR zwei drei
    • VDR 01 (Server): 2.7.4/6 4 x TT Budget S2-3200
      Plugins: [channellists - control - epgsearch - live - markad - streamdev-server - tvscraper]
    • VDR 02 (Client): 2.6.9 1 x TT Premium S2-6400 (HDMI an TV), 1 x softhddevice (HDMI an TV); TV Grundig 40 VLE 8160 SL; TFT-Display Origen AE 16T
      Plugins: [channellists - control - dvbhddevice - epgsync - graphtftng - mpv - osd2web - osdteletext - skinnopacity - softhddevice - streamdev-client - svdrpservice]
  • Hat das evtl. was damit zu tun:

    Code
    curl https://live.tvspielfilm.de/static/broadcast/list/ARD/2024-06-29
    curl: (60) SSL certificate problem: self signed certificate
    More details here: https://curl.se/docs/sslcerts.html
    
    curl failed to verify the legitimacy of the server and therefore could not
    establish a secure connection to it. To learn more about this situation and
    how to fix it, please visit the web page mentioned above.

    Vielleicht mal die ssl Zertifikate von Curl updaten. Vorher aber dringend ein backup der alten Daten anlegen.

    Display Spoiler
    Display Spoiler
    Display Spoiler
    Display Spoiler
    Display Spoiler
    Display Spoiler
    Display Spoiler
    Display Spoiler
    Display Spoiler
    Display Spoiler
    Display Spoiler
    Display Spoiler
    Display Spoiler
    Display Spoiler
    Display Spoiler


    to spoil
    verderben
    beschädigen
    plündern
    behindern
    berauben
    vereiteln
    rauben
    zerstören [fig.] [verderben, verunstalten]
    vergällen
    verhageln [fig.]

  • Hat curl denn eigenen SSL Zertifikate?

    Ich bin bisher davon ausgegangen, dass es die unter /etc/ssl nutzt - und die sind aktuell, gerade nach dem Update von Leap 15.5 auf 15.6.

    VDR zwei drei
    • VDR 01 (Server): 2.7.4/6 4 x TT Budget S2-3200
      Plugins: [channellists - control - epgsearch - live - markad - streamdev-server - tvscraper]
    • VDR 02 (Client): 2.6.9 1 x TT Premium S2-6400 (HDMI an TV), 1 x softhddevice (HDMI an TV); TV Grundig 40 VLE 8160 SL; TFT-Display Origen AE 16T
      Plugins: [channellists - control - dvbhddevice - epgsync - graphtftng - mpv - osd2web - osdteletext - skinnopacity - softhddevice - streamdev-client - svdrpservice]
  • Curl müsste genau die nutzen.

    Display Spoiler
    Display Spoiler
    Display Spoiler
    Display Spoiler
    Display Spoiler
    Display Spoiler
    Display Spoiler
    Display Spoiler
    Display Spoiler
    Display Spoiler
    Display Spoiler
    Display Spoiler
    Display Spoiler
    Display Spoiler
    Display Spoiler


    to spoil
    verderben
    beschädigen
    plündern
    behindern
    berauben
    vereiteln
    rauben
    zerstören [fig.] [verderben, verunstalten]
    vergällen
    verhageln [fig.]

  • Dann isses das wohl auch nicht - zumal es dieselben sind wie auf dem Client, auf dem es funktioniert.

    Dazu kommt noch, dass "curl -k" die ssl-Prüfung ja komplett überspringt.

    Und damit ist trotzdem das Ergebnis dieses seltsame Mini-GIF.

    VDR zwei drei
    • VDR 01 (Server): 2.7.4/6 4 x TT Budget S2-3200
      Plugins: [channellists - control - epgsearch - live - markad - streamdev-server - tvscraper]
    • VDR 02 (Client): 2.6.9 1 x TT Premium S2-6400 (HDMI an TV), 1 x softhddevice (HDMI an TV); TV Grundig 40 VLE 8160 SL; TFT-Display Origen AE 16T
      Plugins: [channellists - control - dvbhddevice - epgsync - graphtftng - mpv - osd2web - osdteletext - skinnopacity - softhddevice - streamdev-client - svdrpservice]
  • Aber jetzt - siehe unten.

    Das ist meine eigene Firewall mit dem pfBlockerNG. Aus irgendeinem Grund ist d2jtdy150veg81.cloudfront.net in die Sperrliste geraten 8-(

    Kaum hatte ich den gewhitelisted, klappte es wieder.

    Ungeklärt ist noch, warum es auf dem Client geklappt hat. Der fragt den pfSense-DNS direkt ab, der Server fragt erst seinen eigenen named, der dann an den pfSense forwarded.

    Sorry für die Aufregung.

    Code
    host live.tvspielfilm.de
    live.tvspielfilm.de is an alias for d2jtdy150veg81.cloudfront.net.
    d2jtdy150veg81.cloudfront.net has address 172.16.42.42
    VDR zwei drei
    • VDR 01 (Server): 2.7.4/6 4 x TT Budget S2-3200
      Plugins: [channellists - control - epgsearch - live - markad - streamdev-server - tvscraper]
    • VDR 02 (Client): 2.6.9 1 x TT Premium S2-6400 (HDMI an TV), 1 x softhddevice (HDMI an TV); TV Grundig 40 VLE 8160 SL; TFT-Display Origen AE 16T
      Plugins: [channellists - control - dvbhddevice - epgsync - graphtftng - mpv - osd2web - osdteletext - skinnopacity - softhddevice - streamdev-client - svdrpservice]

    Edited once, last by nobanzai (June 30, 2024 at 3:18 PM).

  • nobanzai June 30, 2024 at 3:03 PM

    Changed the title of the thread from “[epgd/tvsp] error: on line 1: '[' or '{' expected near 'GIF'” to “[solved][epgd/tvsp] error: on line 1: '[' or '{' expected near 'GIF'”.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!