mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
mod: remove add live dm
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -639,41 +639,6 @@ class UserHttp {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 稍后再看播放全部
|
|
||||||
// static Future toViewPlayAll({required int oid, required String bvid}) async {
|
|
||||||
// var res = await Request().get(
|
|
||||||
// Api.watchLaterHtml,
|
|
||||||
// data: {
|
|
||||||
// 'oid': oid,
|
|
||||||
// 'bvid': bvid,
|
|
||||||
// },
|
|
||||||
// );
|
|
||||||
// String scriptContent =
|
|
||||||
// extractScriptContents(parse(res.data).body!.outerHtml)[0];
|
|
||||||
// int startIndex = scriptContent.indexOf('{');
|
|
||||||
// int endIndex = scriptContent.lastIndexOf('};');
|
|
||||||
// String jsonContent = scriptContent.substring(startIndex, endIndex + 1);
|
|
||||||
// // 解析JSON字符串为Map
|
|
||||||
// Map<String, dynamic> jsonData = json.decode(jsonContent);
|
|
||||||
// // 输出解析后的数据
|
|
||||||
// return {
|
|
||||||
// 'status': true,
|
|
||||||
// 'data': jsonData['resourceList']
|
|
||||||
// .map((e) => MediaVideoItemModel.fromJson(e))
|
|
||||||
// .toList()
|
|
||||||
// };
|
|
||||||
// }
|
|
||||||
static List<String> extractScriptContents(String htmlContent) {
|
|
||||||
RegExp scriptRegExp = RegExp(r'<script>([\s\S]*?)<\/script>');
|
|
||||||
Iterable<Match> matches = scriptRegExp.allMatches(htmlContent);
|
|
||||||
List<String> scriptContents = <String>[];
|
|
||||||
for (Match match in matches) {
|
|
||||||
String scriptContent = match.group(1)!;
|
|
||||||
scriptContents.add(scriptContent);
|
|
||||||
}
|
|
||||||
return scriptContents;
|
|
||||||
}
|
|
||||||
|
|
||||||
// 稍后再看列表
|
// 稍后再看列表
|
||||||
static Future getMediaList({
|
static Future getMediaList({
|
||||||
required dynamic type,
|
required dynamic type,
|
||||||
|
|||||||
@@ -6,7 +6,6 @@ import 'package:PiliPlus/pages/live_emote/controller.dart';
|
|||||||
import 'package:PiliPlus/pages/live_emote/view.dart';
|
import 'package:PiliPlus/pages/live_emote/view.dart';
|
||||||
import 'package:PiliPlus/pages/live_room/controller.dart';
|
import 'package:PiliPlus/pages/live_room/controller.dart';
|
||||||
import 'package:PiliPlus/pages/video/detail/reply_new/toolbar_icon_button.dart';
|
import 'package:PiliPlus/pages/video/detail/reply_new/toolbar_icon_button.dart';
|
||||||
import 'package:canvas_danmaku/models/danmaku_content_item.dart';
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter/services.dart';
|
import 'package:flutter/services.dart';
|
||||||
import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';
|
import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';
|
||||||
@@ -235,13 +234,13 @@ class _ReplyPageState extends CommonPublishPageState<LiveSendDmPanel> {
|
|||||||
Get.back();
|
Get.back();
|
||||||
liveRoomController.savedDanmaku = null;
|
liveRoomController.savedDanmaku = null;
|
||||||
SmartDialog.showToast('发送成功');
|
SmartDialog.showToast('发送成功');
|
||||||
liveRoomController.plPlayerController.danmakuController?.addDanmaku(
|
// liveRoomController.plPlayerController.danmakuController?.addDanmaku(
|
||||||
DanmakuContentItem(
|
// DanmakuContentItem(
|
||||||
emoticonUnique ?? message,
|
// emoticonUnique ?? message,
|
||||||
type: DanmakuItemType.scroll,
|
// type: DanmakuItemType.scroll,
|
||||||
selfSend: true,
|
// selfSend: true,
|
||||||
),
|
// ),
|
||||||
);
|
// );
|
||||||
} else {
|
} else {
|
||||||
SmartDialog.showToast(res['msg']);
|
SmartDialog.showToast(res['msg']);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user