mirror of
https://github.com/simon-ding/polaris.git
synced 2026-06-06 10:07:45 +08:00
fix
This commit is contained in:
@@ -20,7 +20,7 @@ class APIs {
|
||||
//static final singleSettingUrl = "$_baseUrl/api/v1/setting/";
|
||||
static final watchlistTvUrl = "$_baseUrl/api/v1/media/tv/watchlist";
|
||||
static final watchlistMovieUrl = "$_baseUrl/api/v1/media/movie/watchlist";
|
||||
static final availableTorrentsUrl = "$_baseUrl/api/v1/media/torrents/";
|
||||
static final availableTorrentsUrl = "$_baseUrl/api/v1/media/torrents";
|
||||
static final downloadTorrentUrl = "$_baseUrl/api/v1/media/torrents/download";
|
||||
static final seriesDetailUrl = "$_baseUrl/api/v1/media/record/";
|
||||
static final suggestedTvName = "$_baseUrl/api/v1/media/suggest/tv/";
|
||||
@@ -83,6 +83,7 @@ class APIs {
|
||||
|
||||
static Dio getDio() {
|
||||
var dio = Dio();
|
||||
dio.options.followRedirects = true;
|
||||
dio.interceptors.add(InterceptorsWrapper(
|
||||
onError: (error, handler) {
|
||||
if (error.response?.statusCode != null &&
|
||||
|
||||
@@ -281,8 +281,8 @@ class TorrentResource {
|
||||
String? link;
|
||||
String? source;
|
||||
int? indexerId;
|
||||
double? downloadFactor;
|
||||
double? uploadFactor;
|
||||
num? downloadFactor;
|
||||
num? uploadFactor;
|
||||
bool? isPrivate;
|
||||
|
||||
factory TorrentResource.fromJson(Map<String, dynamic> json) {
|
||||
|
||||
Reference in New Issue
Block a user