mirror of
https://github.com/simon-ding/polaris.git
synced 2026-02-06 23:21:00 +08:00
chore: updates
This commit is contained in:
@@ -18,6 +18,12 @@ Polaris 是一个电视剧和电影的追踪软件。配置好了之后,当剧
|
||||
- [x] plex 刮削支持
|
||||
- [x] and more...
|
||||
|
||||
## Todos
|
||||
|
||||
- [] qbittorrent客户端支持
|
||||
- [] 更多通知客户端支持
|
||||
- [] 第三方watchlist导入支持
|
||||
|
||||
## 使用
|
||||
|
||||
使用此程序参考 [【快速开始】](./doc/quick_start.md)
|
||||
|
||||
@@ -129,7 +129,7 @@ func (s *Server) Serve() error {
|
||||
func (s *Server) TMDB() (*tmdb.Client, error) {
|
||||
api := s.db.GetSetting(db.SettingTmdbApiKey)
|
||||
if api == "" {
|
||||
return nil, errors.New("tmdb api not set")
|
||||
return nil, errors.New("TMDB apiKey not set")
|
||||
}
|
||||
return tmdb.NewClient(api)
|
||||
}
|
||||
|
||||
@@ -43,7 +43,11 @@ func (s *Server) SearchMedia(c *gin.Context) (interface{}, error) {
|
||||
return nil, errors.Wrap(err, "bind query")
|
||||
}
|
||||
log.Infof("search media with keyword: %v", q.Query)
|
||||
r, err := s.MustTMDB().SearchMedia(q.Query, s.language, q.Page)
|
||||
tmdb, err := s.TMDB()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
r, err := tmdb.SearchMedia(q.Query, s.language, q.Page)
|
||||
if err != nil {
|
||||
return nil, errors.Wrap(err, "search tv")
|
||||
}
|
||||
|
||||
@@ -85,7 +85,7 @@ class _SearchPageState extends ConsumerState<SearchPage> {
|
||||
? const Chip(
|
||||
avatar: Icon(Icons.live_tv),
|
||||
label: Text(
|
||||
"电视剧",
|
||||
"剧集",
|
||||
))
|
||||
: const Chip(
|
||||
avatar: Icon(Icons.movie),
|
||||
|
||||
@@ -172,7 +172,7 @@ class _TvDetailsPageState extends ConsumerState<TvDetailsPage> {
|
||||
return SingleChildScrollView(
|
||||
child: DataTable(
|
||||
dataTextStyle:
|
||||
const TextStyle(fontSize: 12, height: 0),
|
||||
const TextStyle(fontSize: 12),
|
||||
columns: const [
|
||||
DataColumn(label: Text("名称")),
|
||||
DataColumn(label: Text("大小")),
|
||||
|
||||
Reference in New Issue
Block a user