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

Fix record live tv show [PVR API 1.9.7 regression] #39

Merged
merged 1 commit into from Jul 10, 2016

Conversation

metaron-uk
Copy link

Based on problem reported on the forum
http://forum.kodi.tv/showthread.php?tid=280430&pid=2364805#pid2364805

Tested against my 0.27 system (schedules direct guide data, UK) and seems to work.

  1. recording of currently in progress live TV until end of current show - works
  2. recording of a show in the future on the same channel via the fullscreen video EPG - works

Not tested: 0.28 backend, recording live TV without any guide data.

@metaron-uk
Copy link
Author

Slightly modified to fix starting a recording of a channel which doesn't have valid EPG data. (You get the default recording duration)

@janbar
Copy link
Owner

janbar commented Jun 26, 2016

Thanks Andrew. Seems ok. I will merge it in tomorrow.

{
Myth::ProgramPtr program = m_liveStream->GetPlayedProgram();
if (timer.iClientChannelUid == FindPVRChannelUid(program->channel.chanId))
if (timer.iClientChannelUid == FindPVRChannelUid(program->channel.chanId) &&
timer.startTime <= program->startTime)
Copy link
Owner

@janbar janbar Jun 30, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is strictly less than program->endTime more suitable ?
i.e timer.startTime < program->endTime

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually no it won't the way you suggest. We need a 100% epg match, or the
user won't get what they expect.
Andrew

Sent with AquaMail for Android
http://www.aqua-mail.com

On June 30, 2016 5:17:47 PM Jean-Luc Barrière notifications@github.com wrote:

{
Myth::ProgramPtr program = m_liveStream->GetPlayedProgram();

  • if (timer.iClientChannelUid ==
    FindPVRChannelUid(program->channel.chanId))
  • if (timer.iClientChannelUid ==
    FindPVRChannelUid(program->channel.chanId) &&
  •    timer.startTime <= program->startTime)
    

Is endTime more suitable ?


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub:
https://github.com/janbar/pvr.mythtv/pull/39/files/0c71e0f8e71ace31656d19b9174ec374241dcab1#r69163441

@janbar
Copy link
Owner

janbar commented Jul 8, 2016

Okay. I will test it this week-end. Thanks Andrew.

@janbar
Copy link
Owner

janbar commented Jul 10, 2016

Okay I anderstood the need: You want keep liveTV recording when pressing "record" of the current show in the EPG screen. +1

@janbar janbar merged commit f318640 into janbar:doityourself Jul 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants