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

Update missing tracks #18

Merged
merged 3 commits into from
Oct 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions .github/workflows/scrape.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,10 @@ jobs:
$collection = Get-Content "./data/spotify100-$date.json" | ConvertFrom-Json

$tracks = $collection.missingTracks | ConvertTo-Json -Depth 100
gh issue create --title "Missing tracks in Spotify playlist" --body "The following tracks are missing in the Spotify playlist:`r`n```````jsonr`n$tracks`r`n```````r`n"
gh issue create `
--title "Missing tracks in Spotify playlist" `
--body "The following tracks are missing in the Spotify playlist:`r`n```````jsonr`n$tracks`r`n```````r`n" `
--label missing-tracks

- name: Close sync request
if: |
Expand All @@ -164,4 +167,6 @@ jobs:
GH_TOKEN: ${{ github.token }}
run: |
$issueNumber = ${{ github.event.issue.number }}
gh issue close $issueNumber -r completed -c "The chart has been synced up-to-date."
gh issue close $issueNumber `
--reason completed `
--comment "The chart has been synced up-to-date."
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ There are some samples in the `samples` directory.

### MelonChart on Spotify

There's a [playlist on Spotify](https://open.spotify.com/playlist/6zRtKdszUiBnJm4lIbC6h9?si=kCR3OHPVTHmI3jHEY1Qyrg) using this library. If you want to sync the Melon chart to Spotify up-to-date, create an [issue](../../issues), and it will automatically update the playlist.
There's a [playlist on Spotify](https://open.spotify.com/playlist/6zRtKdszUiBnJm4lIbC6h9?si=kCR3OHPVTHmI3jHEY1Qyrg) using this library. If you want to sync the Melon chart to Spotify up-to-date, create a [sync request](../../issues/new?assignees=&labels=sync-request&projects=&template=01_SYNC_CHART.yml&title=%5BSync%5D%3A+Request+for+chart+sync), and it will automatically update the playlist.
![Melon Chart on Spotify](./assets/melon-chart-on-spotify.png)
Expand Down
Loading