Commit Graph
100 Commits
Author SHA1 Message Date
tcely 13e7fc21a8 Use Media.metadata_published 2025-03-19 09:18:51 -04:00
tcely 84e7a23fc9 Avoid using always() 2025-03-19 02:05:33 -04:00
tcely ba8ad20910 Don't push for forks 2025-03-19 01:59:07 -04:00
tcely d31f29aa7c Merge branch 'main' into patch-10 2025-03-19 01:38:31 -04:00
tcely d6785660b8 Don't override FFMPEG_VERSION yet 2025-03-19 01:36:49 -04:00
tcely 35f0dcff55 Remove FFMPEG_DATE value from Dockerfile 2025-03-19 01:35:19 -04:00
tcely f5a30c218b Follow yt-dlp/FFmpeg-Builds/releases automatically 2025-03-19 01:23:02 -04:00
tcely e1f2cd0d85 fixup: indentation 2025-03-19 01:00:06 -04:00
tcely 20959fb4c2 Thumbnail download can proceed without metadata 2025-03-19 00:46:49 -04:00
tcely 3af8a14690 Merge branch 'main' into patch-15 2025-03-19 00:40:56 -04:00
tcely 65f86b1161 Use the default argument 2025-03-19 00:13:23 -04:00
tcely 281268772a Add a default thumbnail URL before metadata is available 2025-03-19 00:02:26 -04:00
tcely abae403a8f Remove extra blank lines 2025-03-18 21:12:18 -04:00
tcely 196c193c41 Merge branch 'main' into patch-15 2025-03-18 21:07:24 -04:00
tcely 1f72718f31 fixup: indentation 2025-03-18 20:15:17 -04:00
tcely d2458a2979 Keep transactions specific to task 2025-03-18 20:12:54 -04:00
tcely 021f4b172a Display progress for checking task 2025-03-18 20:05:14 -04:00
tcely 8f9fbb9a4c Call cleanup_removed_media from within the transaction 2025-03-18 18:25:31 -04:00
tcely 17b82d4264 Schedule update of media servers after deletion loops 2025-03-18 18:13:24 -04:00
tcely 7e721c98a7 Don't update media servers for every Media item 2025-03-18 17:42:06 -04:00
tcely 34eea62c84 Don't log inside the loop 2025-03-18 17:33:28 -04:00
tcely 85fb479c5e Better indexing of inactive sources 2025-03-18 17:22:27 -04:00
tcely c1cc71691a Use shell variables 2025-03-18 11:23:53 -04:00
tcely 4bc510bdad The workflow should work for forks also 2025-03-18 09:31:43 -04:00
tcely b074f6bae9 Switch to NoMetadataException 2025-03-17 12:24:16 -04:00
tcely 5f0323e4af Add NoMetadataException 2025-03-17 12:21:40 -04:00
tcely 8eec7320db Reschedule download tasks when metadata is not ready 2025-03-17 11:43:00 -04:00
tcely ac80c6ce67 Metadata at priority 20 2025-03-17 11:37:21 -04:00
tcely deed3a3393 Reduce the amount of time the database is locked 2025-03-17 09:50:15 -04:00
tcely 5df8500a10 Upgrade psycopg 2025-03-16 17:57:07 -04:00
tcely c2b21c016e Prevent filename from beginning with / 2025-03-16 15:17:11 -04:00
tcely 5401407e6d Apply the patch in youtube.py 2025-03-16 11:54:01 -04:00
tcely b3b4007dcc Change the patched function 2025-03-16 11:50:17 -04:00
tcely 217c0898da Fill in the original function we will patch 2025-03-16 11:47:32 -04:00
tcely 3d4d965880 Create fatal_http_errors.py
This is a sketch of how a new patch is implemented.
It doesn't do anything yet.
2025-03-16 11:39:57 -04:00
tcely f69eed6b44 Base request delay on the number of tasks running 2025-03-15 21:55:33 -04:00
tcely ec45f29e1d Use smaller transactions 2025-03-15 21:05:39 -04:00
tcely 7ff1fa3e0c Add the default extra too 2025-03-15 16:40:18 -04:00
tcely 40e4d98ef4 Use the curl-cffi extra to support impersonate option 2025-03-15 15:57:44 -04:00
tcely 5383d57946 Remove an unnecessary rm 2025-03-15 12:40:43 -04:00
tcely 9021411037 Reorganize layers for better caching 2025-03-15 12:24:43 -04:00
tcely 8dc2455bfa Use the tubesync-basestage 2025-03-15 11:53:58 -04:00
tcely ed46bf96f8 Set to None for empty strings 2025-03-15 11:21:55 -04:00
tcely 0ba16d08d7 Add geo_verification_proxy to default yt-dlp settings 2025-03-15 11:19:08 -04:00
tcely 22a7cb76b0 Clean up more tasks for deleted sources 2025-03-15 11:09:43 -04:00
tcely 6507499047 Merge branch 'meeb:main' into patch-10 2025-03-14 16:04:22 -04:00
tcely 7997b42ca6 Do not use keyword arguments with the underlying function 2025-03-14 15:45:22 -04:00
tcely 51a6a08f9c This task is being called from a transaction already 2025-03-14 15:42:03 -04:00
tcely b18760082f fixup! Add and use delete_all_media_for_source task 2025-03-14 15:32:52 -04:00
tcely 1d3e880c95 fixup! Add Source.is_active property 2025-03-14 15:24:48 -04:00
tcely 0549438543 fixup! Do not update media servers about media from inactive sources 2025-03-14 15:16:31 -04:00
tcely 9683a22fae Merge branch 'main' into patch-17 2025-03-14 15:05:33 -04:00
tcely 393330a99f Remove an extra blank line 2025-03-14 15:03:22 -04:00
tcely 8314019781 Remove timing measurement from tasks.py 2025-03-14 14:59:58 -04:00
tcely fc058a82f7 Map the new task 2025-03-14 13:52:04 -04:00
tcely 81ab9e3c92 Add and use delete_all_media_for_source task 2025-03-14 13:32:49 -04:00
tcely 640f51fe95 Deactivate the Source before deletion 2025-03-14 13:00:08 -04:00
tcely cbed39b798 Log the Source directory path before deleting 2025-03-14 12:02:14 -04:00
tcely 9f171025a6 Remove the index task before trying to delete the Source 2025-03-14 11:33:32 -04:00
tcely 453b9eaa79 Mark the directory for removal after the Source is deleted 2025-03-14 11:32:34 -04:00
tcely bdf9a69f48 Clean up my git status 2025-03-14 08:24:41 -04:00
tcely 247b9f2a72 Update the media server quicker than the default 2025-03-14 08:15:41 -04:00
tcely 9d03c0d5d2 Do not detach the signal 2025-03-14 08:14:29 -04:00
tcely 5a46dce2a1 Do not update media servers about media from inactive sources 2025-03-14 08:11:37 -04:00
tcely 016cb498ab Add Source.deactivate() function 2025-03-14 08:02:06 -04:00
tcely d991b9593d Add Source.is_active property 2025-03-14 07:59:34 -04:00
tcely 30b3f08b17 Merge branch 'main' into patch-6 2025-03-13 10:32:53 -04:00
tcely f99c8fc596 Use set since tuple is dangerous for strings
Even in explicit form tuple used a collection of characters instead of a single string.

