Refactor return type of the search

This commit is contained in:
Alexander
2026-05-05 14:41:45 +02:00
parent b41ea7d023
commit 2400c6345a
20 changed files with 339 additions and 56 deletions
+25 -2
View File
@@ -18,14 +18,37 @@ message SearchResponse {
message SearchItem {
string title = 1;
string link = 2;
string guid = 3;
string download_link = 2;
string torrent_page_url = 3;
string pub_date = 4;
int64 size = 5;
string description = 6;
repeated string categories = 7;
Enclosure enclosure = 8;
repeated TorznabAttr torznab_attrs = 9;
Release release = 10;
}
message Release {
string raw_title = 1;
string artist = 2;
string album = 3;
int32 year = 4;
int32 year_end = 5;
string type = 6;
repeated string genres = 7;
string format = 8;
string source = 9;
string bitrate = 10;
int32 bit_depth = 11;
int32 sample_rate = 12;
string rip_type = 13;
int32 release_count = 14;
repeated string tags = 15;
string label = 16;
string catalog_num = 17;
bool parsed_successfully = 18;
repeated string parse_errors = 19;
}
message Enclosure {