Series Detail Screen
This commit is contained in:
@@ -186,5 +186,21 @@ class BackendApi {
|
||||
final v = map['id'];
|
||||
return v == null ? null : (v as num).toInt();
|
||||
}
|
||||
|
||||
Future<void> setShowMeta({
|
||||
required int showId,
|
||||
String? resolution,
|
||||
String? downloadPath,
|
||||
bool? cliffhanger,
|
||||
}) async {
|
||||
final payload = <String, dynamic>{
|
||||
'action': 'set_show_meta',
|
||||
'show_id': showId,
|
||||
if (resolution != null) 'resolution': resolution,
|
||||
if (downloadPath != null) 'download_path': downloadPath,
|
||||
if (cliffhanger != null) 'cliffhanger': cliffhanger,
|
||||
};
|
||||
await _post(payload);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user