I hate that Python has these little traps.
2025-03-13 06:16:01 -04:00
tcely 487e801151 Increase episode number calculation speed 2025-03-13 03:23:27 -04:00
tcely 291631f76f Use DOWNLOAD_ROOT setting instead 2025-03-12 20:40:14 -04:00
tcely 469858a33a Use the DOWNLOADS_BASE_DIR setting 2025-03-12 20:28:08 -04:00
tcely f7dbd0cf82 We can't rename across devices so don't leave /downloads 2025-03-12 20:17:18 -04:00
tcely d1cc05a8f4 Use '/tmp' instead of '/' for odd cases 2025-03-12 20:05:58 -04:00
tcely 408a3e1c95 Save the updated verbose_name of the task 2025-03-12 17:32:19 -04:00
tcely c0355e8f69 Reset task verbose name after the loop ends 2025-03-12 15:46:55 -04:00
tcely 3ad0fad72e Get task functions 2025-03-12 15:38:52 -04:00
tcely ef5b939caf Check the copied nginx configuration
Checking before the copy doesn't help.

Fixes #804
2025-03-12 13:02:55 -04:00
tcely cfb117b555 Tweaked logged message 2025-03-11 21:10:42 -04:00
tcely 89f2f2b0d3 Show progress on tasks page 2025-03-11 17:39:33 -04:00
tcely 3c714859db Rename then check media 2025-03-11 17:14:44 -04:00
tcely af0e300ef1 Download metadata before indexing another source 2025-03-11 16:59:33 -04:00
tcely 552e46faf4 Remove /etc/pip.conf from Dockerfile 2025-03-11 12:00:04 -04:00
tcely c865890f32 Delete pip.conf 2025-03-11 11:56:55 -04:00
tcely f0f7edfd47 Add PySocks
Upgrade to the latest, if the OS version is too old.
2025-03-11 09:28:26 -04:00
tcely aa54a88cdb Add urllib3[socks] and requests[socks]
These each have slightly different version requirements for `PySocks`.
2025-03-11 09:25:57 -04:00
tcely 2cd33672af Remove python3-python-socks 2025-03-11 09:05:38 -04:00
tcely 092e5ef54c Add python3-socks 2025-03-11 08:38:25 -04:00
tcely 7db0048f80 Remove requests[socks] from Pipfile 2025-03-11 08:25:57 -04:00
tcely 239cfca534 Use socks support from the operating system 2025-03-11 08:24:02 -04:00
tcely e174c42bf5 Remove explicit django-compressor
Also, add some of the useful optional dependencies.
2025-03-11 08:14:23 -04:00
tcely 8d65b57852 Remove explicit libsass
We need this to use the package added in #808.
2025-03-11 07:26:35 -04:00
tcely 08fb55eb64 fixup: we don't need to assign self 2025-03-11 06:59:40 -04:00
tcely 76c60830eb Positive timing values 2025-03-11 06:54:33 -04:00
tcely d69866ded8 fixup: call function with instance 2025-03-11 05:45:00 -04:00
tcely 5f11779dc2 Time some index functions 2025-03-11 05:17:46 -04:00
tcely 3f10e45e6a Add timing and profiling decorators 2025-03-10 20:26:47 -04:00
tcely 27955d7b7b Improve checking media efficiency 2025-03-10 16:42:25 -04:00
tcely 79ed138aa1 fixup: typo 2025-03-09 22:45:49 -04:00
tcely 4b3605f65e Use a temporary directory for testing formats 2025-03-09 22:31:56 -04:00
tcely 84d42fb2ab Add more logging to get_media_info 2025-03-09 22:02:44 -04:00