Skip to content

Commit 185df2b

Browse files
authored
Update missing tracks (#81)
1 parent 5a707e7 commit 185df2b

30 files changed

+5706
-33906
lines changed

.github/workflows/scrape.yaml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -100,24 +100,24 @@ jobs:
100100
$result[$($result.indexOf("{"))..$($result.Length-1)] | Out-File -FilePath "spotify100-$date.json" -Force
101101
popd
102102
103-
- name: Run Spotify app - Billboard Hot 100
104-
if: steps.check_to_proceed.outputs.proceed == 'true'
105-
shell: pwsh
106-
run: |
107-
$appsettings = Get-Content -Path ./samples/SpotifyPlaylist.ConsoleApp/appsettings.Development.sample.json | ConvertFrom-Json
108-
$appsettings.Azure.APIM.BaseUrl = "${{ secrets.APIM_BASE_URL }}"
109-
$appsettings.Azure.APIM.SubscriptionKey = "${{ secrets.APIM_SUBSCRIPTION_KEY }}"
110-
$appsettings | ConvertTo-Json -Depth 100 | Out-File -FilePath ./samples/SpotifyPlaylist.ConsoleApp/appsettings.Development.json -Force
111-
112-
$date = (Get-Date).ToUniversalTime().AddHours(9).ToString("yyyyMMdd")
113-
# $result = dotnet run --project ./samples/SpotifyPlaylist.ConsoleApp/ -- -t spotify -s ${{ secrets.SPOTIFY_BILLBOARD_HOT100_PLAYLIST_ID }} --json | ConvertFrom-Json
114-
$result = dotnet run --project ./samples/SpotifyPlaylist.ConsoleApp/ -- -t spotify -s ${{ secrets.SPOTIFY_BILLBOARD_HOT100_PLAYLIST_ID }} --json
115-
116-
mkdir -p ./data
117-
pushd ./data
118-
# $result[$($result.indexOf("{"))..$($result.Length-1)] | ConvertTo-Json -Depth 100 | Out-File -FilePath "billboard100-$date.json" -Force
119-
$result[$($result.indexOf("{"))..$($result.Length-1)] | Out-File -FilePath "billboard100-$date.json" -Force
120-
popd
103+
# - name: Run Spotify app - Billboard Hot 100
104+
# if: steps.check_to_proceed.outputs.proceed == 'true'
105+
# shell: pwsh
106+
# run: |
107+
# $appsettings = Get-Content -Path ./samples/SpotifyPlaylist.ConsoleApp/appsettings.Development.sample.json | ConvertFrom-Json
108+
# $appsettings.Azure.APIM.BaseUrl = "${{ secrets.APIM_BASE_URL }}"
109+
# $appsettings.Azure.APIM.SubscriptionKey = "${{ secrets.APIM_SUBSCRIPTION_KEY }}"
110+
# $appsettings | ConvertTo-Json -Depth 100 | Out-File -FilePath ./samples/SpotifyPlaylist.ConsoleApp/appsettings.Development.json -Force
111+
112+
# $date = (Get-Date).ToUniversalTime().AddHours(9).ToString("yyyyMMdd")
113+
# # $result = dotnet run --project ./samples/SpotifyPlaylist.ConsoleApp/ -- -t spotify -s ${{ secrets.SPOTIFY_BILLBOARD_HOT100_PLAYLIST_ID }} --json | ConvertFrom-Json
114+
# $result = dotnet run --project ./samples/SpotifyPlaylist.ConsoleApp/ -- -t spotify -s ${{ secrets.SPOTIFY_BILLBOARD_HOT100_PLAYLIST_ID }} --json
115+
116+
# mkdir -p ./data
117+
# pushd ./data
118+
# # $result[$($result.indexOf("{"))..$($result.Length-1)] | ConvertTo-Json -Depth 100 | Out-File -FilePath "billboard100-$date.json" -Force
119+
# $result[$($result.indexOf("{"))..$($result.Length-1)] | Out-File -FilePath "billboard100-$date.json" -Force
120+
# popd
121121

122122
- name: Upload data
123123
if: steps.check_to_proceed.outputs.proceed == 'true'

0 commit comments

Comments
 (0)