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

Userrating in MusicOSD #9094

Merged
merged 2 commits into from
Feb 10, 2016
Merged

Userrating in MusicOSD #9094

merged 2 commits into from
Feb 10, 2016

Conversation

razzeee
Copy link
Member

@razzeee razzeee commented Feb 8, 2016

This adds our 1-10 userrating dialogselect as a bindable key. So skins can call "showrating" and it will show up. Should also work for keymaps.

It also changes the onscreen rating display as you change it.
The only drawback is, that as long as the song you just rated is playing, you can reopen the rating dialog and won't see the rating preselected. If it was rated previous to your play, this will work.

I also need a skinner to change redo my skin work, as mine was just for tests.
So any takers? @phil65 @HitcherUK ?

@razzeee razzeee added Type: Improvement non-breaking change which improves existing functionality v17 Krypton Component: Music Component: Skin labels Feb 8, 2016
@phil65
Copy link
Contributor

phil65 commented Feb 9, 2016

wouldnt "setrating" be more appropriate?

@razzeee
Copy link
Member Author

razzeee commented Feb 9, 2016

Well it's also showsubtitles

@phil65
Copy link
Contributor

phil65 commented Feb 9, 2016

"showsubtitles" does something entirely different. ;) It´s basically a toggle for an overlay, so "show..." makes sense there.
i would take increaserating/decreaserating as a reference, in those cases the first part of the word indicates what we actually do with the rating.

@Montellese
Copy link
Member

Since it throws up a dialog to change the rating IMO it should be "setrating" and not "showrating".

@razzeee
Copy link
Member Author

razzeee commented Feb 9, 2016

Well I certainly don't care what name we use, if you guys want setrating, let's do it.

Have you checked the code otherwise @Montellese ?

Pops out our 1-10 rating dialogSelect
Can be called via a button press also: "setrating"
@razzeee
Copy link
Member Author

razzeee commented Feb 9, 2016

Changed to "setrating"

Also got the skin work from @HitcherUK
Thanks!

image

@Tolriq
Copy link
Contributor

Tolriq commented Feb 10, 2016

@razzeee anyway to have also the rating updated when updating song rating for currently playing song with AudioLibrary.SetSongDetails ?

@razzeee
Copy link
Member Author

razzeee commented Feb 10, 2016

I'll have to look into that, have you tried it and it doesn't work?

@Tolriq
Copy link
Contributor

Tolriq commented Feb 10, 2016

Not with this patch, but it's like that since I implemented song ratings in Yatse. I don't see anything in this PR that could change that.

@razzeee
Copy link
Member Author

razzeee commented Feb 10, 2016

Correct, shouldn't be affected by this PR. But feels weird as it updates fine, when I set it from the new popup window. Will need some investigation.

@Tolriq
Copy link
Contributor

Tolriq commented Feb 10, 2016

Well from your code I suppose the JSON part just miss a call to

CGUIMessage msg(GUI_MSG_NOTIFY_ALL, 0, 0, GUI_MSG_UPDATE_ITEM, 0, track);

but it's pure guess.

@razzeee
Copy link
Member Author

razzeee commented Feb 10, 2016

Correct, it's due to that call. But I'm not sure if it's okay to call that from the json methods. @Montellese

@razzeee
Copy link
Member Author

razzeee commented Feb 10, 2016

jenkins build this please

@razzeee razzeee added this to the Krypton 17.0-alpha1 milestone Feb 10, 2016
razzeee added a commit that referenced this pull request Feb 10, 2016
@razzeee razzeee merged commit 036a59f into xbmc:master Feb 10, 2016
@razzeee razzeee deleted the userrating-osd branch February 10, 2016 20:52
@un1versal
Copy link
Contributor

@razzeee
This broke the OSD controls alignment to right hand side, its now off by 3 miles from where it should be

broken

The alignment Of the OSD elements on left hand side should be to the far right EXACTLY under the time stamp.

@@ -258,10 +258,6 @@
<visible>!MusicPlayer.Content(LiveTV)</visible>
<onclick>PlayerControl(Random)</onclick>
</control>
<control type="image" id="2300">

This comment was marked as spam.

This comment was marked as spam.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Music Component: Skin Type: Improvement non-breaking change which improves existing functionality v17 Krypton
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants