This commit is contained in:
Zack Meier
2026-04-15 15:42:41 -05:00
parent 74edcc4d9a
commit 03dba08135
146 changed files with 9119 additions and 1 deletions
+20
View File
@@ -0,0 +1,20 @@
<#
Requirements:
Needs SpotDL python project installed
#>
New-Item -Path "D:\" -Name ("spotdl_" + (Get-Date -UFormat "%y%m%d")) -ItemType Directory
$RootUrl = "https://xmplaylist.com/api/station/thehighway/most-heard"
$DaysToReview = @(7, 30, 60)
ForEach ($subdays in $DaysToReview) {
#write-warning ($url + "?subdays=" + $subdays)
$result += Invoke-RestMethod -Uri ($RootUrl + "?subDays=" + $subdays) -Method Get -ContentType "application/json"
}
$UniqueTracks = ($Result | Select -Unique id).Id
ForEach ($Id in $UniqueTracks) {
$Url = (($Result | Where-Object Id -eq $Id | Select -First 1).links | where-object site -eq spotify | select -first 1).url
Invoke-Expression -Command ("spotdl " + $Url)
}