Skip to content
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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PVR] Search window improvements and fixes #12001

Merged
merged 2 commits into from Apr 26, 2017

Conversation

ksooo
Copy link
Member

@ksooo ksooo commented Apr 23, 2017

Two changes related to the PVR search window :

  1. Improvement: While searching epg events display standard "busy" dialog instaead of ugly modal dialog showing "searching..."

  2. Fix: regression introduced with [PVR] Search window: Fix very first search after kodi start not working. #11992. "Find similar" (triggers epg search from other pvr windows) did not work anymore.

The changes have been runtime tested on macOS, latest kodi master

@Jallle19 for code review?

@ksooo ksooo added Type: Fix non-breaking change which fixes an issue Type: Improvement non-breaking change which improves existing functionality Component: PVR v18 Leia labels Apr 23, 2017
@ksooo ksooo added this to the L 18.0-alpha1 milestone Apr 23, 2017
@ksooo ksooo requested a review from Jalle19 April 23, 2017 19:14
@@ -114,7 +117,7 @@ bool CPVREpgSearchFilter::MatchDuration(const CPVREpgInfoTagPtr &tag) const

bool CPVREpgSearchFilter::MatchStartAndEndTimes(const CPVREpgInfoTagPtr &tag) const
{
return (tag->StartAsLocalTime() >= m_startDateTime && tag->EndAsLocalTime() <= m_endDateTime);
return (tag->StartAsLocalTime() >= GetStartDateTime() && tag->EndAsLocalTime() <= GetEndDateTime());

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

@ksooo ksooo changed the title Pvr epgsearch improvements [PVR] Search window improvements and fixes Apr 24, 2017
@ksooo ksooo force-pushed the pvr-epgsearch-improvements branch from dd462ec to fcac632 Compare April 24, 2017 18:40
@ksooo
Copy link
Member Author

ksooo commented Apr 24, 2017

@Jalle19 what do you think about this new approach?

@ksooo
Copy link
Member Author

ksooo commented Apr 25, 2017

Answering my own question, I still do not like this fix. I think I will end up with something more pragmatic. CPVREpgSearchfilter::Reset will check the dates returned by the epg container and in case they are invalid it will init those values to "now" and "now + 10 days". This should solve all problems.

@ksooo ksooo force-pushed the pvr-epgsearch-improvements branch from fcac632 to 5e26512 Compare April 25, 2017 19:00
@ksooo
Copy link
Member Author

ksooo commented Apr 25, 2017

@Jalle19 I guess now I have it. ;-) What's your opinion on this?

@ksooo
Copy link
Member Author

ksooo commented Apr 26, 2017

Jenkins build this please

@ksooo ksooo merged commit 749c61e into xbmc:master Apr 26, 2017
@ksooo ksooo deleted the pvr-epgsearch-improvements branch April 26, 2017 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: PVR Type: Fix non-breaking change which fixes an issue Type: Improvement non-breaking change which improves existing functionality v18 Leia
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants