-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Python3 th0ma7 updates #37
Conversation
When setting xdetails to false it currently does not process the default minimal non-extended categories that can be found in edict['epfilter'] JSON tag such as: <category>family</category> <category>movie</category> <category>news</category> <category>sports</category> <category>talk</category>
When switching xdetails between true or false it ends-up removing all "unecessary" ShowCache files when set to false. This lead to a full re-downloading of the ShowCache when resetting to true. The following patch aims to solve this by generating a showList using a dedicated function genShowList() so that only irrelevant files gets cleaned-up instead of everything. This ensure to keep found ShowCache files between updates that are part of the TV guide.
cast, premere, new, live, finale extra description details is now entirely managed through regular xmltv tags fully compatible with both TVH and Kodi. As such there is no more need to keep a duplicate of the values.
@edit4ever I believe this PR is good for a review as you see fit. Honestly I never been able to get such a good result until I found your EPG grabber! And now with my proposed additions I get all I ever hoped from any TV guide. Hopefully you'll consider merging the various patches proposed part of this PR. I can provide additional info as you see fit further explaining the changes I've done. Ran such as:
I was able to achieve the following results (see attached images) Using the following configuration:
Where movie from guide used as example is as follow in xmltv:
|
@edit4ever while trying to figure the easiest way to integrate your project I ended looking into the option of an embed-python script. This allowed merging From there I used TVH default
What's in theory left to do would be:
Again, trying to be as transparent as possible and documenting the changes I'm proposing. I will happily work things through with you if you are interested in order to get this merged. Otherwise just let me know as I can simply fork & rename on my side and resync as needed. Let me know what you see fit. Again, thnx for you great project, cheers! |
Thank you for these updates - I have been buried in a big project and still have some work to do on it. As soon as I get a chance, I will test and merge these PRs. I appreciate the effort as I don't have much time to support this project lately. |
Idea here is to set a default path being for Raspberry Pi and an alternate when detected running on a Synology NAS where `uname -a` Linux th0ma7-nas 4.4.59+ #25426 SMP PREEMPT \ Mon Dec 14 18:48:50 CST 2020 x86_64 GNU/Linux \ synology_apollolake_918+ Note: The default RasbPi path may need adjusting but I can't test.
@edit4ever this is great! Let me know if I can do anything to help or if you'd like to chat to see what's may need additional adjustments. Note that I can't test the Kodi part and haven't touched it at all. |
Script now allow all regular `baseline` capabilities from the XMLTV standard (http://wiki.xmltv.org/index.php/XmltvCapabilities) As a result, now added the following new options: --quiet --output FILENAME --days X --offset X --config-file FILENAME
Honestly the code base is really good as it allowed me to easily add multiple functionalities. It already achieve above and beyond all of my expectations and much more than any other solution I tried previously. Also, with the latest additions it now makes the grabber to follow xmltv capabilities guidelines: http://wiki.xmltv.org/index.php/XmltvCapabilities I still have a few ideas but not sure how much more mileage I'm willing to do for now. My focus is now more towards getting this merged in a form or another so I can start looking into integrating in the SynoCommunity tvheadend package and update the package repository. Ideas for a later time:
Here is an example of the TVH configuration using extra arguments field: |
I was able to address http connection to TVH with commit da57f1d solving issue #36 It works both anonymously and with username/password:
|
I've completed the integration of the code into the "next" tvheadend package for Synology NAS. Also, I noticed the following error when ran anonymously on 127.0.0.1.
I'm guessing that a better error capturing would be helpful to provide user with appropriate message such as |
merging zap2epg.py and the grabber breaks the kodi addon. If you want to go down this route - then it should be it's own branch or fork. Some of your updates/fixes would be good to integrate into the kodi version - but that merge isn't one of them. Might I suggest you spin it off as a standalone grabber for TVH - my version was really designed for a beginner with a kodi setup and interface for simplicity. I can see value in your version as a standalone - but it really is a different animal because it assumes the user is knowledgeable and working with the command line for setup. |
Refers to issue: edit4ever#34 (comment)
This allow running the script using hts user on usual TVH docker images.
It made so much sense to me to merge them to ease the integration on other platforms and allow supporting greater xmltv capabilities. But sadly I have no way to test it out on RaspberryPi. There must be a qemu/vm that can do the trick to which I could then help out as you see fit.
Fine by me but it was really much hoping not to. To me its just a matter of well describing the howto and that should do it.
Sad of having a duplicate project sharing 99% of the code and now diverting. I would much rather giving you a hand on fixing any remaining issues instead but I totally understand your disinterest of doing so. |
Code is resuming entirely starting from this PR: edit4ever/script.module.zap2epg#37 This is a fork from edit4ever Python3 branch of script.module.zap2epg Reusing same LICENSE as original.
Closing the pull request. |
I'm certainly not against merging - just not sure I have the time t sort it out right now. Also I want to make sure the Kodi addon works as a basic setup with GUI for people who don't work in the linux backend. If you're interested in trying to see how both can work together - the easiest test system is using VMware and running LibreELEC. You can download the latest ova file from the repo below to install as a VM: The biggest challenge I see is that Kodi addons tend to work as python modules - and your merged grabber is no longer seen as a python file. The default.py file is what the zap2epg addon runs when selected in kodi - so it may just be adapting that to work with the merged file. Thanks again for your work - it's definitely worth merging a lot of your tweaks even if we can't sort the merged file idea. |
Now working on the proper branch...
In order for the title & description to be fully compliant in both TVH & Kodi all escape characters needs to be converted to legacy style HTML such as the following:
Other improvements
<subtitles type="teletext" />
can be addedxdetails=false
<length units="minutes">60</length>
tagpremiere
andlast-chance
flagsCast
,Premiere
,New
,Finale
to using xmltv tags instead of extending the description.baseline
Notes
exception = "..."
may be better fitted with an xml config file.