-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Text Search timer type and other fixes #4
Conversation
hmmm, too many different things in the same PR. It will be too complex to merge this. |
So before changing anything, please rebase your branch on mine. You will have to resolve some conflicts with my last fixes. Then i will try to cherry pick one by one. Thanks @metaron-uk |
If LastRecorded and NextRecording are both 0 fall back to the default rule.StartTime/rule.EndTime Affects all recording rule TimerTypes (TIMER_TYPE_RECORD_SERIES wasn't previously included)
Also adds additional debug statements to work out what's going on
Fixes conversion of 'Title' to 'Keyword' searches using UI radio button
@janbar There are still broken corners (for some reason duplicate match isn't changing or defaulting properly in Text Search) which I am still investigating, but these can be fixed later. I was thinking about EPG info. I don't understand why it is necessarily to re-associate a rule to EPG info after initial creation:
I believe EPG info should be used during timer creation when it is the master data. After that point, the rule stored in the back end should be regarded as the master data. If this philosophy was adopted, I think the timer types and code in MythScheduleHelper would become much simper and easier to maintain. The user will also be much more likely to be able to use kodi as a frontend alongside mythfrontend and mythweb, which I believe a significant proportion of the userbase (including myself) do. |
Regarding the conflict caused by having 'Title Search' in both the Text Search and other rules, I think we have different opinions. I will move the discussion to the forum as other users (@nickr, @MikeB2013 etc...) will probably also have valid opinions. |
About EPG i pushed change to retrieve EPG info using selected channel and time instead the broadcast id. But never i mix EPG data with random channel or time. So if user select an other channel the EPG data will be retrieved from selected channel: the effect is the same as selecting the show in the guide. In all cases entry.chanid is never used to build rule for an epg-based timer. |
In fact, i never used ProgramID to attach timer or upcoming with an event. The major reason is this data is not filled by most of xmltv filler. So the unified solution is to use channel/starttime and that works perfectly with the addon since we have published it in 2012. Also since i linked the addon with cppmyth, we no more hack the myth database and use exclusively RESTFull service. There never you will find any end-point in the API to find event by ProgramID and for the same good reason. |
@metaron-uk , I cherry picked your fixes, and inspired from your proposal i pushed commits to add 2 new timer type: SEARCH_KEYWORD and SEARCH_PEOPLE. All of them seem to run great and hopefully they would resolve most of your requirements. Let me know. Thanks for your work. |
Please let me know in the thread |
Here is the promised 'TEXT_SEARCH' commit and several other small bugfixes.
As it won't merge automatically, I guess this means we've been at the same part of the code again 馃榾
I've been a bit more structured this time, so each different 'fix' has a separate commit. Feel free to cherry pick if you like the look of something.
I'll take a look at your latest changes and re-base tomorrow.