Maximilian Dorninger
a39e0d204a
Ruff enable type annotations rule ( #362 )
...
This PR enables the ruff rule for return type annotations (ANN), and
adds the ty package for type checking.
2026-01-06 17:07:19 +01:00
Renan Greca
dd0b439bbe
Fix logging bug in jackett indexer ( #360 )
...
fix MM trying to access non-existent attribute
2026-01-06 14:49:06 +01:00
maxid
d5c41430a6
add back hello word message
2026-01-05 23:05:46 +01:00
Marcel Hellwig
75406cbc64
ruff: add RET lint
...
lints about assign and immediatly returning a variable
2026-01-05 19:30:42 +01:00
Marcel Hellwig
805a6981a6
ruff: enable PTH lint
2026-01-05 19:30:42 +01:00
Marcel Hellwig
acd883df21
ruff: enable PIE lint
...
this just removes needless pass or ...
2026-01-05 19:30:42 +01:00
Marcel Hellwig
f2141ca8b8
ruff: enable PERF lint
...
this complains a lot about using manual append where a list
comprehension would be more suitable
2026-01-05 19:30:42 +01:00
Marcel Hellwig
7182344036
create list from range directly instead of using append
2026-01-05 19:30:42 +01:00
Marcel Hellwig
a34b0f11a6
use single s since we're ignoring cases anyway
2026-01-05 19:30:42 +01:00
Marcel Hellwig
40812c6040
omit return_type in computed field
...
it's calculated from the functions return type, so there's no need to
specifify it
2026-01-05 19:30:42 +01:00
Marcel Hellwig
29476e2008
ruff: enable INT and N lint
...
this renames some files to use snake_case and add Error suffix to custom
exceptions
2026-01-05 19:30:42 +01:00
Marcel Hellwig
29a0d8fe5d
ruff: add INP lint
...
this checks for missing __init__.py files, there was one :)
2026-01-05 19:30:42 +01:00
Marcel Hellwig
55b2dd63d8
ruff: add ARG linter
...
this mostly either removes unused parameters, prefixes them with an
underscore or uses the @override decorator to tell the linter, that that
method comes from a superclass and can't be changed
2026-01-05 19:30:42 +01:00
Marcel Hellwig
6e46b482cb
ruff: enable A lint
2026-01-05 19:30:42 +01:00
Marcel Hellwig
5368cad77a
ruff: add S linter
...
this mostly adds a timeout=60 to all requests
this does mainly wants a timeout to all requests functions, since when
left out they hang infinitly.
I added a timeout of 60s, which is probably way too high, but since
before this there was none, I guess it's an improvement?
2026-01-05 19:30:42 +01:00
Marcel Hellwig
1857cf501c
ruff: enable RUF lint
2026-01-05 19:30:42 +01:00
Marcel Hellwig
a7bb5e1e04
Make proper use of function overloading
...
In preparation of the RUFF lint, I rewrote the function to use
typing.overload.
This is the proper way to accept either two arguments or one argument
2026-01-05 19:30:42 +01:00
Marcel Hellwig
ff013ac76e
ruff: enable I lint
2026-01-05 19:30:42 +01:00
Marcel Hellwig
eac58d2843
ruff: enable FAST lint
...
this mostly is replacing the response_model attribute with a return type
of that function since that's the more idiomatic way to do
2026-01-05 19:30:42 +01:00
Marcel Hellwig
97cb3b5c1e
ruff: enable EM lint
2026-01-05 19:30:42 +01:00
Marcel Hellwig
7ef4e52c81
ruff: enable C4 lint
2026-01-05 19:30:42 +01:00
Marcel Hellwig
2c36adfd75
ruff: Enable B lint
2026-01-05 19:30:42 +01:00
Marcel Hellwig
9ff2dc4b92
rewrite downlaod_post_image function
...
this now uses the proper functions instead of handling with strings
2026-01-05 19:30:00 +01:00
Marcel Hellwig
593e1828cc
remove pillow-avif package
...
it is possible since 11.3 to use avif in the main pillow package,
therefore the avif package is no longer needed
https://github.com/python-pillow/Pillow/pull/5201#issuecomment-3023668716
2026-01-05 19:29:52 +01:00
Maximilian Dorninger
fc691f95bb
fix bugs in MovieService
...
fix some small bugs in MovieService that were caused by the refactor
2026-01-04 23:37:33 +01:00
Maximilian Dorninger
21495653d2
Include show year in season search query
2026-01-04 14:20:38 +01:00
maxid
f144ce1bdf
format files after merge
2026-01-02 16:25:41 +01:00
maxid
2d2afaba50
Merge branch 'master' into fork/strangeglyph/master
...
# Conflicts:
# media_manager/main.py
2026-01-02 16:24:18 +01:00
maxid
a253ffd946
only accept TRUE
2026-01-02 16:21:58 +01:00
maxid
4841d1ed11
fix tvdb search not working
2026-01-02 14:38:58 +01:00
strangeglyph
64f01cc919
Allow frontend files to be followed through symlinks
2026-01-02 12:33:15 +01:00
maxid
edb2001cdc
fix tvdb search: use get method for safe access to image_url and overview
2026-01-02 11:13:23 +01:00
maxid
5f7aa928ed
remove comment
2026-01-02 11:08:57 +01:00
maxid
88464e76dd
remove debug print statement
2026-01-02 11:07:29 +01:00
maxid
02480f1420
fix: add ConflictError exception handler
2026-01-01 21:05:20 +01:00
maxid
3f500eccc6
fix: replace ValueError with ConflictError in movie route
2026-01-01 14:22:19 +01:00
maxid
dd1e5d6621
refactor: update metadata methods to include optional language parameter
2026-01-01 14:21:51 +01:00
maxid
dc7cc98a1a
refactor: enhance error handling in check_if_movie_exists method
2026-01-01 14:01:44 +01:00
maxid
a695a5e3ee
fix: update image endpoint
2026-01-01 14:01:14 +01:00
maxid
e14f19bd45
format files
2025-12-30 00:19:28 +01:00
maxid
7c488e4fae
refactor: improve logging and correct directory deletion in service.py
2025-12-30 00:17:45 +01:00
maxid
95c22fa854
Merge branch 'master' into refactor-code
...
# Conflicts:
# media_manager/movies/service.py
# media_manager/tv/service.py
2025-12-30 00:14:24 +01:00
maxid
40130c6a37
refactor: rename AllEncompassingConfig to MediaManagerConfig
2025-12-29 23:38:17 +01:00
maxid
90c2a1d65b
refactor: split up main.py into multiple files
2025-12-29 23:37:22 +01:00
maxid
51560ae1e9
refactor: remove unneeded comments
2025-12-29 23:01:34 +01:00
maxid
009f743259
refactor: enhance exception handling
2025-12-29 22:54:45 +01:00
maxid
8de3a71bfd
refactor: standardize parameter usage in movie router and service
2025-12-29 22:45:50 +01:00
maxid
35880231e0
refactor: standardize parameter usage in tv router and service
2025-12-29 22:39:39 +01:00
Maximilian Dorninger
d3e12579ac
Merge pull request #324 from briandipalma/extra-spaces
...
fix: only add one space between release year and release ID and fix formatting of dev guide docs
2025-12-29 22:14:14 +01:00
Brian Di Palma
57c94dbd57
feat(importing): Only add one space between release year and release ID
2025-12-29 20:05:51 +00:00