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