Robert Dailey
4fef062895
fix: Skip certain lines in guide parser
...
- Lines starting with whitespace
- Admonition lines
4 years ago
Robert Dailey
fc9d51f77f
docs: Linux special note update
...
Mention that the one-liner is good for upgrades
4 years ago
Robert Dailey
b9db8b7ef3
fix: Log warning if a "potential" score is found
...
A potential score is one where a number between brackets is found (e.g.
[100]) but the word "score" is not before it. A warning is logged to
notify the user of a potential issue with the guide itself.
Other changes:
- `Serilog.Sinks.TestCorrelator` package added to test log output
messages.
- New StringUtils class in TestLibrary
- Refactored `Regex.Match()` calls to use new extension method that
allows the match to be directly used as an expression in an `if`
condition while also providing the match object as output.
4 years ago
Robert Dailey
9065932eaa
chore: Remove dependency on global Log instance
...
This makes unit tests that verify log messages break too easily.
Instead, `ILogger` is now injected into objects that need to log things.
4 years ago
Robert Dailey
be25a744f6
wiki: Add ToC to config examples
...
Table of contents
4 years ago
Robert Dailey
899ff1571e
wiki: example for multi-instance, single YAML
4 years ago
Robert Dailey
3b5ff800c5
wiki: Move config examples to its own page
4 years ago
Robert Dailey
8e00fdd67d
Fix broken links to wiki in README
4 years ago
Robert Dailey
bb5c74e0cb
Complete rewrite using C# .NET Core 5
4 years ago
Robert Dailey
ffc5a9df56
Delete existing Python project
4 years ago
Robert Dailey
b7f34c3b52
Print help when run with no arguments
4 years ago
Robert Dailey
2485a587b0
Fix error with Sonarr profiles without tags
...
If a tag was not specified in the YAML configuration, an exception would
occur. Logic has been added to properly check for (and allow) empty tags
elements.
4 years ago
Robert Dailey
93ffbdbbc1
Only send to *darr the qualities that change
...
We only send to Sonarr & Radarr the qualities in a quality definition
that the script supports and changes.
4 years ago
Robert Dailey
dc5ef2b25a
Shorten --config-file option
...
Now is `--config`
4 years ago
Robert Dailey
3aad617219
Radarr quality definition support
4 years ago
Robert Dailey
8c31968bfc
Modularize main logic in the app package
...
Wrote some unit tests to verify proper dispatching of the profile and
server handling.
4 years ago
Robert Dailey
47631c75c2
Update README with new packages required for dev
...
Specifically, added `pytest-mock` requirement and a one-liner to install
all the prerequisites.
4 years ago
Robert Dailey
f128939f57
Fix incorrect path logic for default YAML location
4 years ago
Robert Dailey
30a9bd4018
README: Include YAML config under Features
4 years ago
Robert Dailey
232cc0909e
Include 2 tags in the YAML config tags test case
4 years ago
Robert Dailey
545f1ac289
Sonarr profile tags support in YAML config
...
The user may not specify tags to assign to each release profile type in
the YAML configuration file.
See the README.md for more information.
4 years ago
Robert Dailey
cb44ab36cb
Support for WEB-DL release profile guide
...
* Significant refactoring of parsing logic to generalize it between
anime and web-dl
* Rework exception type hierarchy for Server code
4 years ago
Robert Dailey
7a0c3ba26d
Remove wiki submodule; not required
4 years ago
Robert Dailey
cdc5973cde
Option to treat negative scores as ignored
...
The `--strict-negative-scores` option will take any negative preferred
term scores and move those terms to the "Must Not Contains" (ignored)
field of the release profile.
4 years ago
Robert Dailey
09c24a911d
More flexible release profile header parsing
...
Instead of requiring a specific header depth to know what header
represents a release profile, we now search for 'release profile' in the
header name.
4 years ago
Robert Dailey
2578d82092
Remove superfluous exit() after raise
4 years ago
Robert Dailey
6ae2a4c047
Add configuration file support
...
It allows you to store your Base URI and API Key in a file instead of
continuously providing it via CLI.
4 years ago
Robert Dailey
607d2a8f6f
Implement hybrid quality definition logic
...
The hybrid quality is auto-generated and takes values between the anime
and non-anime tables in the following way:
* The lowest minimum and highest maximum between the non-anime and anime
tables are used as the min/max for each quality in the generated
hybrid table.
* Only 720/1080 qualities are "combined". Qualities outside of this,
such as 2160, use the non-anime min/max values.
4 years ago
Robert Dailey
c5cc2035a8
Sonarr quality definition support
...
From the Quality Definitions (File Sizes) page of the TRaSH guides, you
can now sync the anime or non-anime quality profile to your Sonarr
instance. There is also a hybrid mode but that is not yet implemented.
4 years ago
Robert Dailey
7a5969874a
Introduce unit test framework
...
pytest is now utilize for unit tests. I wrote a single unit test for the
anime markdown parser for now. More will come.
4 years ago
Robert Dailey
2133bfceb9
Rename package from trash -> app
...
This resolves some ambiguities with imports
4 years ago
Robert Dailey
dc3f839203
Modularize python code into a package
4 years ago
Robert Dailey
4059bd71cd
Ability to add tags to release profiles
...
New `--tags` option for adding one or more tags to updated and/or
created release profiles in Sonarr.
4 years ago
Robert Dailey
e84f54806b
Renormalize line endings for all files
4 years ago
Robert Dailey
851d47d244
Fix bug in score regex
...
It would allow matches like `[-10-00]` (a hyphen anywhere in the middle
of a number)
4 years ago
Robert Dailey
61d358ff61
Add regex search for "must contain" section
...
Not tested right now due to this section not being present in the guide.
4 years ago
Robert Dailey
061c4dcde3
Ignore case when searching for score
4 years ago
Robert Dailey
264f19c4f9
README: More roadmap items
4 years ago
Robert Dailey
7c325856c7
New markdown lint JSON file
...
Defines certain rules for markdown linting such as the allowed usage of
`<br>` elements, etc.
4 years ago
Robert Dailey
47663c0ed8
Add wiki as submodule
4 years ago
Robert Dailey
50571ff3a5
Initial Commit
4 years ago