Commit graph

98 commits

Author SHA1 Message Date
ze0s
12f49b7b6c
chore: update pkg (#999)
* anacrolix/torrent
* others via go mod tidy
2023-06-26 18:34:03 +02:00
ze0s
ccabe96bdf
feat(irc): view announces per channel (#948)
* feat(irc): add sse to handler

* feat(irc): view and send irc messages per network

* refactor(irc): use id as handlerkey

* refactor(irc): use id as handlerkey

* feat(web): add irc context

* refactor: create sse stream per network channel

* fix(irc): remove non-working wildcard callback handler

* feat: use fork of sse

* chore(deps): update ergo/irc-go to v0.3.0

* fix: clean irc msg before sse publish

* feat: add view channel button

* feat: styling improvements

* feat: show time
2023-05-21 15:51:40 +02:00
ze0s
e40d11aaa9
chore(deps): update autobrr/go-deluge to v1.0.1 (#942)
chore(deps): update autobrr/go-deluge v1.0.1
2023-05-17 18:46:08 +02:00
Kyle Sanderson
4298f39c82
chore(deps): update autobrr/go-qbittorrent (#939)
* fix(i686): statically assign qbit 64bit width ints

* pin to latest push

* chore: update to tag

---------

Co-authored-by: ze0s <43699394+zze0s@users.noreply.github.com>
2023-05-17 18:39:31 +02:00
Kyle Sanderson
2ce82cc687
feat(config): allow config environment variables (#691)
* feat(config): allow config environment variables

* generate secure config default token

* fix: read env vars

* fix: go mod tidy

* fix: revert default port change

* fix: do not ignore default config values

---------

Co-authored-by: ze0s <ze0s@riseup.net>
2023-05-07 21:57:52 +02:00
ze0s
1abc260047
fix(downloadclients): Deluge v1 save path (#915)
fix(downloadclients): Deluge v1 fix save path
2023-05-06 22:56:10 +02:00
ze0s
96e38e649a
feat(downloadclients): rtorrent improve basic auth handling (#914)
* feat: wrap rtorrent client with custom transport

* refactor: move to autobrr/go-rtorrent

* feat: wrap rtorrent client with custom transport

* refactor: move to autobrr/go-rtorrent

* feat(web): update forms
2023-05-06 18:16:34 +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
ze0s
cec6809b34
chore: update go deps (#742)
chore: update dependencies
2023-03-05 20:39:36 +01:00
Kyle Sanderson
af43c98632
fix(filters): add support for year-less titles (#685)
* fix(filters): add support for year-less titles

* chore: update pkg

* fix: broken tests

---------

Co-authored-by: ze0s <ze0s@riseup.net>
2023-02-02 23:45:19 +01:00
ze0s
29da2416ec
feat(clients): add support for qBittorrent 4.4.0+ (#558)
* refactor: move client to go-qbittorrent

* refactor: move client to go-qbittorrent

* feat(downloadclient): cache qbittorrent client

* feat(downloadclient): update qbit

* feat(downloadclient): client test and remove pkg qbit

* feat(downloadclient): update pkg qbit

* fix(release): method

* feat(release): make GetCachedClient concurrent safe

* feat(release): add additional tests for buildLegacyHost

* feat(release): remove branching

* chore: update pkg autobrr/go-qbittorrent to v.1.2.0
2022-12-10 19:25:04 +01:00
xoaaC
2777f8c3cd
fix(indexers): improve animebytes parsing (#477)
* Fixed typo for "Aweomse Raw Novel"
Added one missing whitespace after "manga" tag for "Awesome Live Action Special" test
Changed regex expression to fix AB parsing

* Fixed regex to acknowledge "uploader" var in case there is no tags in the announce.
Added test line for announces without tags.

* chore: update rls package

* fix(release): don't overwrite season and episode
2022-10-13 20:35:48 +02:00
ze0s
bbb8d2fe6e
fix(actions): cross platform watch dir file handling (#458)
* chore: update deps

* fix(actions): cross-platform file handling

* fix(qbittorrent): unrelated failing test
2022-09-10 20:31:46 +02:00
Kyle Sanderson
8b96f29f37
chore(core): update deps (#457) 2022-09-10 00:41:15 +02:00
E7
48d6468503
feat(indexers): TorrentName templating (#381)
* feat(indexers): animebytes improve parsing

* Update animebytes.yaml

fix music parsing

* parse releaseEpisode

* add torrentname template

* improve releaseTags parsing

* add torrentName templating
conditional rendering of group and episode number
add freeleech parsing

* fix(indexers): improve ab releasename parsing

* feat(macros): expose TorrentID, GroupID, and Size

* Revert "feat(macros): expose TorrentID, GroupID, and Size"

This reverts commit dae40116a1cce40f3c18d057d0af697af4407274.

* change year to use parentheses

Co-authored-by: ze0s <ze0s@riseup.net>
Co-authored-by: varoOP <varoOP@protonmail.com>
2022-08-25 14:47:41 +02:00
ze0s
54d7151894
feat(clients): add rTorrent support (#421) 2022-08-21 21:42:07 +02:00
ze0s
b50688159e
feat(feeds): add generic RSS support (#410)
* feat(feeds): add generic rss support

* feat(feeds/web): add generic rss support

* implement rss downloading

* gosum + mod

* re-add size from Custom field.

* implement uploader + category

* sync

* remove double assignment (+torznab)

* didn't save the rss file >.>

* cleanup

* fixfeeds): create rss indexer

* fix(feeds): stop feed

* feat(feeds): support nexusphp rss enclosure link

* feat(feeds): check size for custom size

* fix(feeds): race condition and only stop enabled feeds

* fix(feeds): unify indexer implementation badge

Co-authored-by: Kyle Sanderson <kyle.leet@gmail.com>
2022-08-20 00:34:46 +02:00
ze0s
fa20978d58
feat(api): add apikey support (#408)
* feat(api): add apikey support

* feat(web): api settings crud
2022-08-15 11:58:13 +02:00
Kyle Sanderson
7deac6a781
fix(irc): rewrite handler pipeline (#399)
* fix(irc): rewrite handler pipeline

This might be overkill but the pipeline has been made event driven. I've tested on a couple networks, and bouncing nicks / connections brings it back every time. creating the a different branch from https://github.com/autobrr/autobrr/pull/398 because it's pretty intrusive (and I didn't apply the GUI changes).

* fix(irc): couple adjustments

* fix(irc): deadlocks

* fix: add missing dependency

* fix(irc): remove more locks from connect cmds

* feat(irc): conditional monitoring message

* feat(irc): show unhealthy network in ui

* feat(irc): improve logs and comments
2022-08-12 15:32:02 +02:00
ze0s
6196dcaab9
chore(server): update dependencies (#380)
* fix(filters): failing test

* chore: update go dependencies
2022-07-29 14:31:49 +02:00
Ludvig Lundgren
2a3a839081
feat(notifications): on update available (#352) 2022-07-12 14:47:08 +02:00
Ludvig Lundgren
7eefeb54c1
feat(download-clients): add transmission (#350) 2022-07-10 18:01:58 +02:00
Ludvig Lundgren
0e88117702
feat(logging); improve messages and errors (#336)
* feat(logger): add module context

* feat(logger): change errors package

* feat(logger): update tests
2022-07-05 13:31:44 +02:00
Ludvig Lundgren
f63ace662a
feat(irc): improve reconnect and add notifications (#315)
* refactor(irc): nickserv and methods

* feat(notifications): add new events and refactor send

* feat(irc): handle disconnect reconnect and connect

* feat(irc): update config for ergo local irc server

* feat(irc): retry initial connect

* feat(irc): show nickserv errors
2022-06-29 16:50:38 +02:00
Ludvig Lundgren
41eef4e8be
chore(build): update to Go 18 (#321) 2022-06-26 18:46:35 +02:00
Ludvig Lundgren
aa500fd13d
fix(indexers): indexers store and update (#318)
* fix(indexers): store and update set map

* chore: update go to 1.18
2022-06-19 22:22:27 +02:00
Ludvig Lundgren
b1d7a1f555
fix(logging): timestamp and update pkg (#309) 2022-06-15 23:00:33 +02:00
Ludvig Lundgren
ffada19506
fix:(actions): exec shell expansion (#295)
* chore: add package

* feat(actions): properly parse exec args
2022-06-10 21:11:18 +02:00
Ludvig Lundgren
7957733254
chore(deps): update go deps (#287) 2022-06-01 20:00:11 +02:00
Ludvig Lundgren
91b094f4f4
feat(confg): reload on save and refactor logging (#275)
* feat(confg): reload on save

* refactor(logging): rework
2022-05-20 09:27:01 +02:00
Ludvig Lundgren
e6c151a029
feat: improve release parsing and filtering (#257)
* feat(releases): improve parsing

* refactor: extend filtering add more tests

* feat: improve macro

* feat: add and remove fields

* feat: add freeleech percent to bonus

* feat: filter by origin
2022-04-30 13:43:51 +02:00
Ludvig Lundgren
bb62e724a1
feat: add torznab feed support (#246)
* feat(torznab): initial impl

* feat: torznab processing

* feat: torznab more scheduling

* feat: feeds web

* feat(feeds): create on indexer create

* feat(feeds): update migration

* feat(feeds): restart on update

* feat(feeds): set cron schedule

* feat(feeds): use basic empty state

* chore: remove duplicate migrations

* feat: parse release size from torznab

* chore: cleanup unused code
2022-04-25 12:58:54 +02:00
Ludvig Lundgren
431742fd94
feat: add notifications (#216)
* feat: initial notifications support

* chore: update deps
2022-04-04 19:13:09 +02:00
Ludvig Lundgren
3c323004c0
refactor: change back to modernc sqlite db driver (#120)
* refactor: change to modernc sqlite db driver

* chore: update deps
2022-03-19 17:41:42 +01:00
Ludvig Lundgren
3759964ea1
feat: irc reconnect (#148)
* chore: add and update deps

* feat(irc): change lib add reconnect

* feat: remove irc caps

* feat: add sleep fix irc stop restart
2022-02-26 14:12:21 +01:00
Ludvig Lundgren
2daeedbdc7
Feature: Support multi user per irc network (#78)
* feat: delete irc network in transaction

* feat: use compound key for irc handlers

* chore: update deps

* refactor: start network

* refactor: init irc handler

* indexers: update network name
2022-01-13 21:26:23 +01:00
Ludvig Lundgren
f466657ed4
Fix: Performance issues and sqlite locking (#74)
* fix: performance issues and sqlite locking

* fix: dashboard release stats was reversed

* refactor: open and migrate db

* chore: cleanup
2022-01-11 19:35:27 +01:00
Ludvig Lundgren
9b32831ca6 chore: go mod tidy 2022-01-09 02:41:42 +01:00
Ludvig Lundgren
e03eac24ba
Feature: Support multiple action status per release (#69)
* feat: move release actions to separate table

* chore: update sqlite driver
2022-01-08 15:40:31 +01:00
Ludvig Lundgren
2ea2293745
Feature: Get size by api for ptp btn and ggn (#66)
* chore: add package

* feat: get size by api for ptp and btn

* feat: download and parse torrent if not api

* feat: bypass tls check and load meta from file

* fix: no invite command needed for btn

* feat: add ggn api

* feat: imrpove logging

* feat: build request url

* feat: improve err logging
2022-01-05 23:52:29 +01:00
Ludvig Lundgren
b09796bf7e
Feature: Set and display version info (#63)
* chore: update packages

* feat: show version info

* build: remove ldflags override
2022-01-02 15:18:28 +01:00
Ludvig Lundgren
c4d580eb03
Feature: Support multiline irc parsing (#39)
* feat: initial multiline support

* refactor: handle multiple indexers per network

* wip: setup indexer

* build: add docker compose for testing

* chore: remove temp mock indexers

* chore: update deps

* refactor: update and store network handler

* build: update test compose

* chore: minor cleanup
2021-12-21 21:15:42 +01:00
Ludvig Lundgren
7177e48c02
Feature: Save releases (#36)
* chore: tidy deps

* refactor: database migration

* refactor: store release

* refactor: save release

* chore: add packages

* feat(web): show stats and recent releases

* refactor: simply filter struct

* feat: add eventbus

* chore: cleanup logging

* chore: update packages
2021-11-24 23:18:12 +01:00
Ludvig Lundgren
c02f16b64d
Feature: Download client rules (#18)
* feat(web): add and update download client rules

* feat: add and update download client rules

* feat: add active downloads check

* chore: update pkg

* feat: deluge max active downloads

* feat: use basic rules for deluge

* feat: add as paused

* refactor: download file if needed

* feat: better errors qbit
2021-09-10 16:54:30 +02:00
Ludvig Lundgren
09eb0b1716
Feature: Tail live logs (#27)
* chore: add new yarn.lock

* chore: add pkgs

* feat: push events via server-sent-events

* feat(web): tail live logs

* fix: update irc network

* fix: set baseurl

* fix: headers
2021-09-07 22:23:27 +02:00
Ludvig Lundgren
0c4aaa29b0
Feature: Deluge download client (#12)
* chore: add go-libdeluge package

* feat: implement deluge v1 and v2 clients

* feat(web): handle add and update deluge clients

* chore: temp remove releaseinfo parser
2021-08-20 22:08:32 +02:00
Ludvig Lundgren
40b855bf39
Feature: Auth (#4)
* feat(api): add auth

* feat(web): add auth and refactor

* refactor(web): baseurl

* feat: add autobrrctl cli for user creation

* build: move static assets

* refactor(web): auth guard and routing

* refactor: rename var

* fix: remove subrouter

* build: update default config
2021-08-14 14:19:21 +02:00
Ludvig Lundgren
a838d994a6 feat: add backend 2021-08-11 15:26:17 +02:00