From 54d7151894e45b3cd33c7a4fe6abf69a8c3ef673 Mon Sep 17 00:00:00 2001 From: ze0s <43699394+zze0s@users.noreply.github.com> Date: Sun, 21 Aug 2022 21:42:07 +0200 Subject: [PATCH] feat(clients): add rTorrent support (#421) --- README.md | 3 +- go.mod | 3 +- go.sum | 5 + internal/action/rtorrent.go | 68 +++ internal/action/run.go | 3 + internal/domain/action.go | 1 + internal/domain/client.go | 1 + internal/download_client/connection.go | 19 + web/src/domain/constants.ts | 10 +- .../forms/settings/DownloadClientForms.tsx | 23 +- web/src/screens/filters/action.tsx | 544 +++++++++++++++++ web/src/screens/filters/details.tsx | 552 +----------------- web/src/types/Download.d.ts | 1 + 13 files changed, 692 insertions(+), 541 deletions(-) create mode 100644 internal/action/rtorrent.go create mode 100644 web/src/screens/filters/action.tsx diff --git a/README.md b/README.md index c146bfc..7a46a5c 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ Installation guide and documentation can be found at https://autobrr.com ## Key features -- Support for 40+ trackers with IRC announces +- Support for 45+ trackers with IRC announces - Torznab/RSS support via Prowlarr to easily get access to hundreds of trackers - Powerful but simple filtering with RegEx support (like in autodl-irssi) - Easy to use and mobile friendly web UI (with dark mode!) to manage everything @@ -32,6 +32,7 @@ Available download clients and actions - qBittorrent (with built in re-announce, categories, rules, max active downloads, etc) - Deluge v1+ and v2+ +- rTorrent - Transmission - Sonarr, Radarr, Lidarr and Whisparr (pushes releases directly to them and gets in the early swarm, instead of getting them via RSS when it's already over) - Watch folder diff --git a/go.mod b/go.mod index 5b89ca5..4299637 100644 --- a/go.mod +++ b/go.mod @@ -20,7 +20,9 @@ require ( github.com/hekmon/transmissionrpc/v2 v2.0.1 github.com/lib/pq v1.10.6 github.com/mattn/go-shellwords v1.0.12 + github.com/mmcdole/gofeed v1.1.3 github.com/moistari/rls v0.2.6 + github.com/mrobinsn/go-rtorrent v1.8.0 github.com/pkg/errors v0.9.1 github.com/r3labs/sse/v2 v2.8.1 github.com/robfig/cron/v3 v3.0.1 @@ -63,7 +65,6 @@ require ( github.com/mattn/go-colorable v0.1.12 // indirect github.com/mattn/go-isatty v0.0.14 // indirect github.com/mitchellh/mapstructure v1.5.0 // indirect - github.com/mmcdole/gofeed v1.1.3 // indirect github.com/mmcdole/goxpp v0.0.0-20181012175147-0068e33feabf // indirect github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect github.com/modern-go/reflect2 v1.0.2 // indirect diff --git a/go.sum b/go.sum index 26c6e42..8dd764f 100644 --- a/go.sum +++ b/go.sum @@ -106,6 +106,7 @@ github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnht github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= github.com/coreos/go-systemd/v22 v22.3.3-0.20220203105225-a9a7ef127534/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= +github.com/cpuguy83/go-md2man/v2 v2.0.1/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/cytec/releaseparser v0.0.0-20200706155913-2341b265c370 h1:g9q5BGfDdhcXn4EmVZD8UydPXrvhSvgz3FRBn7zAJNs= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= @@ -305,6 +306,8 @@ github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9G github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= github.com/moistari/rls v0.2.6 h1:0PfId/3t2hC+uSKVvtvlH7UO6k4YLu8/tHR10dgcplQ= github.com/moistari/rls v0.2.6/go.mod h1:2oVpWLhkuUzu2xqRINGnvvlcAGizZGMfMv8UYnntUCg= +github.com/mrobinsn/go-rtorrent v1.8.0 h1:+61aDIP0asy57lRD/uZtmxfE0/gjkHnt3uddOhMKUJ8= +github.com/mrobinsn/go-rtorrent v1.8.0/go.mod h1:CdVq2IwM+JU9D6TnWiQSg9lqZWu6zUfK67YXET2LqIM= github.com/mschoch/smat v0.0.0-20160514031455-90eadee771ae/go.mod h1:qAyveg+e4CE+eKJXWVjKXM4ck2QobLqTDytGJbLLhJg= github.com/mschoch/smat v0.2.0/go.mod h1:kc9mz7DoBKqDyiRL7VZN8KvXQMWeTaVnttLRXOlotKw= github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= @@ -361,6 +364,7 @@ github.com/rs/zerolog v1.20.0/go.mod h1:IzD0RJ65iWH0w97OQQebJEvTZYvsCUm9WVLWBQrJ github.com/rs/zerolog v1.27.0 h1:1T7qCieN22GVc8S4Q2yuexzBb1EqjbgjSH9RohbMjKs= github.com/rs/zerolog v1.27.0/go.mod h1:7frBqO0oezxmnO7GF86FY++uy8I0Tk/If5ni1G9Qc0U= github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= +github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/ryszard/goskiplist v0.0.0-20150312221310-2dfbae5fcf46/go.mod h1:uAQ5PCi+MFsC7HjREoAz1BU+Mq60+05gifQSsHSDG/8= github.com/sasha-s/go-deadlock v0.3.1 h1:sqv7fDNShgjcaxkO0JNcOAlr8B9+cV5Ey/OB71efZx0= github.com/sasha-s/go-deadlock v0.3.1/go.mod h1:F73l+cr82YSh10GxyRI6qZiCgK64VaZjwesgfQ1/iLM= @@ -397,6 +401,7 @@ github.com/tinylib/msgp v1.0.2/go.mod h1:+d+yLhGm8mzTaHzB+wgMYrodPfmZrzkirds8fDW github.com/tinylib/msgp v1.1.0/go.mod h1:+d+yLhGm8mzTaHzB+wgMYrodPfmZrzkirds8fDWklFE= github.com/tinylib/msgp v1.1.2/go.mod h1:+d+yLhGm8mzTaHzB+wgMYrodPfmZrzkirds8fDWklFE= github.com/urfave/cli v1.22.3/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0= +github.com/urfave/cli v1.22.5/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0= github.com/willf/bitset v1.1.9/go.mod h1:RjeCKbqT1RxIR/KWY6phxZiaY1IyutSBfGjNPySAYV4= github.com/willf/bitset v1.1.10/go.mod h1:RjeCKbqT1RxIR/KWY6phxZiaY1IyutSBfGjNPySAYV4= github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= diff --git a/internal/action/rtorrent.go b/internal/action/rtorrent.go new file mode 100644 index 0000000..45e274d --- /dev/null +++ b/internal/action/rtorrent.go @@ -0,0 +1,68 @@ +package action + +import ( + "context" + "io/ioutil" + + "github.com/autobrr/autobrr/internal/domain" + "github.com/autobrr/autobrr/pkg/errors" + + "github.com/mrobinsn/go-rtorrent/rtorrent" +) + +func (s *service) rtorrent(action domain.Action, release domain.Release) ([]string, error) { + s.log.Debug().Msgf("action rTorrent: %v", action.Name) + + var err error + + // get client for action + client, err := s.clientSvc.FindByID(context.TODO(), action.ClientID) + if err != nil { + s.log.Error().Stack().Err(err).Msgf("error finding client: %v", action.ClientID) + return nil, err + } + + if client == nil { + return nil, errors.New("could not find client by id: %v", action.ClientID) + } + + var rejections []string + + if release.TorrentTmpFile == "" { + if err = release.DownloadTorrentFile(); err != nil { + s.log.Error().Err(err).Msgf("could not download torrent file for release: %v", release.TorrentName) + return nil, err + } + } + + // create client + rt := rtorrent.New(client.Host, true) + + tmpFile, err := ioutil.ReadFile(release.TorrentTmpFile) + if err != nil { + return nil, errors.Wrap(err, "could not read torrent file: %v", release.TorrentTmpFile) + } + + var args []*rtorrent.FieldValue + + if action.Label != "" { + args = append(args, &rtorrent.FieldValue{ + Field: "d.custom1", + Value: action.Label, + }) + } + if action.SavePath != "" { + args = append(args, &rtorrent.FieldValue{ + Field: "d.base_path", + Value: action.SavePath, + }) + } + + if err := rt.AddTorrent(tmpFile, args...); err != nil { + return nil, errors.Wrap(err, "could not add torrent file: %v", release.TorrentTmpFile) + } + + s.log.Info().Msgf("torrent with hash %v successfully added to client: '%v'", "", client.Name) + + return rejections, nil +} diff --git a/internal/action/run.go b/internal/action/run.go index 3a26d4b..92dec0c 100644 --- a/internal/action/run.go +++ b/internal/action/run.go @@ -48,6 +48,9 @@ func (s *service) RunAction(action *domain.Action, release domain.Release) ([]st case domain.ActionTypeQbittorrent: rejections, err = s.qbittorrent(*action, release) + case domain.ActionTypeRTorrent: + rejections, err = s.rtorrent(*action, release) + case domain.ActionTypeTransmission: rejections, err = s.transmission(*action, release) diff --git a/internal/domain/action.go b/internal/domain/action.go index c4d7491..feb5762 100644 --- a/internal/domain/action.go +++ b/internal/domain/action.go @@ -54,6 +54,7 @@ const ( ActionTypeQbittorrent ActionType = "QBITTORRENT" ActionTypeDelugeV1 ActionType = "DELUGE_V1" ActionTypeDelugeV2 ActionType = "DELUGE_V2" + ActionTypeRTorrent ActionType = "RTORRENT" ActionTypeTransmission ActionType = "TRANSMISSION" ActionTypeWatchFolder ActionType = "WATCH_FOLDER" ActionTypeWebhook ActionType = "WEBHOOK" diff --git a/internal/domain/client.go b/internal/domain/client.go index 5accf9c..228dc01 100644 --- a/internal/domain/client.go +++ b/internal/domain/client.go @@ -49,6 +49,7 @@ const ( DownloadClientTypeQbittorrent DownloadClientType = "QBITTORRENT" DownloadClientTypeDelugeV1 DownloadClientType = "DELUGE_V1" DownloadClientTypeDelugeV2 DownloadClientType = "DELUGE_V2" + DownloadClientTypeRTorrent DownloadClientType = "RTORRENT" DownloadClientTypeTransmission DownloadClientType = "TRANSMISSION" DownloadClientTypeRadarr DownloadClientType = "RADARR" DownloadClientTypeSonarr DownloadClientType = "SONARR" diff --git a/internal/download_client/connection.go b/internal/download_client/connection.go index a264fd2..3df465d 100644 --- a/internal/download_client/connection.go +++ b/internal/download_client/connection.go @@ -14,6 +14,7 @@ import ( delugeClient "github.com/gdm85/go-libdeluge" "github.com/hekmon/transmissionrpc/v2" + "github.com/mrobinsn/go-rtorrent/rtorrent" ) func (s *service) testConnection(client domain.DownloadClient) error { @@ -24,6 +25,9 @@ func (s *service) testConnection(client domain.DownloadClient) error { case domain.DownloadClientTypeDelugeV1, domain.DownloadClientTypeDelugeV2: return s.testDelugeConnection(client) + case domain.DownloadClientTypeRTorrent: + return s.testRTorrentConnection(client) + case domain.DownloadClientTypeTransmission: return s.testTransmissionConnection(client) @@ -119,6 +123,21 @@ func (s *service) testDelugeConnection(client domain.DownloadClient) error { return nil } +func (s *service) testRTorrentConnection(client domain.DownloadClient) error { + // create client + rt := rtorrent.New(client.Host, true) + name, err := rt.Name() + if err != nil { + return errors.Wrap(err, "error logging into client: %v", client.Host) + } + + s.log.Trace().Msgf("test client connection for rTorrent: got client: %v", name) + + s.log.Debug().Msgf("test client connection for rTorrent: success") + + return nil +} + func (s *service) testTransmissionConnection(client domain.DownloadClient) error { tbt, err := transmissionrpc.New(client.Host, client.Username, client.Password, &transmissionrpc.AdvancedConfig{ HTTPS: client.TLS, diff --git a/web/src/domain/constants.ts b/web/src/domain/constants.ts index 2137ce1..75e4a93 100644 --- a/web/src/domain/constants.ts +++ b/web/src/domain/constants.ts @@ -176,6 +176,11 @@ export const DownloadClientTypeOptions: RadioFieldsetOption[] = [ description: "Add torrents directly to Deluge 2", value: "DELUGE_V2" }, + { + label: "rTorrent", + description: "Add torrents directly to rTorrent", + value: "RTORRENT" + }, { label: "Transmission", description: "Add torrents directly to Transmission", @@ -207,6 +212,7 @@ export const DownloadClientTypeNameMap: Record[] = [ { label: "Original", description: "Original", value: "ORIGINAL" }, { label: "Create subfolder", description: "Create subfolder", value: "SUBFOLDER_CREATE" }, - { label: "Don't create subfolder", description: "Don't create subfolder", value: "SUBFOLDER_NONE" }, + { label: "Don't create subfolder", description: "Don't create subfolder", value: "SUBFOLDER_NONE" } ]; export interface OptionBasic { diff --git a/web/src/forms/settings/DownloadClientForms.tsx b/web/src/forms/settings/DownloadClientForms.tsx index 60100b7..8df3f01 100644 --- a/web/src/forms/settings/DownloadClientForms.tsx +++ b/web/src/forms/settings/DownloadClientForms.tsx @@ -44,7 +44,7 @@ interface InitialValues { } -function FormFieldsDefault() { +function FormFieldsDeluge() { const { values: { tls } } = useFormikContext(); @@ -60,7 +60,7 @@ function FormFieldsDefault() { @@ -115,7 +115,7 @@ function FormFieldsQbit() { {port > 0 && ( @@ -150,6 +150,18 @@ function FormFieldsQbit() { ); } +function FormFieldsRTorrent() { + return ( +
+ +
+ ); +} + function FormFieldsTransmission() { const { values: { tls } @@ -185,9 +197,10 @@ export interface componentMapType { } export const componentMap: componentMapType = { - DELUGE_V1: , - DELUGE_V2: , + DELUGE_V1: , + DELUGE_V2: , QBITTORRENT: , + RTORRENT: , TRANSMISSION: , RADARR: , SONARR: , diff --git a/web/src/screens/filters/action.tsx b/web/src/screens/filters/action.tsx new file mode 100644 index 0000000..0543724 --- /dev/null +++ b/web/src/screens/filters/action.tsx @@ -0,0 +1,544 @@ +import { AlertWarning } from "../../components/alerts"; +import { DownloadClientSelect, NumberField, Select, SwitchGroup, TextField } from "../../components/inputs"; +import { ActionContentLayoutOptions, ActionTypeNameMap, ActionTypeOptions } from "../../domain/constants"; +import React, { Fragment, useRef } from "react"; +import { useQuery } from "react-query"; +import { APIClient } from "../../api/APIClient"; +import { Field, FieldArray, FieldProps, FormikValues } from "formik"; +import { EmptyListState } from "../../components/emptystates"; +import { useToggle } from "../../hooks/hooks"; +import { classNames } from "../../utils"; +import { Dialog, Switch as SwitchBasic, Transition } from "@headlessui/react"; +import { ChevronRightIcon } from "@heroicons/react/solid"; +import { DeleteModal } from "../../components/modals"; +import { CollapsableSection } from "./details"; + +interface FilterActionsProps { + filter: Filter; + values: FormikValues; +} + +export function FilterActions({ filter, values }: FilterActionsProps) { + const { data } = useQuery( + ["filters", "download_clients"], + () => APIClient.download_clients.getAll(), + { refetchOnWindowFocus: false } + ); + + const newAction = { + name: "new action", + enabled: true, + type: "TEST", + watch_folder: "", + exec_cmd: "", + exec_args: "", + category: "", + tags: "", + label: "", + save_path: "", + paused: false, + ignore_rules: false, + skip_hash_check: false, + content_layout: "", + limit_upload_speed: 0, + limit_download_speed: 0, + limit_ratio: 0, + limit_seed_time: 0, + reannounce_skip: false, + reannounce_delete: false, + reannounce_interval: 7, + reannounce_max_attempts: 25, + filter_id: filter.id, + webhook_host: "", + webhook_type: "", + webhook_method: "", + webhook_data: "", + webhook_headers: [] + // client_id: 0, + }; + + return ( +
+ + {({ remove, push }) => ( + +
+
+

Actions

+

+ Add to download clients or run custom commands. +

+
+
+ +
+
+ +
+ {values.actions.length > 0 ? +
    + {values.actions.map((action: Action, index: number) => ( + + ))} +
+ : + } +
+
+ )} +
+
+ ); +} + +interface TypeFormProps { + action: Action; + idx: number; + clients: Array; +} + +const TypeForm = ({ action, idx, clients }: TypeFormProps) => { + switch (action.type) { + case "TEST": + return ( + + ); + case "EXEC": + return ( +
+
+ + +
+
+ ); + case "WATCH_FOLDER": + return ( +
+ +
+ ); + case "WEBHOOK": + return ( +
+ + +
+ ); + case "QBITTORRENT": + return ( +
+
+ + +
+ +
+
+ +
+ + +
+ + +
+
+ + +
+ +
+ + +
+
+
+ + +
+
+ + + +
+ + + +
+
+ + +
+ +
+
+
+ +
+ + )} + + ); +} \ No newline at end of file diff --git a/web/src/screens/filters/details.tsx b/web/src/screens/filters/details.tsx index af3596c..5de5100 100644 --- a/web/src/screens/filters/details.tsx +++ b/web/src/screens/filters/details.tsx @@ -1,34 +1,23 @@ -import React, { Fragment, useRef } from "react"; +import React, { useRef } from "react"; import { useMutation, useQuery } from "react-query"; -import { - NavLink, - Route, - Routes, - useLocation, - useNavigate, - useParams -} from "react-router-dom"; +import { NavLink, Route, Routes, useLocation, useNavigate, useParams } from "react-router-dom"; import { toast } from "react-hot-toast"; -import { Field, FieldArray, FieldProps, Form, Formik, FormikValues, useFormikContext } from "formik"; -import { Dialog, Transition, Switch as SwitchBasic } from "@headlessui/react"; +import { Form, Formik, FormikValues, useFormikContext } from "formik"; import { ChevronDownIcon, ChevronRightIcon } from "@heroicons/react/solid"; import { - CONTAINER_OPTIONS, CODECS_OPTIONS, - RESOLUTION_OPTIONS, - SOURCES_OPTIONS, - ActionTypeNameMap, - ActionTypeOptions, - HDR_OPTIONS, + CONTAINER_OPTIONS, + downloadsPerUnitOptions, FORMATS_OPTIONS, - SOURCES_MUSIC_OPTIONS, + HDR_OPTIONS, + ORIGIN_OPTIONS, + OTHER_OPTIONS, QUALITY_MUSIC_OPTIONS, RELEASE_TYPE_MUSIC_OPTIONS, - OTHER_OPTIONS, - ORIGIN_OPTIONS, - downloadsPerUnitOptions, - ActionContentLayoutOptions + RESOLUTION_OPTIONS, + SOURCES_MUSIC_OPTIONS, + SOURCES_OPTIONS } from "../../domain/constants"; import { queryClient } from "../../App"; import { APIClient } from "../../api/APIClient"; @@ -36,22 +25,20 @@ import { useToggle } from "../../hooks/hooks"; import { classNames } from "../../utils"; import { - NumberField, - TextField, - SwitchGroup, - Select, - MultiSelect, - DownloadClientSelect, + CheckboxField, IndexerMultiSelect, - CheckboxField + MultiSelect, + NumberField, + Select, + SwitchGroup, + TextField } from "../../components/inputs"; import DEBUG from "../../components/debug"; import Toast from "../../components/notifications/Toast"; -import { AlertWarning } from "../../components/alerts"; import { DeleteModal } from "../../components/modals"; import { TitleSubtitle } from "../../components/headings"; -import { EmptyListState } from "../../components/emptystates"; import { TextArea } from "../../components/inputs/input"; +import { FilterActions } from "./action"; interface tabType { name: string; @@ -531,7 +518,7 @@ interface CollapsableSectionProps { defaultOpen?: boolean; } -function CollapsableSection({ title, subtitle, children, defaultOpen }: CollapsableSectionProps) { +export function CollapsableSection({ title, subtitle, children, defaultOpen }: CollapsableSectionProps) { const [isOpen, toggleOpen] = useToggle(defaultOpen ?? false); return ( @@ -628,504 +615,3 @@ export function External() { ); } -interface FilterActionsProps { - filter: Filter; - values: FormikValues; -} - -export function FilterActions({ filter, values }: FilterActionsProps) { - const { data } = useQuery( - ["filters", "download_clients"], - () => APIClient.download_clients.getAll(), - { refetchOnWindowFocus: false } - ); - - const newAction = { - name: "new action", - enabled: true, - type: "TEST", - watch_folder: "", - exec_cmd: "", - exec_args: "", - category: "", - tags: "", - label: "", - save_path: "", - paused: false, - ignore_rules: false, - skip_hash_check: false, - content_layout: "", - limit_upload_speed: 0, - limit_download_speed: 0, - limit_ratio: 0, - limit_seed_time: 0, - reannounce_skip: false, - reannounce_delete: false, - reannounce_interval: 7, - reannounce_max_attempts: 25, - filter_id: filter.id, - webhook_host: "", - webhook_type: "", - webhook_method: "", - webhook_data: "", - webhook_headers: [] - // client_id: 0, - }; - - return ( -
- - {({ remove, push }) => ( - -
-
-

Actions

-

- Add to download clients or run custom commands. -

-
-
- -
-
- -
- {values.actions.length > 0 ? -
    - {values.actions.map((action: Action, index: number) => ( - - ))} -
- : - } -
-
- )} -
-
- ); -} - -interface TypeFormProps { - action: Action; - idx: number; - clients: Array; -} - -const TypeForm = ({ action, idx, clients }: TypeFormProps) => { - switch (action.type) { - case "TEST": - return ( - - ); - case "EXEC": - return ( -
-
- - -
-
- ); - case "WATCH_FOLDER": - return ( -
- -
- ); - case "WEBHOOK": - return ( -
- - -
- ); - case "QBITTORRENT": - return ( -
-
- - -
- -
-
- -
- - -
- - -
-
- - -
- -
- - -
-
-
- - -
-
- - - -
- - - -
-
- - -
- -
-
-
- -
- - )} - - ); -} diff --git a/web/src/types/Download.d.ts b/web/src/types/Download.d.ts index 8062e70..406f8d4 100644 --- a/web/src/types/Download.d.ts +++ b/web/src/types/Download.d.ts @@ -2,6 +2,7 @@ type DownloadClientType = "QBITTORRENT" | "DELUGE_V1" | "DELUGE_V2" | + "RTORRENT" | "TRANSMISSION" | "RADARR" | "SONARR" |