Skip to content

Added example that shows how to sync subscriptions #85

Open
pSpitzner wants to merge 1 commit into
mainfrom
spotify_subscription_example
Open

Added example that shows how to sync subscriptions #85
pSpitzner wants to merge 1 commit into
mainfrom
spotify_subscription_example

Conversation

@pSpitzner
Copy link
Copy Markdown
Contributor

I follow some playlists that are updated regularly on spotify via tidal.
This might be a cool example and good use-case to show.

I was tweaking this a bit more, and after the refactor it works quite well.
If we fix some of the open issues (retry logic) the code should also be much shorter.

@pSpitzner pSpitzner temporarily deployed to integration_tests April 8, 2026 18:30 — with GitHub Actions Inactive
@pSpitzner pSpitzner temporarily deployed to integration_tests April 8, 2026 18:30 — with GitHub Actions Inactive
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 8, 2026

Thank you for the PR! The changelog has not been updated, so here is a friendly reminder to check if you need to add an entry.

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 8, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

Comment thread examples/community/spotify_to_tidal_subscriptions.py Outdated
@pSpitzner pSpitzner force-pushed the spotify_subscription_example branch from 5c3eece to e53f161 Compare May 3, 2026 17:43
@pSpitzner pSpitzner temporarily deployed to integration_tests May 3, 2026 17:43 — with GitHub Actions Inactive
@pSpitzner pSpitzner temporarily deployed to integration_tests May 3, 2026 17:43 — with GitHub Actions Inactive
@pSpitzner pSpitzner marked this pull request as ready for review May 3, 2026 18:23
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 3, 2026

Thank you for the PR! The changelog has not been updated, so here is a friendly reminder to check if you need to add an entry.

@pSpitzner
Copy link
Copy Markdown
Contributor Author

Since our backend changes, this has become much cleaner. Running fine now on my tests.

I also started on workflows to run it on github, but the token reneweal and upload logic warrants a 4 eye check (not commiteed yet, cos, well, ugly)

@pSpitzner pSpitzner requested a review from semohr May 3, 2026 18:31
@pSpitzner pSpitzner force-pushed the spotify_subscription_example branch from e53f161 to 068b7de Compare May 3, 2026 19:10
@pSpitzner pSpitzner temporarily deployed to integration_tests May 3, 2026 19:10 — with GitHub Actions Inactive
@pSpitzner pSpitzner temporarily deployed to integration_tests May 3, 2026 19:10 — with GitHub Actions Inactive
@pSpitzner pSpitzner force-pushed the spotify_subscription_example branch from 068b7de to d9c84d5 Compare May 3, 2026 19:24
@pSpitzner pSpitzner temporarily deployed to integration_tests May 3, 2026 19:24 — with GitHub Actions Inactive
@pSpitzner pSpitzner temporarily deployed to integration_tests May 3, 2026 19:24 — with GitHub Actions Inactive
@semohr
Copy link
Copy Markdown
Contributor

semohr commented May 4, 2026

We should clean up the terminology around sync, migrate, and subscribe. Right now, it’s not always clear what we mean when we use these terms. We should formalize the definitions and document them.

Here’s a proposal that feels consistent to me:

  • Subscription: Keeping one (or multiple) playlists coupled to another playlist in a one-directional way (i.e., changes flow from source to subscriber only).
  • Sync: Keeping multiple playlists synchronized, meaning changes in any of them are reflected across all linked playlists (bi-directional or multi-directional).
  • Migration: A one-time copy of a playlist with no ongoing relationship between source and target.
  • into Sink: Putting tracks into a playlist without deleting previously added tracks

@semohr
Copy link
Copy Markdown
Contributor

semohr commented May 4, 2026

Do you think we could make this example more generic?

Ideally, given any source playlist, it should be possible to attach multiple subscriber playlists and keep them updated by simply re-triggering the script (or by defining a polling interval). Independent of service specifics.

Would be a good intermediate step for us before we start to work on the fully synchronized playlists example.

Should also allow us to futher evaluate our abstraction 🙃

@pSpitzner pSpitzner force-pushed the spotify_subscription_example branch from d9c84d5 to 84e723d Compare May 17, 2026 15:06
@pSpitzner pSpitzner temporarily deployed to integration_tests May 17, 2026 15:06 — with GitHub Actions Inactive
@pSpitzner pSpitzner had a problem deploying to integration_tests May 17, 2026 15:06 — with GitHub Actions Failure
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