summaryrefslogtreecommitdiff
path: root/src/libpiano
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2012-05-02 17:33:12 +0200
committerLars-Dominik Braun <lars@6xq.net>2012-05-02 17:33:32 +0200
commit22e725f545548e6b9583644987e82cb1e3b7ae1f (patch)
treeea45e621f7349ceef9081ab163c11f79265b4d78 /src/libpiano
parent951d6206f2837d5985899c5b974690e0076b68c5 (diff)
downloadpianobar-22e725f545548e6b9583644987e82cb1e3b7ae1f.tar.gz
pianobar-22e725f545548e6b9583644987e82cb1e3b7ae1f.tar.bz2
pianobar-22e725f545548e6b9583644987e82cb1e3b7ae1f.zip
Really delete seed suggestions
There does not seem to be an API call for that.
Diffstat (limited to 'src/libpiano')
-rw-r--r--src/libpiano/piano.h8
-rw-r--r--src/libpiano/request.c30
-rw-r--r--src/libpiano/response.c14
3 files changed, 0 insertions, 52 deletions
diff --git a/src/libpiano/piano.h b/src/libpiano/piano.h
index 86dcce0..c8c01db 100644
--- a/src/libpiano/piano.h
+++ b/src/libpiano/piano.h
@@ -152,7 +152,6 @@ typedef enum {
PIANO_REQUEST_GET_GENRE_STATIONS = 14,
PIANO_REQUEST_TRANSFORM_STATION = 15,
PIANO_REQUEST_EXPLAIN = 16,
- PIANO_REQUEST_GET_SEED_SUGGESTIONS = 17,
PIANO_REQUEST_BOOKMARK_SONG = 18,
PIANO_REQUEST_BOOKMARK_ARTIST = 19,
PIANO_REQUEST_GET_STATION_INFO = 20,
@@ -227,13 +226,6 @@ typedef struct {
typedef struct {
PianoStation_t *station;
- char *musicId;
- unsigned short max;
- PianoSearchResult_t searchResult;
-} PianoRequestDataGetSeedSuggestions_t;
-
-typedef struct {
- PianoStation_t *station;
PianoStationInfo_t info;
} PianoRequestDataGetStationInfo_t;
diff --git a/src/libpiano/request.c b/src/libpiano/request.c
index fcc13d4..427cc2d 100644
--- a/src/libpiano/request.c
+++ b/src/libpiano/request.c
@@ -325,36 +325,6 @@ PianoReturn_t PianoRequest (PianoHandle_t *ph, PianoRequest_t *req,
break;
}
- case PIANO_REQUEST_GET_SEED_SUGGESTIONS: {
-#if 0
- /* find similar artists */
- PianoRequestDataGetSeedSuggestions_t *reqData = req->data;
-
- assert (reqData != NULL);
- assert (reqData->musicId != NULL);
- assert (reqData->max != 0);
-
- snprintf (xmlSendBuf, sizeof (xmlSendBuf), "<?xml version=\"1.0\"?>"
- "<methodCall><methodName>music.getSeedSuggestions</methodName>"
- "<params><param><value><int>%lu</int></value></param>"
- /* auth token */
- "<param><value><string>%s</string></value></param>"
- /* station id */
- "<param><value><string>%s</string></value></param>"
- /* seed music id */
- "<param><value><string>%s</string></value></param>"
- /* max */
- "<param><value><int>%u</int></value></param>"
- "</params></methodCall>", (unsigned long) timestamp,
- ph->user.authToken, reqData->station->id, reqData->musicId,
- reqData->max);
- snprintf (req->urlPath, sizeof (req->urlPath), PIANO_RPC_PATH
- "rid=%s&lid=%s&method=getSeedSuggestions&arg1=%s&arg2=%u",
- ph->routeId, ph->user.listenerId, reqData->musicId, reqData->max);
-#endif
- break;
- }
-
case PIANO_REQUEST_BOOKMARK_SONG: {
/* bookmark song */
PianoSong_t *song = req->data;
diff --git a/src/libpiano/response.c b/src/libpiano/response.c
index 16b17a3..7ae4f1e 100644
--- a/src/libpiano/response.c
+++ b/src/libpiano/response.c
@@ -524,20 +524,6 @@ PianoReturn_t PianoResponse (PianoHandle_t *ph, PianoRequest_t *req) {
break;
}
- case PIANO_REQUEST_GET_SEED_SUGGESTIONS: {
-#if 0
- /* find similar artists */
- PianoRequestDataGetSeedSuggestions_t *reqData = req->data;
-
- assert (req->responseData != NULL);
- assert (reqData != NULL);
-
- ret = PianoXmlParseSeedSuggestions (req->responseData,
- &reqData->searchResult);
-#endif
- break;
- }
-
case PIANO_REQUEST_GET_STATION_INFO: {
/* get station information (seeds and feedback) */
PianoRequestDataGetStationInfo_t *reqData = req->data;