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

Add Piped connector #3518

Merged
merged 2 commits into from
Dec 24, 2022
Merged

Add Piped connector #3518

merged 2 commits into from
Dec 24, 2022

Conversation

kgarner7
Copy link
Contributor

@kgarner7 kgarner7 commented Dec 14, 2022

Describe the changes you made
This PR adds a connector for Piped. Resolves #3241

Additional context
I only include the official instance (piped.video). Like invidious, there are multiple instances (that change), so it would probably make more sense for people to add custom URLs.

Copy link
Member

@inverse inverse left a comment

Choose a reason for hiding this comment

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

Thanks for taking the time to contribute! we're trying to phase out the usage of jQuery from connector development. Would it be possible to drop the query usage for vanilla JS or some of the other functions encapsulated in Utils?

@kgarner7
Copy link
Contributor Author

My bad! Thanks for the feedback.

@inverse inverse added new-feature For PRs that add new functionality minor-change For minor changes labels Dec 24, 2022
Copy link
Member

@inverse inverse left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution! it'll be in the next release :)

Not your fault about the jQuery thing - we need to make that clearer

};

Connector.getCurrentTime = () =>
document.querySelector('.shaka-video').currentTime;
Copy link
Member

Choose a reason for hiding this comment

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

This could be extracted into a common variable to avoid duplication and improve refactoring later - but it's not a deal breaker breaker :)

@inverse inverse merged commit 739ea68 into web-scrobbler:master Dec 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
minor-change For minor changes new-feature For PRs that add new functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for scrobbling from Piped
2 participants