Commit graph

531 commits

Author SHA1 Message Date
soup
37261c9432
refactor(logs): use zerolog instead of log (#797)
fix(logs): use zerolog instead of log
2023-03-30 22:04:44 +02:00
soup
c2fcd91da7
refactor(logs): improve log sanitization performance (#779)
* refactor log sanitization for better performance

* Fix token error, add mutex for safer concurrency

* serve sanitized version directly from memory

* further improvements

made it check for "module":"irc" before running the irc regex checks

* Revert "further improvements"

This reverts commit 260037c3a58e1e760613167d3e15136b313c0612.

* update irc regexes to handle special characters

- added prefixes to the irc patterns
- improved tests

* more improvements for irc regexes

* fixed errors

* another edge case bites the dust

* regex improvements

* lock to 1 worker if cpu cores is 2 or less

* removed unused code

* revert to single thread

Moved regex patterns and replacements into a separate array for easier maintenance and readability.

Optimized the regex patterns that share the same replacement string to avoid redundancy.

Modify SanitizeLogFile to accept io.Writer for direct output

* style

* only check relevant lines

- only check relevant lines
- dont break unless length=0

* revert breaking change

* handle api and auth cases

---------

Co-authored-by: Kyle Sanderson <kyle.leet@gmail.com>
2023-03-26 23:25:23 +02:00
metonym
5fed0921c5
feat(actions): add "don't start" option for rtorrent (#782) 2023-03-26 23:17:44 +02:00
KaiserBh
07b3569cde
enhancement(config): clarify logPath usage (#783)
Added clarity for logPath as people on windows uses backslashes which doesn't work.

Co-authored-by: KaiserBh <kaiserbh@proton.me>
2023-03-26 23:14:07 +02:00
soup
5851b0abe5
feat(filters): use TextArea for webhook data field (#785)
switch to TextArea for webhook data input field
2023-03-26 23:12:22 +02:00
Kyle Sanderson
b6062ffc60
fix(feeds): check settings before unmarshalling (#789) 2023-03-26 23:10:59 +02:00
martylukyy
fe2950f630
fix(indexers): pbay announce bot name (#790)
* fix pbay announce bot name

* add both announce bot names in case of reversal
2023-03-26 23:09:59 +02:00
Kyle Sanderson
f78a067abd
chore(deps): update rls parsing library (#792)
* fix(music): update release naming library

* update sum

* update moistari/rls to v0.5.9

* chore(deps): go mod tidy

---------

Co-authored-by: martylukyy <35452459+martylukyy@users.noreply.github.com>
Co-authored-by: ze0s <ze0s@riseup.net>
2023-03-26 23:08:38 +02:00
soup
e3b6bc738f
fix(filters): drop down menu z-index (#795)
Add z-index to Menu.Items to control stacking order
The animate-ping would show on top of the filter menu on narrow screens
2023-03-26 22:52:17 +02:00
metonym
fd5bc18a54
feat(filters): navigate to edit page on filter creation (#776)
fix: navigate to edit page on filter creation
2023-03-22 22:02:58 +01:00
soup
bcd5128c59
fix(filters): close add new dropdown of focus (#777)
* hide dropdown when clicking outside it

* cleaner code

* cleaned up code

removed uneccessary div
changed to focus:ring-inset on buttons

* revert focus-ring-inset change

will handle this for the entire app in a separate branch

* changed to using headlessui

* added transition to the dropdown

* feat: add export JSON to Discord button

The Discord button exports the filter data in JSON format,
but with Discord-specific formatting.

as requested on Discord
2023-03-22 22:00:47 +01:00
Kyle Sanderson
0564f0bf7a
fix(actions): watch folder (#780)
* fix(macros): Download torrent for watchfolders

* use in-memory torrent for watchfolder

* Update run.go
2023-03-22 21:57:18 +01:00
ze0s
81d494ec5c
fix(feeds): torznab newznab category parsing (#775) 2023-03-19 23:35:33 +01:00
Kyle Sanderson
0d6e23f278
chore(http): set log level to trace (#765) 2023-03-19 22:01:43 +01:00
soup
4ade1b0ecf
feat(logs): sanitize logfile on download (#767)
* initial commit

* handle tleech urls

* improved and simplified regex

* add sanitization status & loading anim for log dl

* removed unused imports

* improved regex

* fixed regex and added tests

* regex improvements and tests

* added unicode matching to saslRegex

* added missing baseurl

* swapped the css animator for a react component

the css version froze when served through a reverse proxy

* optimized regex compilation

---------

Co-authored-by: soup <soup@r4tio.cat>
2023-03-19 21:57:16 +01:00
soup
b04713234c
fix(actions): clear client field when switching action types in filter (#766)
* fix(actions): reset client_id on action swap

* render fix: missing useEffect on some cases

* removed uneccessary amounts of useEffect
2023-03-19 21:53:51 +01:00
ze0s
f68ce40c30
fix(releases): mismatched timestamp in list (#774)
* bugfix: WebUI - Mismatched Timestamps in Releases Page #770

* oops

---------

Co-authored-by: Brett Petch <brettpetch@icloud.com>
2023-03-19 21:40:48 +01:00
Kyle Sanderson
5836fcee63
fix(feeds): implement max_age for torznab/newznab (#763)
* fix(nab): Implement max_age for torznab/newznab

* continue newznab

* continue torznab
2023-03-19 21:26:18 +01:00
metonym
9fed6b3735
feat(actions): rtorrent add folder rename toggle (#756)
* feat(actions): rtorrent add folder rename toggle

* refactor: use content layout
2023-03-19 21:25:53 +01:00
soup
4449df66aa
feat(filters): import/export functionality (#755)
* initial commit

* import working

* some more changes

* import is working

* added text field for import

* made exported json look pretty

* use filter name as title in export

takes the name of the exported filter and add it as title to the json

wont be used for anything on import

* snake case for title

* visual improvements

* added export function to filter dropdown

* added import to filter list

* include empty values on export

this is needed for the import to work

* styled the add button

* reduced needed values for const defaultFilter

this is the minimum required for successful import

* reduced defaultFilter to bits

* Made export and import require minimum values

added "version": "1.0", to export json

* changed filter name

* made the import textfield dynamic

* incremental numbering for imported filter names

Updated the filter import logic to check for existing filter names and
appending incremental number to the filter name if a conflict is found

* reverted changes in details.tsx

* Improved code comments a bit

* add icon and tooltip to filter.actions_count === 0

* changed the 0-action icon to a red animate-ping

- made the tooltip trigger on both the name and the animate-ping hover
- improved colors a bit

* fixed bg color for textarea

made the focus ring less intrusive
2023-03-19 21:22:07 +01:00
Kyle Sanderson
603828be9d
feat(sqlite): commit WAL on startup (#684)
* fix(sqlite): increase page_size to 65536

* fix(db): implement WAL commit on startup

* revert page_size
2023-03-19 21:21:02 +01:00
Kyle Sanderson
ef61331a22
chore(indexers): properly capitalize Aither network (#768) 2023-03-19 21:08:49 +01:00
Kyle Sanderson
a1a5d94fdd
fix(filters): remove requirement for numberfields (#758)
* fix(filters): remove requirement for logScore.

* default to zero on numberfield clear

* code comment for parseInt

---------

Co-authored-by: soup <soup@r4tio.dev>
2023-03-19 21:07:03 +01:00
soup
9c5c2f1a81
fix(autobrrctl): use brr-api for version check (#752)
* use brr-api instead of github directly

* fixed comment

* better error handling

* removed bloat from printing

* added timeout and os.Exit upon errors
2023-03-19 21:04:52 +01:00
bakerboy448
830e719169
fix(newznab): Use valid usenet release protocol for Starrs (#762)
also update comments

Fixes #761
2023-03-19 20:58:47 +01:00
Kyle Sanderson
29bedc532d
fix(macros): torrentdata parsing (#757)
* fix(macros): Fix torrentdata parsing in macros.

* fix action test

* more dead code

* hunting demons

* limit success output
2023-03-19 20:53:42 +01:00
soup
92f2b0ebe3
enhancement(web): emphasize the need for HTTP in SABnzbd host URL (#748)
* emphasize the need for http

* added reverse proxy example
2023-03-11 21:17:08 +01:00
Kyle Sanderson
e6e436936f
chore(web): settings update debug description (#749) 2023-03-11 21:15:35 +01:00
nuxen
371943d144
fix(tags): 24bit Lossless being tagged as Lossless (#743)
* fix(tags): fixed `24bit Lossless` being tagged as `Lossless`

added negation to the Lossless regex to prevent it from matching 24bit Lossless

* fix(tests): modified test to reflect changes in regex
2023-03-07 19:50:38 +01:00
ze0s
cec6809b34
chore: update go deps (#742)
chore: update dependencies
2023-03-05 20:39:36 +01:00
ze0s
59a1bd900e
fix(indexers): add generic newznab definition (#741)
fix(indexers): add Newznab definition
2023-03-05 19:59:55 +01:00
ze0s
6a5d2d2622
build: force disable cgo (#740) 2023-03-05 19:50:47 +01:00
ze0s
6ac3cc79c2
build: always run test job (#739)
build: always run tests
2023-03-05 17:41:57 +01:00
martylukyy
67ff1058e9
feat(downloadclients): make fields required (#715)
* initial commit for DownloadClientForms field validation

* changed behaviour of required fields

* removed validate from download clients

* removed unused const

* removed unused vars

---------

Co-authored-by: soup <soup@r4tio.dev>
2023-03-05 16:13:19 +01:00
soup
25e2dbf9d6
fix(filters): quality multi select not closing (#725)
fix: drop down menu interactions
2023-03-05 16:01:01 +01:00
ze0s
bd2769f3f2
fix(filters): match dv hdr (#736)
fix(filters): match hdr (dv hdr)
2023-03-05 15:35:41 +01:00
soup
2daab695eb
fix(indexers): ncore irc server change (#738) 2023-03-05 15:27:51 +01:00
soup
d172e70046
enhancement(web): stats and releases pretty loading (#731)
* enhancement(web): improved loading message

* dark mode fix

* added skeleton for loading

* placeholder

* handle activitytable loading

* name StatsItems in isLoading

* handling ReleaseTable loading

* made releasetable 10 rows while loading

* derp

* style: simplify loading state

---------

Co-authored-by: soup <soup@r4tio.cat>
Co-authored-by: ze0s <ze0s@riseup.net>
2023-03-04 23:45:43 +01:00
ze0s
65f51da68e
build: run tests before build (#737)
* build: run Go tests before build
2023-03-04 22:22:39 +01:00
Kyle Sanderson
13a74f7cc8
feat: add usenet support (#543)
* feat(autobrr): implement usenet support

* feat(sonarr): implement usenet support

* feat(radarr): implement usenet support

* feat(announce): implement usenet support

* announce: cast a line

* feat(release): prevent unknown protocol transfer

* release: lines for days.

* feat: add newznab and sabnzbd support

* feat: add category to sabnzbd

* feat(newznab): map categories

* feat(newznab): map categories

---------

Co-authored-by: ze0s <43699394+zze0s@users.noreply.github.com>
Co-authored-by: ze0s <ze0s@riseup.net>
2023-03-04 20:27:18 +01:00
Kyle Sanderson
b2d93d50c5
chore(deps): update Go to 1.20 (#726)
* chore(github): Update to go 1.20

* chore(go): enable language functionality in 1.20

* build: update go versions and rename dockerfile.ci
2023-02-28 23:29:51 +01:00
ze0s
ca196f0bf1
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
2023-02-28 22:16:10 +01:00
soup
c6101cc765
feat(indexers): add PTFiles (PTF) (#729)
* feat(indexer): add PTFiles

thanks qmayer for providing it

* encode torrentName
2023-02-26 19:05:14 +01:00
vekvoid
e29cd9d80a
feat(macros): add sprig functions to macros (#733) 2023-02-26 19:02:41 +01:00
ze0s
d100703784
feat(download-clients): porla implement rules (#711)
* feat(downloadclients): Porla implement rules

* feat(downloadclients): Porla add basic auth support

* feat(porla): use new token for auth

* feat(porla): update check can download rules
2023-02-24 19:17:02 +01:00
soup
209e23de4f
fix(web): revert disable freeleech field when using percent (#719)
fix(web): reverted freeleech lock
2023-02-23 23:10:17 +01:00
soup
a6496fc946
feat(autobrrctl): Show latest version in version output (#723)
* initial commit

* initial commit

* fix

* removed unused code

* go mod tidy
2023-02-23 23:08:59 +01:00
soup
2d36a12da8
fix(web): Logs page scroll to bottom (#717)
fix(web): fixed scroll to bottom
2023-02-15 18:53:17 +01:00
ze0s
5607184522
fix(releases): parse isScene as Origins SCENE (#716)
* fix(releases): parse isScene as Origins SCENE

* fix(releases): remove isScene
2023-02-14 22:48:10 +01:00
soup
da416451e5
fix(web): fixed baseurl for log downloads (#713)
fix(Logs): fixed baseurl for log downloads
2023-02-13 20:51:20 +01:00