Compare commits

...

7 Commits

Author SHA1 Message Date
Simon Ding
0022c9dad5 fix: umask 2024-08-01 09:39:38 +08:00
Simon Ding
654d8b50b4 chore: add more screenshot 2024-08-01 09:23:13 +08:00
Simon Ding
97ede5d9c9 feat: add badges 2024-08-01 00:01:55 +08:00
Simon Ding
4803567818 fix: remove attestations 2024-07-31 23:43:07 +08:00
Simon Ding
4e0014cb3f fix: sha256 tags in repo 2024-07-31 23:41:58 +08:00
Simon Ding
c256d46d5c test ci 2024-07-31 23:11:55 +08:00
Simon Ding
b765f16ea6 chore: updates 2024-07-31 20:59:40 +08:00
9 changed files with 24 additions and 20 deletions

View File

@@ -56,4 +56,4 @@ jobs:
with:
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true
push-to-registry: false

View File

@@ -14,12 +14,6 @@ jobs:
build-and-release-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
attestations: write
id-token: write
steps:
- uses: actions/checkout@v4
with:
@@ -55,10 +49,3 @@ jobs:
linux/arm64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: Generate artifact attestation
uses: actions/attest-build-provenance@v1
with:
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true

View File

@@ -1,9 +1,16 @@
# polaris
# Polaris
![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/simon-ding/polaris/go.yml)
![GitHub Release](https://img.shields.io/github/v/release/simon-ding/polaris)
![GitHub Repo stars](https://img.shields.io/github/stars/simon-ding/polaris)
![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/simon-ding/polaris)
Polaris 是一个电视剧和电影的追踪软件。配置好了之后当剧集或者电影播出后会第一时间下载对应的资源。支持本地存储或者webdav。
![main_page](./doc/assets/main_page.png)
![detail_page](./doc/assets/detail_page.png)
![anime](./doc/assets/anime_match.png)
交流群: https://t.me/+8R2nzrlSs2JhMDgx
@@ -18,6 +25,12 @@ Polaris 是一个电视剧和电影的追踪软件。配置好了之后,当剧
- [x] plex 刮削支持
- [x] and more...
## Todos
- [] qbittorrent客户端支持
- [] 更多通知客户端支持
- [] 第三方watchlist导入支持
## 使用
使用此程序参考 [【快速开始】](./doc/quick_start.md)

View File

@@ -10,7 +10,7 @@ import (
func main() {
log.Infof("------------------- Starting Polaris ---------------------")
syscall.Umask(0000) //max permission 0777
syscall.Umask(0) //max permission 0777
dbClient, err := db.Open()
if err != nil {

BIN
doc/assets/anime_match.png Normal file
View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 774 KiB

View File

@@ -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)
}

View File

@@ -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")
}

View File

@@ -85,7 +85,7 @@ class _SearchPageState extends ConsumerState<SearchPage> {
? const Chip(
avatar: Icon(Icons.live_tv),
label: Text(
"电视",
"",
))
: const Chip(
avatar: Icon(Icons.movie),

View File

@@ -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("大小")),