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 connector for copyparty #3616

Merged
merged 3 commits into from Apr 5, 2023
Merged

Add connector for copyparty #3616

merged 3 commits into from Apr 5, 2023

Conversation

9001
Copy link
Contributor

@9001 9001 commented Apr 1, 2023

Describe the changes you made
This adds support for copyparty, a self-hosted file sharing service. As most copyparty instances are for private use, I've included patterns for the public demo server and for the default port when running the server locally.

These changes will work on all copyparty versions starting from v1.6.11 onwards. If you'd like to test the changes, please drop by the demo server :>

Additional context
The same metadata is available through the media session api; however, the album cover URL inside the mediasession tags has a login token included as a URL parameter. Since everything works as expected even without this token, it felt like a good idea to strip it away before passing the image URL to the extension.

@inverse
Copy link
Member

inverse commented Apr 3, 2023

Hi @9001 thanks for the contribution! Unfortunately we just released v3 of the extension which went through a whole TypeScript rewrite.

The code is pretty much the same except requires export {}; at the top and being renamed ts

Also the connectors.js got renamed to connectors.ts

Let me know if you need help

@9001
Copy link
Contributor Author

9001 commented Apr 5, 2023

Nice, congratulations on v3 🎉 can't wait to see the new settings UI!

I have rebased the branch on master; just let me know if it would be preferable to scrap the branch entirely and start afresh :>

@inverse inverse added new-feature For PRs that add new functionality minor-change For minor changes labels Apr 5, 2023
@inverse
Copy link
Member

inverse commented Apr 5, 2023

Looks like something went wrong as there is still conflicts + lots of changes :/ Might be worth applying your changes fresh against the our master?

@9001
Copy link
Contributor Author

9001 commented Apr 5, 2023

Sorry about that!! Think I got it right this time :>

* better np_url retrieval
* actually retrieve np_url
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!

@inverse inverse merged commit 0aba5ee into web-scrobbler:master Apr 5, 2023
6 checks passed
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.

None yet

3 participants