mirror of
https://github.com/simon-ding/polaris.git
synced 2026-03-09 19:20:46 +08:00
add parse tv & movie api
This commit is contained in:
@@ -69,6 +69,8 @@ func (s *Server) Serve() error {
|
||||
setting.GET("/auth", HttpHandler(s.GetAuthSetting))
|
||||
setting.GET("/logfiles", HttpHandler(s.GetAllLogs))
|
||||
setting.GET("/about", HttpHandler(s.About))
|
||||
setting.POST("/parse/tv", HttpHandler(s.ParseTv))
|
||||
setting.POST("/parse/movie", HttpHandler(s.ParseMovie))
|
||||
}
|
||||
activity := api.Group("/activity")
|
||||
{
|
||||
|
||||
@@ -235,7 +235,7 @@ class _MainSkeletonState extends State<MainSkeleton> {
|
||||
destinations: const <NavigationDestination>[
|
||||
NavigationDestination(
|
||||
icon: Icon(Icons.live_tv),
|
||||
label: '电视剧',
|
||||
label: '剧集',
|
||||
),
|
||||
NavigationDestination(
|
||||
icon: Icon(Icons.movie),
|
||||
|
||||
@@ -81,7 +81,7 @@ class _TvDetailsPageState extends ConsumerState<TvDetailsPage> {
|
||||
.onError((error, trace) =>
|
||||
Utils.showSnakeBar("操作失败: $error"));
|
||||
},
|
||||
icon: const Icon(Icons.search)),
|
||||
icon: const Icon(Icons.download)),
|
||||
),
|
||||
const SizedBox(
|
||||
width: 10,
|
||||
@@ -128,7 +128,7 @@ class _TvDetailsPageState extends ConsumerState<TvDetailsPage> {
|
||||
.onError((error, trace) =>
|
||||
Utils.showSnakeBar("操作失败: $error"));
|
||||
},
|
||||
icon: const Icon(Icons.search)),
|
||||
icon: const Icon(Icons.download)),
|
||||
))
|
||||
], rows: m[k]!),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user