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

Parse subscriptionError also for dvr entries #122

Merged
merged 1 commit into from
Oct 22, 2015

Conversation

Glenn-1990
Copy link
Contributor

Currently when an active recording isn't running because there is no free adapter available,
kodi will still show the timer as 'recording' (status field in timers window).

Now, for active recordings we can parse 'subscriptionError' as each active recording will have an active subscription. If 'subscriptionError' returns 'noFreeAdapter' we flag the timer state to 'PVR_TIMER_STATE_CONFLICT_NOK' and kodi will show 'conflict' as status in the timers window now.

No free adapter is practically the same as a conflict in my eyes..

Additionally we could also parse the other errors like scrambled, no signal etc and show them as error in the kodi GUI, what do you think?
https://github.com/xbmc/xbmc/blob/master/xbmc/addons/include/xbmc_pvr_types.h#L192

@Jalle19
Copy link
Contributor

Jalle19 commented Oct 20, 2015

Sounds good.

Additionally we could also parse the other errors like scrambled, no signal etc and show them as error in the kodi GUI, what do you think?

I don't think it makes sense to attempt to map any other errors to a PVR_TIMER_STATE.

@Jalle19
Copy link
Contributor

Jalle19 commented Oct 21, 2015

@ksooo good to go?

@ksooo
Copy link
Member

ksooo commented Oct 21, 2015

@Jalle19 shove it in.

Jalle19 added a commit that referenced this pull request Oct 22, 2015
Parse subscriptionError also for dvr entries
@Jalle19 Jalle19 merged commit a7fa1d6 into kodi-pvr:master Oct 22, 2015
@Glenn-1990 Glenn-1990 deleted the dvr_conflict branch January 22, 2017 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants