mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 08:49: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
|
@ -143,7 +143,11 @@ export const releaseTypeMusic = [
|
|||
"Unknown"
|
||||
];
|
||||
|
||||
export const RELEASE_TYPE_MUSIC_OPTIONS: MultiSelectOption[] = releaseTypeMusic.map(v => ({ value: v, label: v, key: v }));
|
||||
export const RELEASE_TYPE_MUSIC_OPTIONS: MultiSelectOption[] = releaseTypeMusic.map(v => ({
|
||||
value: v,
|
||||
label: v,
|
||||
key: v
|
||||
}));
|
||||
|
||||
export const originOptions = [
|
||||
"P2P",
|
||||
|
@ -210,9 +214,9 @@ export const languageOptions = [
|
|||
export const LANGUAGE_OPTIONS = languageOptions.map(v => ({ value: v, label: v, key: v }));
|
||||
|
||||
export interface RadioFieldsetOption {
|
||||
label: string;
|
||||
description: string;
|
||||
value: ActionType;
|
||||
label: string;
|
||||
description: string;
|
||||
value: ActionType;
|
||||
}
|
||||
|
||||
export const DownloadClientTypeOptions: RadioFieldsetOption[] = [
|
||||
|
@ -330,8 +334,8 @@ export const ActionContentLayoutOptions: SelectGenericOption<ActionContentLayout
|
|||
];
|
||||
|
||||
export interface OptionBasic {
|
||||
label: string;
|
||||
value: string;
|
||||
label: string;
|
||||
value: string;
|
||||
}
|
||||
|
||||
export interface OptionBasicTyped<T> {
|
||||
|
@ -427,9 +431,9 @@ const logLevel = ["DEBUG", "INFO", "WARN", "ERROR", "TRACE"] as const;
|
|||
export const LogLevelOptions = logLevel.map(v => ({ value: v, label: v, key: v }));
|
||||
|
||||
export interface SelectOption {
|
||||
label: string;
|
||||
description: string;
|
||||
value: NotificationEvent;
|
||||
label: string;
|
||||
description: string;
|
||||
value: NotificationEvent;
|
||||
}
|
||||
|
||||
export interface SelectGenericOption<T> {
|
||||
|
@ -470,3 +474,14 @@ export const EventOptions: SelectOption[] = [
|
|||
description: "Get notified on updates"
|
||||
}
|
||||
];
|
||||
|
||||
export const FeedDownloadTypeOptions: OptionBasicTyped<FeedDownloadType>[] = [
|
||||
{
|
||||
label: "Magnet",
|
||||
value: "MAGNET"
|
||||
},
|
||||
{
|
||||
label: "Torrent",
|
||||
value: "TORRENT"
|
||||
}
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue