Commit Graph
100 Commits
Author SHA1 Message Date
tcely d4f3b6addf Save the thumbnail URL to a file 2025-07-18 07:38:29 -04:00
tcely 70a26314e5 Set locking_mode to NORMAL explicitly 2025-07-18 07:12:25 -04:00
tcely d619aca56f fixup: restore the not 2025-07-18 06:32:38 -04:00
tcely 1136f20128 Accept playlists also 2025-07-18 06:30:49 -04:00
tcely efe0d5a09c Normalize height before comparing to max_height 2025-07-18 06:20:32 -04:00
tcely f66809113a Update tasks.py 2025-07-18 06:09:52 -04:00
tcely ae75302da4 Update source.py 2025-07-18 06:01:56 -04:00
tcely 106da4616f Store the metadata from channels or playlists 2025-07-18 05:35:34 -04:00
tcely 87459af9e2 Log the failure when the task was already removed 2025-07-17 20:31:20 -04:00
tcely dd03023e99 fixup: add a missing import 2025-07-17 20:12:34 -04:00
tcely 75e083f987 Reschedule the actual task using its TaskHistory instance 2025-07-17 20:10:10 -04:00
tcely 129925af58 Use the TaskHistory.id column 2025-07-17 19:18:01 -04:00
tcely 08823e9f93 Merge branch 'meeb:main' into tcely-download_media_metadata 2025-07-17 04:22:16 -04:00
tcely 8eb34d6905 Avoid the source_post_save signal when indexing 2025-07-16 20:11:27 -04:00
tcely 0d1f1fd821 Avoid the signal games for Media.save 2025-07-16 19:39:33 -04:00
tcely d1344c40cd Clean up tests after debugging 2025-07-16 19:26:16 -04:00
tcely 792646813c Merge branch 'meeb:main' into tcely-download_media_metadata 2025-07-16 18:39:36 -04:00
tcely c4ab3ddda8 fixup: remove unused imports 2025-07-16 12:53:06 -04:00
tcely 342a55b7f9 Remove background_task from signals.py 2025-07-16 12:50:20 -04:00
tcely bfdb4fe911 Remove background_task from views.py 2025-07-16 12:43:01 -04:00
tcely 7447513d32 Update Pipfile 2025-07-16 12:31:15 -04:00
tcely a1d929d8c9 Update Dockerfile 2025-07-16 12:29:45 -04:00
tcely 67614dc8a7 Update ci.yaml 2025-07-16 12:22:47 -04:00
tcely eaf6b593aa Delete config/root/etc/s6-overlay/s6-rc.d/tubesync-network-worker/type 2025-07-16 12:20:37 -04:00
tcely 6af77804a8 Delete config/root/etc/s6-overlay/s6-rc.d/tubesync-network-worker/down-signal 2025-07-16 12:20:27 -04:00
tcely 4be74ea2ae Delete config/root/etc/s6-overlay/s6-rc.d/tubesync-network-worker/dependencies 2025-07-16 12:20:15 -04:00
tcely 5f65e5b31e Delete config/root/etc/s6-overlay/s6-rc.d/tubesync-network-worker/run 2025-07-16 12:19:52 -04:00
tcely d944e4d66b Delete config/root/etc/s6-overlay/s6-rc.d/background-task-workers/type 2025-07-16 12:19:28 -04:00
tcely 88119c66f6 Delete config/root/etc/s6-overlay/s6-rc.d/background-task-workers/contents.d/tubesync-network-worker 2025-07-16 12:19:18 -04:00
tcely a1843476f5 Remove background_task from settings.py 2025-07-16 12:16:32 -04:00
tcely d098bdcf7b Delete config/root/etc/s6-overlay/s6-rc.d/user/contents.d/background-task-workers 2025-07-16 12:12:42 -04:00
tcely 838da6278a Return a query set 2025-07-16 11:47:33 -04:00
tcely a4f43cdb60 Update signals.py 2025-07-16 11:35:52 -04:00
tcely e1b51edeab Remove outdated function calls in views.py 2025-07-16 11:25:39 -04:00
tcely 353baf4a22 fixup: remove unused imports 2025-07-16 11:13:54 -04:00
tcely 2c4765c7f1 Replace download_media_metadata in tasks.py 2025-07-16 11:07:46 -04:00
tcely aecfc89551 Call check_source_directory_exists directly 2025-07-16 07:56:08 -04:00
tcely de0745aa3d Set DEBUG from TUBESYNC_DEBUG in settings.py 2025-07-16 07:44:15 -04:00
tcely eca878eb74 Update tests.py 2025-07-16 07:44:12 -04:00
tcely 62e6b15b31 Close opened files 2025-07-16 07:39:55 -04:00
tcely aa3ea4a59c Create a TaskHistory row before the task is enqueued 2025-07-16 07:39:52 -04:00
tcely 9d6f77e935 Update signals.py 2025-07-16 07:39:45 -04:00
tcely 263f8ece27 Update views.py 2025-07-16 07:39:33 -04:00
tcely 446a8c71e0 Add and use the get_model_task function 2025-07-16 07:39:25 -04:00
tcely 9d11620e2f Create 0004_alter_taskhistory_task_id.py 2025-07-15 17:47:22 -04:00
tcely 4641d5a63d Enforce unique for TaskHistory.task_id 2025-07-15 17:36:06 -04:00
tcely 267adb701a Use download_source_images after editing a Source 2025-07-15 15:10:09 -04:00
tcely d8644f0581 Update wait_for_errors in tasks.py 2025-07-15 06:21:33 -04:00
tcely b0693ec373 Remove the old index_source_task task 2025-07-15 06:02:29 -04:00
tcely d6d73c9b6f Ensure scheduled_at is before end_at for running 2025-07-15 02:00:44 -04:00
tcely a728fa85ee Set TaskHistory.scheduled_at only when huey.scheduled_at_from_task returned a value 2025-07-15 01:48:43 -04:00
tcely 6f910b9a57 Set TaskHistory.scheduled_at when a task is rescheduled too 2025-07-14 23:34:30 -04:00
tcely 0baad2e2a5 Calculate a more accurate number of threads 2025-07-14 20:22:44 -04:00
tcely 2bc1740ff9 Dynamic pool size for PostgreSQL
* Enable `CONN_HEALTH_CHECKS` for both
2025-07-14 19:03:26 -04:00
tcely 627871a1c3 Move the highest priority to the front of the list 2025-07-14 14:53:15 -04:00
tcely 3fc3a6036b Update TaskHistory.scheduled_at when scheduling tasks 2025-07-14 06:44:15 -04:00
tcely c90c115844 Add a reschedule function 2025-07-14 06:28:54 -04:00
tcely e2b4e0a8d1 Call TaskHistory.objects.running 2025-07-14 05:36:58 -04:00
tcely 0d8a917760 Add the running function to TaskHistory.objects 2025-07-14 05:31:51 -04:00
tcely e116a25b5a Update tests.py 2025-07-14 03:49:27 -04:00
tcely ef9715d380 Use connection pooling for PostgreSQL 2025-07-14 03:44:55 -04:00
tcely ff80c75d46 Enforce foreign key constraints 2025-07-14 01:12:30 -04:00
tcely 70465307ef fixup: set operator 2025-07-14 00:42:51 -04:00
tcely 4c877aad78 fixup: imports 2025-07-14 00:39:44 -04:00
tcely 17b98189b9 fixup: imports 2025-07-14 00:38:31 -04:00
tcely 56417485bf Override stoage_class 2025-07-14 00:35:54 -04:00
tcely 50e5f5d463 Manage the tasks databases better 2025-07-13 17:29:44 -04:00
tcely 06adeca92b Remove old database query 2025-07-13 15:04:10 -04:00
tcely 4b14925141 fixup: consistency 2025-07-13 14:55:02 -04:00
tcely 8196896369 fixup: remove an unused import 2025-07-13 14:21:50 -04:00
tcely 34e1ee2d02 Merge branch 'main' into tcely-download_media 2025-07-13 14:16:16 -04:00
tcely 5caca002e6 Provide all keys to format 2025-07-13 13:31:19 -04:00
tcely b60dbf6c9b Remove the to-do comment 2025-07-13 01:56:32 -04:00
tcely 8584731c0a Patch the new function also 2025-07-13 01:55:25 -04:00
tcely b517299fbe Add retry_fatal=True to the call in the new function 2025-07-13 01:51:57 -04:00
tcely 4396283ce1 Add the new original function 2025-07-13 01:49:55 -04:00
tcely 8713fa167a Remove a patch that will break in the next release 2025-07-13 01:11:16 -04:00
tcely 6611f5fe26 Update tests.py 2025-07-13 00:03:15 -04:00
tcely 8dc4fa8d42 Update signals.py 2025-07-12 23:53:59 -04:00
tcely cda2be6434 Update tests.py 2025-07-12 23:49:01 -04:00
tcely 3fb6ea9336 fixup: replace a removed variable 2025-07-12 23:38:35 -04:00
tcely 3d7d6b090c Do not try to delete the old task 2025-07-12 23:33:29 -04:00
tcely b8fcde61c8 Use TaskHistory for the get_media_thumbnail_task function 2025-07-12 23:16:37 -04:00
tcely ecdd47fe8a Update tests.py 2025-07-12 22:57:20 -04:00
tcely 5fc37c40db Update signals.py 2025-07-12 22:32:50 -04:00
tcely 57e6bec516 Remove download_media_thumbnail from tasks.py 2025-07-12 22:18:39 -04:00
tcely 2448f6e83b Use download_media_image for redownloading thumbnails 2025-07-12 22:12:32 -04:00
tcely e2154c8058 Use download_media_image function in Media.copy_thumbnail 2025-07-12 21:37:39 -04:00
tcely 11fdf114d9 Update views.py 2025-07-12 19:44:46 -04:00
tcely fd569b49a8 Update media.py 2025-07-12 19:23:07 -04:00
tcely 967f84d800 Update tests.py 2025-07-12 18:59:20 -04:00
tcely e7d606a7dc Use TaskHistory for the get_media_download_task function 2025-07-12 18:29:21 -04:00
tcely 5c6b95cf63 Remove download_media from tasks.py 2025-07-12 17:49:45 -04:00
tcely d26bc3192b Update signals.py 2025-07-12 16:44:01 -04:00
tcely 3a4f5437cf Use remove_duplicates for save_all_media_for_source tasks 2025-07-12 16:25:11 -04:00
tcely bd82ae5e3e Set verbose_name for refresh_formats tasks 2025-07-12 14:51:00 -04:00
tcely 84c57bcf30 Remove the on_executing_refresh_formats signal handler 2025-07-12 14:29:22 -04:00
tcely ad754374a9 Use remove_duplicates for refresh_formats tasks 2025-07-12 14:25:15 -04:00
tcely 8272f4a27c Create 0003_taskhistory_remove_duplicates.py 2025-07-12 14:11:22 -04:00
tcely 56660302c0 fixup: signals is the import in this file 2025-07-12 14:03:24 -04:00