Commit Graph

35 Commits

Author SHA1 Message Date
iPromKnight
c493ef3376 Hotfix category, and roll back RTN to 0.1.8 (#192)
* Hotfix categories

Also roll back RTN to 0.1.8 as regression introduced in 0.2

* bump version
2024-03-30 04:47:36 +00:00
iPromKnight
655a39e35c patch the query with execute (#191) 2024-03-30 01:54:06 +00:00
iPromKnight
cfeee62f6b patch ratio (#190)
* add configurable threshold, default 0.95

* version bump
2024-03-30 01:43:21 +00:00
iPromKnight
c6d4c06d70 hotfix categories from imdb result instead (#189)
* category mapping from imdb

* version bump
2024-03-30 01:26:02 +00:00
iPromKnight
08639a3254 Patch isMovie (#188)
* fix is movie

* version bump
2024-03-30 00:28:35 +00:00
iPromKnight
d430850749 Patch message contract names (#187)
* ensure unique message contract names per collector type

* version bump
2024-03-30 00:09:13 +00:00
iPromKnight
66609c2a46 trigram performance increased and housekeeping (#184)
* add new indexes, and change year column to int

* Change gist to gin, and change year to int

* Producer changes for new gin query

* Fully map the rtn response using json dump from Pydantic

Also updates Rtn to 0.1.9

* Add housekeeping script to reconcile imdb ids.

* Join Torrent onto the ingested torrent table

Ensure that a torrent can always find the details of where it came from, and how it was parsed.

* Version bump for release

* missing quote on table name
2024-03-29 19:01:48 +00:00
iPromKnight
2d78dc2735 version bump for release (#183) 2024-03-28 23:37:35 +00:00
iPromKnight
527d6cdf15 Upgrade RTN to 0.1.8, replace rabbitmq with drop in replacement lavinmq - better performance, lower resource usage. (#182) 2024-03-28 23:35:41 +00:00
iPromKnight
4308a0ee71 [wip] bridge python and c# and bring in rank torrent name (#177)
* [wip] bridge python and c# and bring in rank torrent name

* Container restores package now

Includes two dev scripts to install the python packages locally for debugging purposes.

* Introduce slightly turned title matching scoring, by making it length aware

this should help with sequels such as Terminator 2, vs Terminator etc

* Version bump

Also fixes postgres healthcheck so that it utilises the user from the stack.env file
2024-03-28 10:13:50 +00:00
iPromKnight
6cc857bdc3 rename .env to stack.env (#175) 2024-03-27 12:37:11 +00:00
iPromKnight
cc2adbfca5 Recreate single docker-compose file (#174)
Clean it up - also comment all services
2024-03-27 12:21:40 +00:00
iPromKnight
9a831e92d0 Producer / Consumer / Collector rewrite (#160)
* Converted metadata service to redis

* move to postgres instead

* fix global usings

* [skip ci] optimize wolverine by prebuilding static types

* [skip ci] Stop indexing mac folder indexes

* [skip ci] producer, metadata and migrations

removed mongodb
added redis cache
imdb meta in postgres
Enable pgtrm
Create trigrams index
Add search meta postgres function

* [skip ci] get rid of node folder, replace mongo with redis in consumer

also wire up postgres metadata searches

* [skip ci] change mongo to redis in the addon

* [skip ci] jackettio to redis

* Rest of mongo removed...

* Cleaner rerunning of metadata - without conflicts

* Add akas import as well as basic metadata

* Include episodes file too

* cascade truncate pre-import

* reverse order to avoid cascadeing

* separate out clean to separate handler

* Switch producer to use metadata matching pre-preocessing dmm

* More work

* Still porting PTN

* PTN port, adding tests

* [skip ci] Codec tests

* [skip ci] Complete Collection handler tests

* [skip ci] container tests

* [skip ci] Convert handlers tests

* [skip ci] DateHandler tests

* [skip ci] Dual Audio matching tests

* [skip ci] episode code tests

* [skip ci] Extended handler tests

* [skip ci] group handler tests

* [skip ci] some broken stuff right now

* [skip ci] more ptn

* [skip ci] PTN now in a separate nuget package, rebased this on the redis changes - i need them.

* [skip ci] Wire up PTN port. Tired - will test tomorrow

* [skip ci] Needs a lot of work - too many titles being missed now

* cleaner. done?

* Handle the date in the imdb search

- add integer function to confirm its a valid integer
- use the input date as a range of -+1 year

* [skip ci] Start of collector service for RD

[skip ci] WIP

Implemented metadata saga, along with channels to process up to a maximum of 100 infohashes each time
The saga will rety for each infohas by requeuing up to three times, before just marking as complete for that infoHash - meaning no data will be updated in the db for that torrent.

[skip ci] Ready to test with queue publishing

Will provision a fanout exchange if it doesn't exist, and create and bind a queue to it. Listens to the queue with 50 prefetch count.
Still needs PTN rewrite bringing in to parse the filename response from real debrid, and extract season and episode numbers if the file is a tvshow

[skip ci] Add Debrid Collector Build Job

Debrid Collector ready for testing

New consumer, new collector, producer has meta lookup and anti porn measures

[skip ci] WIP - moving from wolverine to MassTransit.

 not happy that wolverine cannot effectively control saga concurrency. we need to really.

[skip ci] Producer and new Consumer moved to MassTransit

Just the debrid collector to go now, then to write the optional qbit collector.

Collector now switched to mass transit too

hide porn titles in logs, clean up cache name in redis for imdb titles

[skip ci] Allow control of queues

[skip ci] Update deployment

Remove old consumer, fix deployment files, fix dockerfiles for shared project import

fix base deployment

* Add collector missing env var

* edits to kick off builds

* Add optional qbit deployment which qbit collector will use

* Qbit collector done

* reorder compose, and bring both qbit and qbitcollector into the compose, with 0 replicas as default

* Clean up compose file

* Ensure debrid collector errors if no debrid api key
2024-03-25 23:32:28 +00:00
iPromKnight
9c6c1ac249 Update compose versions 1.0.1, ready for tag push (#163) 2024-03-25 20:38:11 +00:00
purple_emily
c2f94d9f4e Missed a .env one-liner 2024-03-10 00:43:50 +00:00
purple_emily
d8885b23bc Simple formatting preference 2024-03-10 00:43:50 +00:00
purple_emily
79409915cf Run pre-commit 2024-03-08 14:34:53 +00:00
purple_emily
0de303c47e Comment out Caddy 2024-03-08 12:20:57 +00:00
purple_emily
91487a6aa7 Correct indentation issue 2024-03-08 12:16:29 +00:00
purple_emily
0b12a8cbc2 Attempt to tidy up Caddy and Metrics 2024-03-05 10:20:25 +00:00
ben-2357
aebd02927c Removed Caddy from addon compose file 2024-03-04 21:36:04 -06:00
ben-2357
3eaf7cc357 Update docker-compose.yaml 2024-03-04 21:26:51 -06:00
ben-2357
f396dcca3e I've commented out Caddy in the docker-compose.yaml file and included a message describing the security vulnerabilities associated with enabling it. 2024-03-04 21:15:04 -06:00
ben-2357
3ae6e5774b Update docker-compose.yaml 2024-03-04 12:22:41 -06:00
iPromKnight
a5bd16e332 update rabbit host in docker-compose 2024-02-29 11:25:22 +00:00
iPromKnight
faad989306 Throw error if new mongo env vars not set in compose 2024-02-28 12:07:46 +00:00
iPromKnight
a25aef8f58 dont restart the metadata service when it completes, and exit if its a single run 2024-02-28 11:51:46 +00:00
iPromKnight
f8d34a3b90 Add metadata env vars and service 2024-02-28 10:26:10 +00:00
iPromKnight
acff67d7ba Cleanup the mongodb env - breaking change
Fixes the consumer tests
2024-02-28 10:14:20 +00:00
funkecoder23
0b8e03e1d8 Add hostname to rabbit mq container
RabbitMQ needs a persistent hostname per https://github.com/docker-library/rabbitmq/issues/392 otherwise it starts with a random one, losing data
2024-02-05 20:08:52 -05:00
Gabisonfire
6bdc5d644f Merge pull request #67 from Gabisonfire/feat/build_workflow
Image build action
2024-02-05 08:22:13 -05:00
Gabisonfire
32dced5f72 Builds and pushes various components images 2024-02-04 21:49:29 -05:00
funkecoder23
101b5c416e Add optional configuration section
Add details about consumer replicas

Add CONSUMER_REPLICAS to .env.example

Change `consumer: deploy: replicas` to use CONSUMER_REPLICAS var to keep user config options in one file
2024-02-04 20:29:28 -05:00
iPromKnight
dae52c1bc4 forgot to update paths - doh 2024-02-04 20:32:08 +00:00
iPromKnight
b773ffcb20 Logging expansion
Adds Promtail and Loki to the metrics stack, configuring them as a datasource in grafana on deployment
Adds a dashboard to monitor the system (logs for producer and consumer)
Restructures the base directory so deployment manifests are moved into a deployments folder
Adds selective labels to producer, consumer and addon so that their logs are ingested by promtail
2024-02-04 19:50:28 +00:00