Frage zur neuen EPG- Datenbank

  • I been folowing this topic for a few days now.
    Guys, some feedback from Holland. Its working like a treat ! great work. For me only the BCC/ITV epg is importent and thats going exelent.
    A great thanks and i will give feedback in the coming days.

  • Danke, wobei perfekt ist relativ, ich habe das eben NUR soweit geprogged das man sieht das und wie es geht.


    Aber jetzt stecken schon fast 10h Arbeit drinnen, viel mehr will ich da nicht reinstecken wenn ich erhlich bin, weil jetzt fange ich schon an Müll im Plugin selbst zu entsorgen wie den Channel check, was ich eigentlich gar nicht wollte.


    Und wenn ich noch ein bischen aufräume sind es auch nur 2 Seiten Code und wegen dem wird seit 2 Monaten gejammert :face_with_rolling_eyes:


    EDIT: anbei noch eine etwas aufgeräumte r15, aber jetzt ist langsam Schluss ...

    2 Mal editiert, zuletzt von Lost in Translation ()

  • Reichi


    So schlecht ist die Performance gar nicht auch wenn man es sequentiell in einem Thread macht und nicht ständig den cursor springen lässt und mit dem commit bis zum Schluss wartet wie vorgeschlagen.


    Ich denke ich lasse das mal so wie es ist, wenn man 80000 Events in ein paar Minuten reinladen kann ist das auch nicht viel schlechter als auf meiner alten 500hd, insofern bin ich da recht pragmatisch.


    Bitte nicht falsch verstehen, aber mein Ziel war nicht der perfekte Code sondern einfach einer der (irgendwie) funktioniert und wo sich Andere dann austoben können ohne zu Jammern das es nichts gibt.


    Und Danke für die Anpassungen im enigma2 :grinning_squinting_face:


    Man könnte auch noch alles in ein begin/end transaction packen um es der DB leichter zu machen und nachdem ich sowieso alle tabellen Lösche vor dem wiederbefüllen damit die Logik nicht zu komplex wird könnte man auch das logging der DB abdrehen bis man fertig ist und z.B. alles im Memory machen, aber das findet bitte selber raus ob und was es bringt.


    In der r15 habe ich den code für die epgdb class mal ein bisschen aufgeräumt, wenn es dazu noch Verbesserungsvorschläge gibt ...


    PS: Und manchmal meldet die epg.db das sie gelocked ist und lässt mich nicht connecten - könnte man was ins enigma2 einbauen was alle writes in die epg.db suspendet bis man fertig ist mit dem update und sie wieder loaded?


    LG
    gutemine

  • get database is locked fail to start.


    arneande


    The best is to first to zap to a channel without EPG pressent and the run import. It can also be the case that suspended writes are still coming in and then you just have be patient and wait till all goes quiet.

    DM.One AIO, DM920, DM7080 archiviert DM8000 aus Dezember 2008 und eine DM600.

  • Ich habe jetzt das gleiche Problem wie Jootje. EPG wird zwar korrekt angezeigt aber es ist nicht mehr möglich einen Timer mit Timer setzen zu erstellen. EPG welcher nicht vom plugin kommt ist davon nicht betroffen.

    Dreambox 7080

  • Have you lready trieid to make a timer recording on the epg for the BBC services ?
    It will not do. Am i the only one ?


    Hoi Jootje,


    I had that also and just zap around on BBC/Sky channels and wait till the descriptions are read in then the timer button is also will become pressent. I tried it not yet myself.


    OK, jetzt habe ich es probiert und es ist komisch. Gestern Abend alle Sender hatten eine description und Heute nach dem einlesen der epg.db nicht mehr. Aber wenn ich auf INFO drucke dann habe ich eine description fur jetzt und nächste und kann ich auch de timer-function benutzen.


    Meldung nicht gefunden in EPG Übersicht:


    not found 011a0000 07ee 0002 125d
    not found 011a0000 07ee 0002 125d
    not found 011a0000 07ee 0002 125d
    not found 011a0000 07ee 0002 125d
    not found 011a0000 07ee 0002 125d
    not found 011a0000 07ee 0002 125d
    not found 011a0000 07ee 0002 125d


    Meldung gefunden im EPG Übersicht:


    not found 011a0000 07ee 0002 125d
    not found 011a0000 07ee 0002 125d
    not found 011a0000 07ee 0002 125d
    not found 011a0000 07ee 0002 125d
    not found 011a0000 07ee 0002 125d
    not found 011a0000 07ee 0002 125d
    not found 011a0000 07ee 0002 125d


    Andere meldung:


    [EPGC] abort non avail nownext reading
    [EPGC] abort non avail schedule reading
    [EPGC] abort non avail schedule other reading
    [EPGC] abort non avail viasat reading

    DM.One AIO, DM920, DM7080 archiviert DM8000 aus Dezember 2008 und eine DM600.

    2 Mal editiert, zuletzt von msatter ()

  • msatter Takket fungerer bra og et Godt Nyttår :thumbs_up:


    Es ist die Arbeit vom Gutemine und kann nur schreiben was meine Erfahrungen sind mit seine arbeit. Mit die r15 Version habe ich weniger Glück und und teste verschiedene Optionen.


    Auch eine gute Rutsch in das neue Jahr!

    DM.One AIO, DM920, DM7080 archiviert DM8000 aus Dezember 2008 und eine DM600.

  • Ich habe schon zweimal die Box neu gestartet und die Aktualisierung des EPGs ist jetzt schon fast eine Stunde her. Solange dauert's wohl nicht?


    Ausserdem kommt jetzt die Fehlermeldung "database locked" wenn ich den EPG nochmals aktualisieren will.

  • well, to be honest it was NOT the scope of my work to build a fully working and tested EPG plugin, it was ONLY to show how easy it is to write epg events into the new epg.db to proove that there is no real excuse to have the current plugins NOT adapted to OE2.2 after almost 2 months.


    If you get a locked epg.db or the loaded events are not shown try to reset the epg.db by switching to a channel without EPG data (I use Fashion TV HD for this purpose), then stop enigma2 with systemctl stop enigma2 and then delete the epg.db with rm /etc/enigma2/epg.db and then start enigma2 again with systemctl stop enigma2.


    Then you have to choose enigma2 GUI restart within eniga2 so that a new and empty epg.db is created.


    After this procedure the epg import works most of the time.


    The problem with epg locked ist that the current code is quite brute - it simply deletes ALL events at the beginning and if you are on a channel that sends epg at the same time this will produce updates which make the delete fail as you cann't delete and update at the same time. I'll see if I can change the delete in a way that ONLY events which are coming from an external source are deleted. Actually I could avoid deleting from the description tables at all as the current code checks if a hash already exists ... let's see ...


    If not, then repeat procedure and start in telnet with enigma2 and check the output of the epg import and/or post it to see what happens when it fails.


    If there are problems to programming timers please post the relevant errors of the enigma2 output, because I think this could be something that DMM has to fix within the enigma2 code.


    But I just loaded the XXX EPG and scheduled as timer for one of these events and this worked fine, so it can't be a generic problem.

    2 Mal editiert, zuletzt von Lost in Translation ()

  • Beim "saven" geht auch was falsch im Enigma:


    Dec 27 16:51:49 dm7080 enigma2[170]: [EPGC] 10e0 0418 0001 00c00000 has external data! won't update...
    Dec 27 16:51:53 dm7080 enigma2[170]: [EPGImport] autostart (1) occured at 1419695513.77
    Dec 27 16:51:53 dm7080 enigma2[170]: [EPGImport] Stop
    Dec 27 16:51:54 dm7080 enigma2[170]: [EPGC] remove channel 0x32c3348
    Dec 27 16:51:54 dm7080 enigma2[170]: [EPGC] abort caching events !!
    Dec 27 16:51:54 dm7080 enigma2[170]: [EPGC] db thread stopped
    Dec 27 16:51:54 dm7080 enigma2[170]: [EPGC] data thread finished
    Dec 27 16:51:54 dm7080 enigma2[170]: [EPGC] Saving database from memory
    Dec 27 16:52:40 dm7080 enigma2[170]: [EPGC] Saving failed! Your EPG data will be lost! SORRY!

    DM.One AIO, DM920, DM7080 archiviert DM8000 aus Dezember 2008 und eine DM600.

  • msatter: müsste denn was gespeichertt werden? Wenn externe daten in der db sind, werden die daten des senders nicht mehr verwendet.

    Gruss
    Dre


    Boxen (im Einsatz): DM920, DM900, DMOne
    Developer Project Merlin - we are OpenSource