Skip to content

Commit d449f92

Browse files
committed
refactor(video_service)
Signed-off-by: LiggPlus <wenzhouli06@gmail.com>
1 parent 819199a commit d449f92

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

lib/request/video/video_service.dart

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import 'package:AnimeFlow/modules/video/episode_source.dart';
1212
class VideoService {
1313
static final Logger _log = Logger('VideoService');
1414

15-
static const String websiteUrl = 'https://dm.xifanacg.com';
16-
static const String searchUrl = 'https://dm.xifanacg.com/search.html?wd=';
15+
static const String websiteUrl = 'https://dm1.xfdm.pro';
16+
static const String searchUrl = 'https://dm1.xfdm.pro/search.html?wd=';
1717
static const int requestInterval = 1;
1818

1919
/// 获取剧集源
@@ -26,10 +26,7 @@ class VideoService {
2626
searchUrl + keyword,
2727
options: Options(headers: {'User-Agent': CommonApi.userAgent}),
2828
);
29-
if (response.statusCode != 200) {
30-
_log.warning('请求异常,状态码:${response.statusCode}');
31-
return null;
32-
}
29+
3330
if (response.data != null) {
3431
// 解析条目名称列表和条目链接列表
3532
final parseResult = VideoAnalysis.parseSearchResults(

0 commit comments

Comments
 (0)