Commit Graph
100 Commits
Author SHA1 Message Date
tcely 4f9e0bf949 Rename patches to patch 2025-03-08 10:09:26 -05:00
tcely 19c301ad76 Rename patches to patch 2025-03-08 10:08:32 -05:00
tcely a8fd6ee00b Adjust import 2025-03-08 09:28:24 -05:00
tcely cffe8348c3 Passthrough module for patch 2025-03-08 09:26:40 -05:00
tcely 629ff5cfc8 Use the correct source path 2025-03-08 08:23:38 -05:00
tcely af7d6292af Find should work for old versions too 2025-03-08 08:16:55 -05:00
tcely ca904f37d3 Show me where yt_dlp is loaded from 2025-03-08 08:10:34 -05:00
tcely 1d1cb6dc14 Use Python3_ROOT_DIR environment variable 2025-03-08 08:00:22 -05:00
tcely 2e12737583 Copy patches/yt_dlp for tests 2025-03-08 07:54:27 -05:00
tcely b072b314d2 Create __init__.py 2025-03-08 07:40:07 -05:00
tcely 5f68520496 Use the new patch 2025-03-08 07:29:00 -05:00
tcely d20e995666 Create check_thumbnails.py
Patch to use `check_thumbnails` instead of `check_formats` to mean test downloading every possible thumbnail URL.
2025-03-08 07:25:18 -05:00
tcely 6f349b0f91 Disable proxies for health checking 2025-03-07 23:22:04 -05:00
tcely 7b9819c18d Remove useless duplicated assignment 2025-03-07 21:27:09 -05:00
tcely baec5ad061 Filter latest downloads with download_date IS NOT NULL 2025-03-07 13:26:22 -05:00
tcely dc0e1d7552 Fix 2160 resolution label 2025-03-06 11:06:51 -05:00
tcely 461ccf6017 Removed extra characters
Also, use the new function.
2025-03-06 10:12:44 -05:00
tcely b8503fd9e9 UseMedia.metadata_published‎
It does the same operation, but has logging too.
2025-03-05 16:10:47 -05:00
tcely ad3ada370d Name the buildx step
This allows easy access to the step output variables.
2025-03-05 12:35:01 -05:00
tcely acb74dcc41 Handle the None or '' cases without logs
This was happening way more often than I expected.
2025-03-04 15:51:12 -05:00
tcely 2a0555376e No more errors for None values set in metadata 2025-03-04 15:05:45 -05:00
tcely 5a0d0345a8 Bump ffmpeg 2025-03-04 11:11:40 -05:00
tcely 09d386040d nginx only creates one directory level 2025-03-03 14:09:56 -05:00
tcely 623affef4a Verify nginx configuration for the image 2025-03-03 10:06:47 -05:00
tcely 72d3ce37b9 fixup: remove unneeded spaces 2025-03-03 09:56:39 -05:00
tcely efbbc7a178 Keep a copy of long running web responses 2025-03-03 09:32:00 -05:00
tcely c5e96d6a29 Correct inconsistent spacing in nginx.conf 2025-03-03 09:16:56 -05:00
tcely 663dbd48e1 Adjust nginx timeout 2025-03-03 09:10:53 -05:00
tcely f94474093a Let long running web workers finish 2025-03-03 09:03:29 -05:00
tcely d277619a73 Sort immediate tasks at the start 2025-03-03 08:58:33 -05:00
tcely f905f4cf77 Sort for the user in Python 2025-03-02 20:46:05 -05:00
tcely c090453931 Upgrade multi_key_sort
Use the Python 3.8 argument list.

