Skip to content

fix: Playlists not being updated#5

Merged
trackstacker merged 3 commits intotrackstacker:mainfrom
johnnyfleet:main
Feb 2, 2025
Merged

fix: Playlists not being updated#5
trackstacker merged 3 commits intotrackstacker:mainfrom
johnnyfleet:main

Conversation

@johnnyfleet
Copy link
Contributor

@johnnyfleet johnnyfleet commented Feb 2, 2025

This PR is a quick attempt to fix the problem of new playlists being created each refresh vs. updating a playlist.

It fixes #4

To make it easier to spin up and isolate changes I also added a simple devcontainer config, which is configured for python development as well as running docker.

Updating Playlist

I saw that you had started to improve the LLM prompt in the v2 version. I copied the key elements of the v2 prompt into the v1 code to ensure the title always starts with "Meloday for".

Minor adjustments to the example prompts as not all attributes are available in v1 code (e.g. previous playlist details).

Devcontainer

I created a pretty standard devcontainer. This allows you to simply fire up the repo in codespace for small adjustments in a repeatable and declarative environment. This can also be run locally as a devcontainer without codepaces.

The devcontainer is set up with:

  • Python to allow python dev. It also auto installs dependencies defined in requirements.txt
  • docker-in-docker allowing you to docker-compose up -d in the devcontainer.

vscode also auto applied a dependabot schedule to check for updates to the devcontainer.

Minor note about codespcaes.

You can define the three key environment variables as codespaces secrets in your settings. You can then define the scope of the secret i.e. which repo can see it. This helps to avoid injecting secrets into a git commit.

I find it helpful to have a devcontainer set up and configured for the
repo for quick edits and fixes. This adds basic dependabot python
devcontainer and installs pip requirements.txt.

Also auto adds a dependabot rule to check for updates.
@johnnyfleet
Copy link
Contributor Author

I've manually run several times to confirm the playlist is updating (vs. new one being created).

I'll let it run for a few hours to confirm the playlist is updating on schedule too.

@trackstacker trackstacker merged commit 86b97ea into trackstacker:main Feb 2, 2025
1 check passed
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.

New Playlist being created each refresh vs. replace existing

2 participants