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

LB-1546: Embedable HTML widgets #3026

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from
Draft

LB-1546: Embedable HTML widgets #3026

wants to merge 5 commits into from

Conversation

MonkeyDo
Copy link
Member

@MonkeyDo MonkeyDo commented Nov 6, 2024

This PR creates two new endpoints that return an HTML widget with the aim to embed it on personal websites using an iframe like so:

<iframe src="https://test.listenbrainz.org/user/mr_monkey/embed/playing-now" frameborder="0" width="100%"></iframe> and
<iframe src="https://test.listenbrainz.org/user/mr_monkey/embed/pin" frameborder="0" width="100%"></iframe>

The playing-now endpoint also has the option to automatically refresh (with optional custom refresh rate).

This is only part 1, implementing playing-now and pinned recording, as a trial run. We still need to refine the design before moving forward with other potential templates (recent listens, top albums/artists/tracks).

@pep8speaks
Copy link

pep8speaks commented Nov 6, 2024

Hello @MonkeyDo! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2024-11-06 16:18:02 UTC

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