mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 00:39:13 +00:00
feat(releases): support magnet links (#730)
* feat(releases): support magnet links * feat(feeds): support magnet links * feat(actions): log messages * fix: component warning * fix: check hasprefix instead of hassuffix for magnet * feat(release): resolve magnet uri from link * fix(actions): deluge use magnet uri * fix(macros): add `MagnetURI` var * fix(actions): run magnet resolving before macros * feat(feeds): set download type on creation
This commit is contained in:
parent
c6101cc765
commit
ca196f0bf1
32 changed files with 770 additions and 260 deletions
|
@ -41,7 +41,7 @@ type Feed struct {
|
|||
Capabilities []string `json:"capabilities"`
|
||||
ApiKey string `json:"api_key"`
|
||||
Cookie string `json:"cookie"`
|
||||
Settings map[string]string `json:"settings"`
|
||||
Settings *FeedSettingsJSON `json:"settings"`
|
||||
CreatedAt time.Time `json:"created_at"`
|
||||
UpdatedAt time.Time `json:"updated_at"`
|
||||
IndexerID int `json:"indexer_id,omitempty"`
|
||||
|
@ -50,6 +50,10 @@ type Feed struct {
|
|||
LastRunData string `json:"last_run_data"`
|
||||
}
|
||||
|
||||
type FeedSettingsJSON struct {
|
||||
DownloadType FeedDownloadType `json:"download_type"`
|
||||
}
|
||||
|
||||
type FeedIndexer struct {
|
||||
ID int `json:"id"`
|
||||
Name string `json:"name"`
|
||||
|
@ -63,6 +67,13 @@ const (
|
|||
FeedTypeRSS FeedType = "RSS"
|
||||
)
|
||||
|
||||
type FeedDownloadType string
|
||||
|
||||
const (
|
||||
FeedDownloadTypeMagnet FeedDownloadType = "MAGNET"
|
||||
FeedDownloadTypeTorrent FeedDownloadType = "TORRENT"
|
||||
)
|
||||
|
||||
type FeedCacheItem struct {
|
||||
Bucket string `json:"bucket"`
|
||||
Key string `json:"key"`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue