Commit Graph

16 Commits

Author SHA1 Message Date
Ross
d34ac0e0b5 handle NotImplementedError for backwards compatibility 2025-08-29 20:36:22 +02:00
Ross
4f6829ae9c handle hardlink_to UnsupportedOperation exception the same as OSError + type fixes 2025-08-29 20:32:24 +02:00
Maximilian Dorninger
89f4a76825 Fix regex for importing episodes (#128)
This pull request makes a small but significant change to the
`import_torrent_files` method in `media_manager/movies/service.py`. The
change updates the regular expression used to match subtitle file names,
making it more flexible in recognizing language codes.

*
[`media_manager/movies/service.py`](diffhunk://#diff-57cfa309860beba31573487107eba3f7ef8ef60429c48c02fb262b9f4ff9b8d3L527-R527):
Updated the regular expression in `import_torrent_files` to match
language codes in subtitle file names that are separated by either a dot
(`.`) or a space (` `), instead of only a dot.

It fixes #124.

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-08-01 15:21:55 +02:00
Maximilian Dorninger
35de9629ec Update media_manager/torrent/utils.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-07-31 22:48:15 +02:00
maxDorninger
a095e1987f add function remove_special_characters and use it in the import torrent files functions, it removes characters that break SMB or jellyfin 2025-07-31 22:42:31 +02:00
maxDorninger
c56aebd85d extract logic for downloading torrent file and parsing the magnetlink/torrent file into separate function 2025-07-27 14:42:26 +02:00
maxDorninger
73496f9450 make the import_file function skip files which already exist 2025-07-26 12:42:39 +02:00
maxDorninger
1b784c35c1 add allencompassing config, replace basic config usage with allencompassing config usage 2025-07-10 21:47:37 +02:00
maxDorninger
efc3846860 format files 2025-07-01 16:03:17 +02:00
maxDorninger
3088c65b09 fix bugs which causes imported torrents to not be marked as such, add try-except to extract archive function which prevents the import from stopping if the archives are already extracted, 2025-07-01 11:52:23 +02:00
maxDorninger
b953445fc2 update detection of archives to be more accurate 2025-06-30 22:34:01 +02:00
maxDorninger
66e5c6a2f9 fall back to copying file if hardlinks do not work 2025-06-22 17:24:48 +02:00
maxDorninger
4c414d13ef refactor indexer module imports and format code 2025-06-08 17:51:47 +02:00
maxDorninger
1fddf876c8 refactor torrent module to use dependency injection and decouple tv and torrent module for better separation of concerns 2025-06-08 11:38:47 +02:00
maxDorninger
88c72e3303 switch to uv and remove old logo.svg 2025-05-29 22:33:13 +02:00
maxDorninger
206df8b150 refactor: change folder structure 2025-05-29 15:36:35 +02:00