chore: update project meta (#51)

* chore: update project meta (partial)

* chore: update README

* chore: update pdf preview

* revert: use old hash

* chore: update logo file url
This commit is contained in:
Hantong Chen
2025-06-16 16:29:45 +08:00
committed by GitHub
parent a59ad9a84e
commit b1afadd129
26 changed files with 100 additions and 105 deletions

View File

@ -134,7 +134,7 @@ func (c *client) AddFromLink(link string, savePath string, id string) error {
}
addField("urls", link)
addField("savepath", savePath)
addField("tags", "alist-"+id)
addField("tags", "openlist-"+id)
addField("autoTMM", "false")
if err != nil {
return err
@ -250,7 +250,7 @@ type InfoNotFoundError struct {
}
func (i InfoNotFoundError) Error() string {
return "there should be exactly one task with tag \"alist-" + i.Id + "\""
return "there should be exactly one task with tag \"openlist-" + i.Id + "\""
}
func NewInfoNotFoundError(id string) InfoNotFoundError {
@ -266,7 +266,7 @@ func (c *client) GetInfo(id string) (TorrentInfo, error) {
}
v := url.Values{}
v.Set("tag", "alist-"+id)
v.Set("tag", "openlist-"+id)
response, err := c.post("/api/v2/torrents/info", v)
if err != nil {
return TorrentInfo{}, err
@ -354,7 +354,7 @@ func (c *client) Delete(id string, deleteFiles bool) error {
}
v = url.Values{}
v.Set("tags", "alist-"+id)
v.Set("tags", "openlist-"+id)
response, err = c.post("/api/v2/torrents/deleteTags", v)
if err != nil {
return err

View File

@ -27,7 +27,7 @@ func String(n int) string {
}
func Token() string {
return "alist-" + uuid.NewString() + String(64)
return "openlist-" + uuid.NewString() + String(64)
}
func RangeInt64(left, right int64) int64 {