Accept `key_func` to allow customization.
2025-03-02 20:10:38 -05:00
tcely b535f1324e Refactor TasksView.get_context_data
Pulled out a function for adding attributes to mapped tasks.
2025-03-02 19:45:10 -05:00
tcely dc15b2e4ff Add the page count for scheduled also 2025-03-02 01:06:32 -05:00
tcely e604a5e242 Reduce logic and adjust queries 2025-03-02 00:51:35 -05:00
tcely 3abb29e9db Show total errors and how many are from the current page 2025-03-01 23:31:07 -05:00
tcely 0416e1148f Display task errors from the current page 2025-03-01 23:23:06 -05:00
tcely e4a6c54764 Don't just log an unhandled exception
Raising these is important to trigger task failure and rescheduling.
2025-03-01 19:15:13 -05:00
tcely b520d75f20 Fixes from tests 2025-03-01 09:39:54 -05:00
tcely 189569cc82 Use media_file only when it is set 2025-03-01 09:33:22 -05:00
tcely b6efd9dc5e Handle files that weren't renamed too
The filename may be different, do try the old name in the new directory also.
2025-03-01 09:00:36 -05:00
tcely c497a74ebe Don't skip when either path exists 2025-03-01 08:43:34 -05:00
tcely bf90a191a8 Save the existing file to the media_file field
The computed file path is adjusted for the new source directory location, so use this to update the old path to the new path after a source directory is renamed.
2025-03-01 08:39:03 -05:00
tcely 7ed7527815 Set Media.skip to False
This handles a bad interaction between files that were deleted by the user externally and need to be skipped and files that were temporarily indistinguishable from that case.

The source directory changing invalidates the absolute paths, but those should be corrected later. Leaving skip set causes display problems.
2025-03-01 07:43:30 -05:00
tcely 14c3b99ef1 Be better about errors during the renaming process 2025-03-01 04:06:58 -05:00
tcely 3411bac78a Set Media.download_date for imported files 2025-03-01 02:54:56 -05:00
tcely 8b611aa71b There is a _ already 2025-03-01 00:12:17 -05:00
tcely d1f6c8184a Merge directories and remove empty directory 2025-03-01 00:01:50 -05:00
tcely 844fce3c90 Avoid the while loop 2025-02-28 22:59:49 -05:00
tcely 8c465f0afe Handle more cases
This should now handle:

