Commit Graph
1301 Commits
Author SHA1 Message Date
tcely b4c4825c2a Remove redis-server from Dockerfile 2025-02-24 04:30:59 -05:00
meeb 085238308e Merge pull request #754 from tcely/patch-3
Pin `django-background-tasks`
2025-02-24 17:46:48 +11:00
meeb 9e2d564336 Merge pull request #756 from tcely/jellyfin-mediaserver
Jellyfin media server support
2025-02-24 17:46:09 +11:00
meeb 452222aa14 Merge pull request #764 from tcely/patch-17
Be more efficient with `Media.loaded_metadata`
2025-02-24 17:43:41 +11:00
meeb e7032dccf0 Merge pull request #763 from tcely/patch-16
Fix an internal server error
2025-02-24 17:41:12 +11:00
meeb c7a04a2a90 Merge pull request #762 from tcely/patch-15
Optimize `rename_files`
2025-02-24 17:40:45 +11:00
meeb aaaae354cb Merge pull request #757 from tcely/patch-6
Add scheduling delays
2025-02-24 17:40:31 +11:00
meeb 4fbbff5849 Merge pull request #761 from tcely/patch-14
Be more consistent with `fmt`
2025-02-24 17:40:08 +11:00
meeb 43d8f09cac Merge pull request #760 from tcely/patch-12
Update `rename_all_media_for_source`
2025-02-24 17:32:55 +11:00
meeb 83a1a8082b Merge pull request #759 from tcely/patch-10
Move `rename_media` task creation to `Media` post save
2025-02-24 17:32:37 +11:00
meeb a5922a91f9 Merge pull request #758 from tcely/patch-9
Log not existing source pre save
2025-02-24 17:32:18 +11:00
meeb 4ca1c00615 Merge pull request #755 from tcely/patch-5
Check for the database vendor first
2025-02-24 17:31:35 +11:00
tcely 7c2ba576f6 Return a copy instead of modifying the input 2025-02-23 18:20:35 -05:00
tcely 3e2337d4a9 fixup: only return filtered data when appropriate 2025-02-23 17:58:15 -05:00
tcely be0cbd6cd0 Be more efficient with Media.loaded_metadata 2025-02-23 17:47:54 -05:00
tcely 0d73519946 Fix an internal server error 2025-02-22 14:45:53 -05:00
tcely c5c340b58f Optimize rename_files 2025-02-22 12:59:06 -05:00
tcely 9d328df671 We need to keep the repeating index task 2025-02-22 12:08:35 -05:00
tcely b3a21f2e27 fixup: quoting 2025-02-22 11:55:14 -05:00
tcely a9db563990 Be more consistent with fmt
This was the cause of many rename operations.
2025-02-22 11:50:48 -05:00
tcely 56bd3288b4 Match the priority of the other index tasks 2025-02-22 10:38:30 -05:00
tcely 8722a1dbe6 Match the priority of the other index tasks 2025-02-22 10:34:41 -05:00
tcely bf221394c3 Do not make the user wait when they are interacting 2025-02-22 10:27:19 -05:00
tcely 11190ada2d We still need to pin django also 2025-02-22 08:25:32 -05:00
tcely e5d124e807 Update rename_all_media_for_source
Include the recent optimizations.
2025-02-22 08:04:44 -05:00
tcely 526224f1bb Move rename_media task creation to Media post save 2025-02-22 07:29:01 -05:00
tcely b5dcf41097 Log not existing source pre save
I think this is not only possible, but happens regularly.
2025-02-22 07:05:44 -05:00
tcely 599d596368 Add scheduling delays
This is an attempt to stop duplicated tasks from running at the same time.
2025-02-22 06:53:28 -05:00
tcely 976101781d Connect the UI for Jellyfin
* Add Jellyfin media server type

* Add and use `forms_dict` and `long_types` methods

* Add `JellyfinMediaServerForm`

* Use `JellyfinMediaServer`

* Add and use `MediaServerType.handlers_dict` method

* Do not hard-code `plex`

* Also map backwards in `MediaServerType.long_types`

* Use the long server type for URLs

* Loop over media server type names

* Add `MediaServerType.long_type` property

* Add `media_server_types` to template context

* Use the `MediaServerType.members_list` class method

* Port is already part of the URL
2025-02-22 05:49:03 -05:00
tcely e25a9cd228 Merge branch 'meeb:main' into jellyfin-mediaserver 2025-02-21 22:34:33 -05:00
tcely 6a80758c9b Check for the database vendor first 2025-02-21 12:07:32 -05:00
tcely c9bc7bf84e Correct the syntax 2025-02-21 07:44:20 -05:00
tcely b11b906497 Pin django-background-tasks
It's `django-background-tasks` that limits the Django version.
2025-02-21 07:30:26 -05:00
meeb 1f0169ae4b Merge pull request #752 from tcely/patch-2
Process renaming after downloads
2025-02-21 23:06:27 +11:00
tcely 225ff0d64e Process renaming after downloads 2025-02-21 06:54:42 -05:00
meeb 9b25f4b361 Merge pull request #751 from tcely/patch-5
Remove duplicate function
2025-02-21 22:37:47 +11:00
meeb d163c11b14 Merge pull request #750 from tcely/patch-3
Use multiple threads for renaming
2025-02-21 22:37:29 +11:00
meeb 079a9d116d Merge pull request #749 from tcely/patch-2
Do not let one private video hold up the rest
2025-02-21 22:34:51 +11:00
tcely e727e30ece Simplify the get_queryset function 2025-02-21 05:18:00 -05:00
tcely 29197d241a Remove duplicate function 2025-02-21 05:01:29 -05:00
tcely 986dc17013 Use multiple threads for renaming
A single thread is much too slow for hundreds, or more, rename tasks.

With at least two, one thread can be loading while another is being processed. The times when nothing is happening are reduced significantly.
2025-02-21 04:19:12 -05:00
tcely 78977bbdec Limit the try and log what happened for debugging 2025-02-20 23:24:10 -05:00
tcely 95774a0d2c Do not let one private video hold up the rest 2025-02-20 23:16:13 -05:00
meeb f78fa44e0c Merge pull request #747 from tcely/patch-2
Add and use `refresh_formats`
2025-02-20 17:25:12 +11:00
tcely 4591d3867b Ask for formats that might not work and test them 2025-02-19 21:37:55 -05:00
tcely b65a0ff759 Remove the useless "not skipping" logged messages 2025-02-19 18:30:45 -05:00
tcely 5f81c3619f fixup: convert seconds with timedelta 2025-02-19 18:03:17 -05:00
tcely b01af70098 Try to refresh formats after download failed 2025-02-19 17:48:18 -05:00
tcely ad8fa72123 Try to refresh formats while checking media 2025-02-19 17:34:20 -05:00
tcely 16cd0983c9 Add refresh_formats property 2025-02-19 17:18:20 -05:00