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

Implementation of credits skip delay (Issue #221) #235

Closed
wants to merge 7 commits into from

Conversation

CasuallyFilthy
Copy link
Contributor

@CasuallyFilthy CasuallyFilthy commented Aug 1, 2024

I am very novice at writing code, but was able to implement my suggestion by looking at what was done for the user defined intro playback duration function. I compiled my change and tested it on my server and was able to adjust the delay in skipping credits through the settings UI. I set the delay value to 2, 5, 15, and 20 for testing purposes and all functioned correctly.

I also did not realize that the comment for the commit on my branch would be the commit comment on my merge request so I added a comment to each commit explaining what I did.

@jumoog jumoog requested a review from rlauuzo August 1, 2024 10:57
ConfusedPolarBear.Plugin.IntroSkipper/AutoSkipCredits.cs Outdated Show resolved Hide resolved
@@ -156,7 +156,7 @@ public ActionResult<TimeStamps> GetTimestamps([FromRoute] Guid id)
var segment = new Intro(timestamp);

var config = Plugin.Instance.Configuration;
segment.IntroEnd -= config.SecondsOfIntroToPlay;
segment.IntroEnd -= mode == AnalysisMode.Introduction ? config.SecondsOfIntroToPlay : config.SecondsOfCreditsToPlay;
Copy link
Collaborator

Choose a reason for hiding this comment

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

@jumoog may want this to check that it's the credits for adding recap stuff.

@rlauuzo
Copy link
Collaborator

rlauuzo commented Aug 1, 2024

This isn't directly related to the commit, but I find it odd that SecondsOfIntroToPlay and SecondsOfCreditsToPlay adjust the skip start time for autoskip while adjusting the skip end time for the API.

@CasuallyFilthy
Copy link
Contributor Author

Do y'all need me to make any changes to my commit? Like changing the default value to 0?

@jumoog
Copy link
Owner

jumoog commented Aug 1, 2024

This isn't directly related to the commit, but I find it odd that SecondsOfIntroToPlay and SecondsOfCreditsToPlay adjust the skip start time for autoskip while adjusting the skip end time for the API.

yes it seems strange

@jumoog
Copy link
Owner

jumoog commented Aug 1, 2024

This isn't directly related to the commit, but I find it odd that SecondsOfIntroToPlay and SecondsOfCreditsToPlay adjust the skip start time for autoskip while adjusting the skip end time for the API.

it happend in this commit:
8a9b630

@jumoog
Copy link
Owner

jumoog commented Aug 1, 2024

Do y'all need me to make any changes to my commit? Like changing the default value to
0?

We need to have an internal discussion about how to deal with the problems that we have found and how to move forward here.

@AbandonedCart
Copy link
Collaborator

I’m just pointing out that as a user, if I went from skipping the entire credit sequence to suddenly playing part of it, I would assume the credit detection was flawed. As a user impacted by the issue this references, it will likely seem that detection was “fixed” and nothing more. It won’t be clear that this is a new option. My assumption was group A will be larger than group B (who will also likely be following this discussion and know they need to set an option).

Do with that what you want. The final outcome won’t impact me much because I was present to know about the new setting.

@CasuallyFilthy
Copy link
Contributor Author

I’m just pointing out that as a user, if I went from skipping the entire credit sequence to suddenly playing part of it, I would assume the credit detection was flawed. As a user impacted by the issue this references, it will likely seem that detection was “fixed” and nothing more. It won’t be clear that this is a new option. My assumption was group A will be larger than group B (who will also likely be following this discussion and know they need to set an option).

Do with that what you want. The final outcome won’t impact me much because I was present to know about the new setting.

That's a really good point, the default value should be 0 seconds to prevent confusion

@AbandonedCart
Copy link
Collaborator

And to be fair, it's a great first submission.

@jumoog
Copy link
Owner

jumoog commented Aug 2, 2024

closing this in favour of #238 .. I added you as Co-author! Thank you for your PR!

@jumoog jumoog closed this Aug 2, 2024
@AbandonedCart
Copy link
Collaborator

Yes, thanks!

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

4 participants