- adding a sub-directory
- removing a sub-directory
2025-02-28 22:51:52 -05:00
tcely f41faa444d Rename to a temporary path then final destination
Fixes #798
2025-02-28 20:45:21 -05:00
tcely fd0743986b Restrict PYTHONPYCACHEPREFIX to pipenv
It turns out `apt` and friends don't play nicely with that variable.
2025-02-28 17:41:59 -05:00
tcely 0703032fcf Be more user-friendly when sorting tasks
The time first, then the priority, if the tasks are at the same time.
2025-02-28 16:51:53 -05:00
tcely b38237803a Do not lose track of downloaded files 2025-02-28 16:24:01 -05:00
tcely a993240b96 Better display of large numbers 2025-02-28 15:50:31 -05:00
tcely ff6a858783 Humanize the numbers for each category
This is important for scheduled higher than 1,000 mostly.
2025-02-28 15:41:33 -05:00
tcely b31e26b964 Allow filtering tasks by source 2025-02-28 15:15:35 -05:00
tcely fdbea30f74 Improve readability 2025-02-28 14:25:45 -05:00
tcely b2c1748d62 Switch to total_scheduled in views.py 2025-02-28 14:16:11 -05:00
tcely 4f32e63047 Switch to total_scheduled in tasks.html 2025-02-28 14:14:57 -05:00
tcely 174d9d46e8 Use scheduled_total instead of scheduled for this page 2025-02-28 14:11:15 -05:00
tcely c81f0854e0 Add scheduled_total to the context 2025-02-28 14:10:07 -05:00
tcely 0786933c5f Tweak the comment 2025-02-28 14:04:29 -05:00
tcely fcc37100c3 python -B is well-behaved
Use the `tmpfs` mount on `/cache` instead of `/tmp` to make this faster.
2025-02-28 13:44:19 -05:00
tcely 63f3df1d5c Clean up __pycache__ directories 2025-02-28 12:45:36 -05:00
tcely b61061d3c1 Keep the rows distinct 2025-02-28 02:10:20 -05:00
tcely 2d4e23a8d7 Pagination for scheduled tasks
Keep showing running and errors on every page.
2025-02-28 01:58:06 -05:00
tcely b78075557a Add pagination for scheduled tasks 2025-02-28 01:32:32 -05:00
tcely ddc9588cbf Set daterange for yt-dlp when indexing 2025-02-27 10:50:00 -05:00
tcely fd4f917b05 Pass days to indexer function 2025-02-27 10:14:33 -05:00
tcely e04562d8be Add the port to the Host header
Without this, port 80 may be assumed, which would be incorrect.
2025-02-27 08:59:21 -05:00
tcely beeaafe246 Use the values from nginx for CSRF Origin checks 2025-02-27 08:51:09 -05:00
tcely e2dd61af66 Pass through forwarded Host & Port 2025-02-27 08:43:14 -05:00
tcely b0ea486302 Prevent unintended unhealthy restarts
When I intentionally set a test container to be down,
I really don't want it to be restarted because it was "unhealthy" for too long
2025-02-26 07:39:23 -05:00
tcely 533c1631b7 Store Media.downloaded_filesize for imported files
Fixes #69
2025-02-25 04:13:02 -05:00
tcely fff42cec09 fixup: remove the extra blank line 2025-02-25 03:36:11 -05:00
tcely 921e053fc3 Remove unnecessary chmod executions
Setting the mode to the same value twice is only wasted effort.
2025-02-25 03:34:02 -05:00
tcely fd423fba88 Check for the cached dictionary first 2025-02-24 14:57:53 -05:00
tcely c9f4a5dc17 Use the standard sqlite3 engine from Django 5.1 2025-02-24 10:42:30 -05:00
tcely 91523edc21 Delete tubesync/tubesync/sqlite3/base.py 2025-02-24 10:40:54 -05:00
tcely 1ad90ad628 Access posix_epoch correctly
Fixes #768
2025-02-24 10:11:06 -05:00
tcely 7ebd23c070 Prevent unintended changes to the cached dictionary 2025-02-24 06:27:23 -05:00
tcely 822db9d039 Delete tubesync/tubesync/celery.py 2025-02-24 04:58:56 -05:00
tcely 2f044c3614 Remove hiredis & redis from Pipfile 2025-02-24 04:54:53 -05:00
tcely a111da9104 Delete config/root/etc/s6-overlay/s6-rc.d/celery-beat/type 2025-02-24 04:39:04 -05:00
tcely 3f93d0ae34 Delete config/root/etc/s6-overlay/s6-rc.d/celery-beat/dependencies 2025-02-24 04:38:53 -05:00
tcely b474e9e817 Delete config/root/etc/s6-overlay/s6-rc.d/celery-beat/run 2025-02-24 04:38:45 -05:00
tcely 3d1cc110ac Delete config/root/etc/s6-overlay/s6-rc.d/celery-worker/type 2025-02-24 04:37:46 -05:00
tcely 1ba97749df Delete config/root/etc/s6-overlay/s6-rc.d/celery-worker/run 2025-02-24 04:37:37 -05:00
tcely 170671d4ec Delete config/root/etc/s6-overlay/s6-rc.d/celery-worker/dependencies 2025-02-24 04:37:25 -05:00
tcely bd5dbbd295 Delete config/root/etc/s6-overlay/s6-rc.d/redis/type 2025-02-24 04:33:28 -05:00
tcely e0b98f34b7 Delete config/root/etc/s6-overlay/s6-rc.d/redis/dependencies 2025-02-24 04:33:14 -05:00
tcely 44910edbb1 Delete config/root/etc/s6-overlay/s6-rc.d/redis/run 2025-02-24 04:33:00 -05:00
tcely 0e4c5b10c9 Delete config/root/etc/redis/redis.conf 2025-02-24 04:32:26 -05:00
tcely b4c4825c2a Remove redis-server from Dockerfile 2025-02-24 04:30:59 -05:00
tcely ce68ba9a01 Drop Python 3.7 as unsupported 2025-02-24 02:51:36 -05:00
tcely 83203254ad Patched for version 1.2.8 2025-02-24 02:47:37 -05:00
tcely eeb1826b05 Upgrade to 1.2.8 for Django 5 support. 2025-02-24 02:45:41 -05: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