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
Commercial skipping notifications and toggle action #9399
Conversation
@@ -177,6 +177,11 @@ bool CGUIWindowFullScreen::OnAction(const CAction &action) | |||
} | |||
break; | |||
|
|||
case ACTION_TOGGLE_COMMSKIP: |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
@FernetMenta this was requested to be in advanced settings by @ksooo, @MartijnKaijser, and you in #7330 because everyone was worried it would be a support problem if it showed up in a more prominent place. |
@b-pass I can't find any reference that I requested this to be in advancedsettings. I only found a single post of myself in this thread:
what sources do require this feature? |
From @ksooo
Sounds to me like the point was to keep it out of the GUI entirely. It's an EDL feature, which is just sprinkled throughout VideoPlayer and already itself has a few settings in Advanced settings. In #7330 there's some discussion of a "support nightmare" if the setting is left in the GUI anywhere. |
aa6b7ab
to
f52cb05
Compare
Why don't you disable the function by default and have users enable it with the toggle on demand? THat would eliminate the need for a setting. |
bd4e551
to
2055023
Compare
@FernetMenta That's fair. The setting was to allow people to turn it off. But since it can't be turned off today either, there's not really a loss in functionality. I've made the changes you requested. |
you still have ToggleCommSkip in the interface. This is not required because VideoPlayer listens to action event. |
@@ -4391,6 +4418,9 @@ bool CVideoPlayer::OnAction(const CAction &action) | |||
} | |||
else | |||
break; | |||
case ACTION_TOGGLE_COMMSKIP: | |||
ToggleCommSkip(); |
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.
2055023
to
1b2c8e0
Compare
@BrettEBowman I've done as you said, and EDL will continue to be enabled by default, users can now use the action to toggle it off. The setting which I've now removed was to allow it to be disabled by default. @FernetMenta I've removed the unnecessary 2 line function now as well. |
jenkins build this please |
Commercial skipping notifications and toggle action
thanks! |
To anyone who wound up here from this thread and is looking to disable the "Commercial" popup- it's possible to do in your skin files without needing to build kodi from source. This notification uses the
In that file, you can include a <?xml version="1.0" encoding="UTF-8"?>
<window>
...
<controls>
<visible>!String.Contains(Control.GetLabel(400), "Commercial") + !String.Contains(Control.GetLabel(401), "Commercial") + !String.Contains(Control.GetLabel(402), "Commercial")</visible>
...
</controls>
</window> Restart kodi and you should find that the pop up is gone. YMMV depending upon your skin |
Amazing! Nice work 😄 - @enen92 just out of curiosity, does that setting in the new build also suppress the progress bar from becoming visible? |
No, unfortunately not. That's sort of on my todo list but we still lack any way of checking from the skin engine if we "come" from an edl mark after a seek. |
If you don't want to see the progress bar or the notification then you should be setting your EDL lists to "Cut" type instead of "CommBreak" type. That's the whole purpose of "Cut" type -- to make it seem like the skipped section was not there at all (skip as smoothly as possible, etc). How exactly you do that depends on the source and/or file format of the EDL. |
Cut effectively removes the block from the timeline, you're not allowed to jump back into the removed section if for some reason the software marks the advertisement on an incorrect position (quite common). Also, internally the player does a seek anyway so the seekbar will also display.. |
Oh snap, that's a totally reasonable workaround 💪 thank you! For anyone else using embuary on v19 the necessary line to change is here: https://github.com/sualfred/skin.embuary/blob/master/xml/Includes.xml#L90 |
Am really interested in the TOGGLE_COMMSKIP function but can't I can't find how to use it. Could anybody here please explain how it works? |
Yes, you can reference it in a keymap xml file. For example, to have the button named "green" do this action while watching video:
|
Didn't expect the original creator of this pull request to answer after so many years :) . Thanks for the answer but it's not exactly what I want. I would want it to by default not skip the commercials and having to always press a remote on to toggle auto skip off is quite annoying. In an ideal scenario I would want a popup along the lines of "Commercial detected! Do you want to skip?" but simply disabling auto skip would work as well. Looking through your pull requests it seems like there once was a way to disable auto skip in the advancedsettings.xml so it didn't skip by default (you even mentioned it in the first post of this pr). But I cant find any mention of it now. Did you or someone else remove the ability to set the default behavior? |
At the time, they did not want to add things to |
Well that's a shame. Seems like quite a basic setting and can't really understand why at least not add it to advancedsettings.xml |
An implementation to address this feature request from the forums: http://forum.kodi.tv/showthread.php?tid=208206
This adds a new action, TOGGLE_COMMSKIP which turns Commercial Skipping on/off for the current recording only (next record starts back at the default setting from advancedsettings.xml).
Also adds an option to display notifications of commercials and their lengths.
This is a resubmit of #7330 and #7520.