tvgrabbers / tvgrabnlpy

Deze versie is deprecated zie: tvgrabpyAPI
https://github.com/tvgrabbers/tvgrabpyAPI
GNU General Public License v2.0
27 stars 8 forks source link

Update to tv_grab_nl (to reduce cpu-load and more) #36

Closed fransg closed 8 years ago

fransg commented 8 years ago

Hi Hika, Here's my second contribution. I tested this on my server and my sister's and it works well on both, i.e. same or better performance, whilst reducing cpu-load quite a bit. I made several updates and there is more to come. Highlights:

To be done:

Hope this helps!

Best regards, Frans

hikavdh commented 8 years ago

I have to look at your threading changes further and thanks for the spelling corrections.:-) I'm thinking of replacing the ready flags with event objects with a 5 second timeout on the wait to look around. But about the other things.

hikavdh commented 8 years ago

Oh, and one other thing. I don't want to make unneeded changes to the master branch. Improvements should go to tvgrab22 branch. As said logging and configuration have been updated there, but it's still work in progress. Hika

hikavdh commented 8 years ago

I copied part of your changes over. I left out the non loading of inactive channels and the log_file parameter. The later should go into the 22 branch. I suggest using one of the higher unused log_levels (1024) for debug messages. That way they can without problem stay in place. See https://github.com/tvgrabbers/tvgrabnlpy/releases/tag/beta-2.1.10-p20150808 And see for new Events as signal for the wait loops. https://github.com/tvgrabbers/tvgrabnlpy/releases/tag/beta-2.1.10-p20150809

Hika