Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Some #cluglife hacking.
- Loading branch information
Showing
3 changed files
with
32 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
(in-package :cl-echonest) | ||
|
||
;; Totally busted. | ||
(defun playlist-basic (&key (type "song-radio") (results 15) artists song-ids) | ||
(let ((result (echonest-call "playlist" "basic" | ||
`(("type" . ,type) | ||
("results" . ,(princ-to-string results)) | ||
;; TODO: List handling is totally F-in broken | ||
,@(when artists | ||
`(("artist" . ,artists))) | ||
,@(when song-ids | ||
`(("song_id" . ,song-ids))))))) | ||
(getjso* "songs" result))) | ||
|
||
;; Bobby Tank - Circles: TRAHHWP136F598034A | ||
;; Bondax - Just Us: TRVURQT136F05FEEF8 | ||
;; Montgomery Clunk - Heat: TROEYCX136F056A215 | ||
;; Bobby Tank - Needin Me: 3999c0e7710e057cf64c4dcf63ed4eb4 | ||
;; OL - IWM: TRRBVKJ136F59E016A | ||
;; Mono/Poly - Glow: SOENCZV1315CD513E9 | ||
;; Bibio - Fire Ant: SOQFJVS131677157D0 | ||
;; Star Slinger - Mornin: SOAZZOT1338A5D6187 | ||
;; Alex B - Standing on Me: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
(in-package :cl-echonest) | ||
|
||
(defun song-search (artist &optional title) | ||
(let ((result (echonest-call "song" "search" | ||
`(("artist" . ,artist) | ||
,@(when title | ||
`(("title" . ,title))))))) | ||
(getjso* "songs" result))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters