Hi,
Hi Dischi.
I just made two fixes to the recordserver I want you to prove read
before I check it in. I don't know the code very well.
Sure.
1. I have a favorite at 8:55 p.m. every day. It's a small thing. When I want to record something important from 8 p.m. to let's say 10 p.m., I need to remove the favorite. But I can't, every time I run the tv_grab helper (crontab), it gets re-inserted. That bug can't be fixed in 1.5.1, it would break too much. But I had a better idea: right now we check: if something is running, kill it, start new recording. Now I guess: if something is running and something new comes up, check favorite. If the new one is a favorite and the running is not, the running wins because the user added it, not a script. The favorite will not kill the running, it will be ignored. Comments on that please.
I have some ideas that would fix issue #1 but have been holding off before throwing it out there. :) What we really need to do is _remember_ that we removed the favorite and not try to re-add it when we reschedule the favorites.
I would like to change the way Freevo handles its EPG data. Right now we load a pickled object to view it and this gets recreated every time we run tv_grab. If we need to change a property inside it we need to load it, modify it, and save it again. That takes too much time and is not very good design. There are limitations there that keep us from doing certain things.
I would like to put our program data into a database like sqlite. In this case each program would have some flags like 'record', 'favorite'.
- Something that is a favorite and later manually removed from the recording schedule would be a favorite but have record set to False (just a basic example). This program would not be recorded or interrups something else.
- Having a program database would also allow us to easily import EPG data from multiple sources to 'fill' the databse. I want to get some data from tv_grab_na_dd once per day. Also I want to get EPG data from VDR a few times per day for different channels (VDR is constantly adding and updating its EPG data realtime from the DVB stream). Lastly I'd like to manually add some extra channels (webcam maybe), maybe there is no guide information anywhere for my channels and we can fill it with default information to make manual recording easier.
- By keeping old program data in the database we could remember that we've already recorded a certain episode and we still have the files for it, and don't re-record it in that case.
- It would be possible to have an EPG handler process that comunicates over mbus and accesses the DB. Its interface could behave much like stored procedures.
- Instead of having a single process manage the EPG / program data it could be done on the library level. Sqlite can manage that without conflicts.
- This would eliminate recordserver having to maintain its scheduled recordings, it would just look into the DB.
- This would eliminate having to pass TvProgram objects back and forth through recordserver's XML-RPC interface. Mbus would be even easier to use if we port it.
- Speed. I really think complex EPG / program data handling and manipulation would be faster.
2. The second is a very bad bug: I can't have a favorite at every Sunday (or every other day != ANY), it will not be updated. I use Freevo, not the webserver to set the favorite. After some digging I found the problem: When comparing prog with favorite, the day looks equal on debug, but one time it's an int, the other is a string. int(5) != str(5). You can't imagine how cranky co-workers can when they can't record 'Bernd das Brot' :)
Ack... not good. I have never seen that happen, I hope the bug was introduced later ;).
That said, I think you should apply your patch. I can't test it here because my whole setup is in chaos and I'm wrapping my head around some graphics programming concepts for the directfb output through mevas.
-Rob
-Rob
------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php _______________________________________________ Freevo-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freevo-devel