added Canvas

reverse engineered Spotify Canvas API only available on iOS and Android
displays short looping video for song in place of album when available
This commit is contained in:
Brandon4466
2023-06-09 23:41:08 -07:00
parent fd19ba9c48
commit 0039308633
19 changed files with 365 additions and 1056 deletions

46
canvas.proto Normal file
View File

@@ -0,0 +1,46 @@
syntax = "proto3";
package com.spotify.canvazcache;
option optimize_for = CODE_SIZE;
option java_package = "com.spotify.canvaz";
enum Type {
IMAGE = 0;
VIDEO = 1;
VIDEO_LOOPING = 2;
VIDEO_LOOPING_RANDOM = 3;
GIF = 4;
}
message Artist {
string uri = 1;
string name = 2;
string avatar = 3;
}
message EntityCanvazResponse {
repeated Canvaz canvases = 1;
message Canvaz {
string id = 1;
string url = 2;
string file_id = 3;
Type type = 4;
string entity_uri = 5;
Artist artist = 6;
bool explicit = 7;
string uploaded_by = 8;
string etag = 9;
string canvas_uri = 11;
}
int64 ttl_in_seconds = 2;
}
message EntityCanvazRequest {
repeated Entity entities = 1;
message Entity {
string entity_uri = 1;
string etag = 2;
}
}