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

Skipping 15 sec progress #237

Merged
merged 3 commits into from
Jan 17, 2023
Merged

Conversation

roman-balzer
Copy link
Contributor

As mentioned in #229, I implemented the feature. Clicking on backward or forward while holding Ctrl will change the progress 15s backward or forward.

src/renderer/components/Lofi/Cover/Controls/index.tsx Outdated Show resolved Hide resolved
src/renderer/components/Lofi/Cover/Controls/index.tsx Outdated Show resolved Hide resolved
method: 'GET',
}).then((body) => {
const currentProgress = Number(body.progress_ms);
SpotifyApiInstance.fetch(`/me/player/seek?position_ms=${currentProgress + 15000}`, {
Copy link
Collaborator

Choose a reason for hiding this comment

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

FYI I'd rather have this 15000ms as a configurable setting, but for now it can stay that way. I'm in the process of refactoring the whole application, I'll include your change and expose the settings in the settings window...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I also thought about doing that, but I wanted to start with smaller changes.

@stamoun
Copy link
Collaborator

stamoun commented Jan 16, 2023

BTW thanks for your interest, I've been trying to improve Lofi here and there (time is scarce), glad to see some other folks have interest in the app ❤️

@roman-balzer
Copy link
Contributor Author

Happy I can contribute, thou I'm sure what I can change without bigger conflicts, if you are in process of rewriting the whole app

@stamoun stamoun merged commit e36b23c into dvx:master Jan 17, 2023
@roman-balzer roman-balzer deleted the feature/skip-15-sec branch January 17, 2023 13:42
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.

2 participants