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] PVR Addon API 4.0.0 #8005
Conversation
Silence means agreement? ;-) |
Proposed code changes are good with me... I tend to agree with @metaron-uk point about the comment |
I've a working prototype of pvr.mythtv working against your pvr-api-4-0-0 branch. |
@metaron-uk Mind taking a look at https://github.com/ksooo/pvr.mythtv/tree/pvr-api-4-0-0 |
@@ -51,7 +51,7 @@ CEpgInfoTag::CEpgInfoTag(void) : | |||
m_iSeriesNumber(0), | |||
m_iEpisodeNumber(0), | |||
m_iEpisodePart(0), | |||
m_iUniqueBroadcastID(-1), | |||
m_iUniqueBroadcastID(0), |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
@ksooo, I know you didn't want other things in this change, but I've got frustrated that strEpisodeName isn't part of the PVR_TIMER structure. I dropped it from the 3.0.0 API changes, but now I've changed my mind. As you're updating the API again, could this be added now? Reasons
The mythtv client also tries to squeeze season/episode number into the title field as well, so I'd suggest adding these at the same time (although maybe not include them in the skin yet) (Happy to do a commit for this and the associated confluence change for you to cherry-pick if you agree) Will take a look at https://github.com/ksooo/pvr.mythtv/tree/pvr-api-4-0-0 |
@ksooo, good for me. |
@janbar - then why is it currently squeezed into strTitle in the client (yes I know I did the PR for that...) Forget about season and episode. It's only the close relationship between title and episode title which makes it important to have strEpisodeName here as well imo. |
@metaron-uk , i would agree with a new field named "strSubtitle" which is more generic and could be used by other client to show various info. But episode name is too restricted and as i said above it doesn't relate the timer itself (as a timer class). |
@janbar: The API names are a bit messed up IMHO. @ksooo - what do you think. Should we use Jarvis as an opportunity to sanitize the API variable names (not in this PR!), or do we live with the current variables names for legacy reasons.... |
Although in principal a good idea, we're running out of time for Jarvis, I'm afraid. Merge window for alpha 3 closes Sept 20 and I don't think that there will be another alpha. And in beta phase, API changes are a no go. |
Ive run tested this and it functions as expected. Thanks for making this change and responding to the feedback in the forum about the previous "preserve children timers" idea not making sense :) A comment on the latest change: "You are about to delete a timer that was scheduled by a repeating timer. Do you also want to delete the repeating timer and all timers it has scheduled? Timer Name" This not only causes scrolling in the dialog, but the initial state of the dialog already has the text scrolled to the end (so you cant read the start of the sentence for a while). Personally I still think this question is redundant. Due to the fantatsic hierarchical display of parent/child timers in Kodi now, I think that if a user is deleting a single timer, then just delete the one timer... there is no need to ask them if they wanted to delete the parent timer. If they want to delete the parent timer, they would just go back out one level and then select delete on the parent. If you feel the question MUST be asked, perhaps we need more succint wording as that length of wording in a dialog breaks user experience, IMO? PS I have a pvr.wmc PR ready to go for API 4.0, so you wont need to worry about pvr.wmc: kodi-pvr/pvr.wmc#23 |
I agree the message is a bit long. What about making the title of the dialog 'Timer Name' and removing it from the end of the message. That way the message fits in the box.
I disagree, there are plenty of places a user can delete a timer from which are not so obvious (e.g. EPG view, search results, timers list when not grouped) |
Yep. Will try to find better (shorter) wording.
Not a good idea, imo as timer name can be pretty long and scrolling dialog title is really very ugly.
Full ack to what metaron-uk said. |
122c9ba
to
b5b7f1a
Compare
#. Message in a dialog when a user wants to delete a repeating timer | ||
#: xbmc/pvr/windows/GUIWindowPVRBase.cpp | ||
msgctxt "#845" | ||
msgid "Are you sure you want to delete this repeating timer, including all timers it has scheduled?" |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
df089eb
to
9a19553
Compare
…epeating timer when deleting the repeating timer by the option to delete the repeating timer that scheduled a timer about to delete, if exists.
…X instead. Solve related signed/unsigned problems.
…ntroduce constant PVR_TIMER_NO_EPG_UID.
…tead. Solve related signed/unsigned problems.
9a19553
to
44b1998
Compare
jenkins build this please |
Jenkins build error on LINUX-64 is not related to this PR. |
All review comments are addressed, all addons are updated. Ready to go... |
This PR contains cleanup changes for the PVR Addon API, including the related Kodi core changes
Remove parameter bDeleteScheduled from function DeleteTimer
Introduce constant PVR_TIMER_NO_CLIENT_INDEX
Changed type of PVR_TIMER.iEpgUid to unsigned int. Introduce constant PVR_TIMER_NO_EPG_UID
Please note that this PR does not solve all "magic number" problems we have with the current API and that it is not my attention to achieve this with this PR. So, please, refrain from pulling in other problems, not related to PVR_TIMER.iClientIndex and PVR_TIMER.iEpgUid, into this PR. ;-)
I will open PRs for bumping all PVR addons to version 4.0.0, including the necessary code changes, the next days.
@metaron-uk, @ryangribble, @janbar, for your information, feedback welcome.
@Jalle19 mind doing the review?