Commit Graph

765 Commits

Author SHA1 Message Date
tcely
495f62f25a
Display only the name part
`media.filename` is a `str`
`media.filepath` is a `Path`

The second has a simple way to remove directories, so use that instead of any custom string manipulation.
2024-12-22 11:14:32 -05:00
tcely
20527aa3c2
Update tests to not expect strings 2024-12-22 10:26:41 -05:00
tcely
8ebb333ea3
directory_path should be a Path, not str 2024-12-22 10:09:16 -05:00
tcely
4bbdfd2f24
Fix paths for when filename includes sub-directories 2024-12-22 09:44:27 -05:00
tcely
a1248be4ae
Update ci.yaml
Python `3.13` is not expected to work until Django `5.1` and we are currently using `3.2`, so that's not worth testing.

More info: https://code.djangoproject.com/ticket/34900
2024-12-22 05:33:08 -05:00
tcely
256f3254d9
Quote Python versions in ci.yaml 2024-12-22 05:21:28 -05:00
tcely
7c77ed1d78
Update ci.yaml
We can keep testing with Python `3.7` by using `ubuntu-22.04` instead of `ubuntu-latest` according to the `setup-python` issue.

More info: https://github.com/actions/setup-python/issues/962
2024-12-22 04:48:53 -05:00
tcely
6cce0520cb
Update ci.yaml
* Use the current major version tag for actions.
* Add current python versions.
* Remove Python 3.7 as it isn't being setup.
* Don't fail fast, so that one old version won't prevent testing other versions.
2024-12-22 04:28:43 -05:00
meeb
904c57f603
Merge pull request #592 from tcely/patch-6
Some checks failed
Run Django tests for TubeSync / test (3.7) (push) Has been cancelled
Run Django tests for TubeSync / test (3.8) (push) Has been cancelled
Run Django tests for TubeSync / test (3.9) (push) Has been cancelled
Run Django tests for TubeSync / containerise (push) Has been cancelled
Use Path in file_is_editable
2024-12-22 19:06:40 +11:00
meeb
cfb8bef61e
Merge pull request #590 from tcely/patch-4
Switch to color option
2024-12-22 19:05:19 +11:00
meeb
63f82a0c54
Merge pull request #589 from tcely/patch-3
Remove forcejson option
2024-12-22 19:04:13 +11:00
meeb
4d2a393474
Merge pull request #587 from tcely/patch-1
Use tempfile for write_text_file
2024-12-22 18:58:35 +11:00
tcely
42a1033e7e
Rename old_youtube_cache_dirs
It makes sense to do this here because anyone who had the previous setting was, more than likely, using this file.
2024-12-22 02:42:30 -05:00
tcely
2f89c333a4
yt_dlp controls this directory
It's probably safe, and `yt_dlp` plays nicely when cleaning up, but this is more correct.
2024-12-22 01:52:15 -05:00
tcely
b9eb28fd36
There is a /config/cache directory we can safely use 2024-12-22 01:45:16 -05:00
tcely
2c26936035
fixup: remove the --no-cache-dir option 2024-12-21 20:23:47 -05:00
tcely
a2c97d2791
pipenv did not run with that option 2024-12-21 20:22:08 -05:00
tcely
f4c070ada7
Reduce image size and keep pycache in a volume
Not only are volumes typically faster to access than the image overlay, the cachee can be reused between containers.
2024-12-21 20:08:36 -05:00
tcely
abfa8ca042
Do not log when the skip state remains unchanged 2024-12-21 17:01:13 -05:00
tcely
f88df0d4e6
Manually skipped items do not need additional filtering 2024-12-21 16:46:17 -05:00
tcely
6c757185db
Do not try to skip already skipped media
Logically these functions can only mark media instances as skipped, so running them for media instances that are already marked that way is a waste of resources.
2024-12-21 16:19:26 -05:00
Richard Hyde
384d8a530d Merge branch 'handle_member_only_videos' of github.com:RichardHyde/tubesync into handle_member_only_videos 2024-12-21 14:20:23 +00:00
Richard Hyde
8f0e6c381f Removed filter ignore case change for pull request 2024-12-21 14:16:16 +00:00
Richard Hyde
9e04c66aac
Merge branch 'meeb:main' into handle_member_only_videos 2024-12-21 14:11:28 +00:00
tcely
cf951a820a
response is a dict just now
I don't know what I was thinking.
Add some type checking while I am at it.
2024-12-21 07:53:23 -05:00
tcely
54f2663f82
json.loads() expects a string 2024-12-21 06:50:24 -05:00
tcely
16e86ba79a
Accept limited metadata for subscriber_only videos 2024-12-21 05:55:48 -05:00
tcely
60a0600cde
Use Path in file_is_editable 2024-12-21 01:07:57 -05:00
tcely
394f937fcb
Handle raise_no_formats exception
Catching this and checking the message may be the best way to skip members only videos.
2024-12-20 10:07:24 -05:00
tcely
81bfe68034
Switch to color option
Avoids a warning:
`Overwriting params from "color" with "no_color"`
2024-12-20 08:23:35 -05:00
tcely
477753b88d
Remove forcejson option
As far as I can tell, this option only caused a lot of JSON output to be logged.
2024-12-20 08:18:40 -05:00
tcely
e204dea3e2
Use tempfile for write_text_file
This is more atomic and allows for checking `filepath`
before replacing the original file.
2024-12-19 20:32:52 -05:00
Richard Hyde
919d933d4d mark the video as skipped if the sync.tasks.download_media_metadata task fails 2024-12-19 18:44:35 +00:00
Richard Hyde
ca61df2e0b don't add the sync.tasks.download_media_metadata task if the video is skipped or there's already a task running 2024-12-19 18:42:14 +00:00
Richard Hyde
435885ff61 added sync.tasks.download_media_metadata to the task map 2024-12-19 18:39:19 +00:00
Richard Hyde
6ae2676b8f Ignore case when checking the filter 2024-12-19 18:18:33 +00:00
meeb
52865cb5b4
Merge pull request #585 from tcely/patch-1
Some checks failed
Run Django tests for TubeSync / test (3.7) (push) Has been cancelled
Run Django tests for TubeSync / test (3.8) (push) Has been cancelled
Run Django tests for TubeSync / test (3.9) (push) Has been cancelled
Run Django tests for TubeSync / containerise (push) Has been cancelled
Remove unused timedelta import
2024-12-18 13:33:15 +11:00
tcely
d85fb92b2e
Remove unused timedelta import 2024-12-17 15:29:34 -05:00
meeb
679f77b6b4
Merge pull request #579 from tcely/patch-4
Some checks failed
Run Django tests for TubeSync / test (3.7) (push) Has been cancelled
Run Django tests for TubeSync / test (3.8) (push) Has been cancelled
Run Django tests for TubeSync / test (3.9) (push) Has been cancelled
Run Django tests for TubeSync / containerise (push) Has been cancelled
Simplify directory_path
2024-12-12 00:07:41 +11:00
meeb
0fc3789cdc
Merge pull request #578 from tcely/patch-1
Remove audio / video directory modification
2024-12-11 23:52:02 +11:00
tcely
de4a15efed
Remove audio / video directory modification 2024-12-11 07:48:39 -05:00
meeb
fcb9803da6 Merge branch 'main' of github.com:meeb/tubesync 2024-12-11 23:44:39 +11:00
meeb
475a26d9dd migration caused by #574 2024-12-11 23:44:28 +11:00
meeb
356f4f1201
Merge pull request #577 from tcely/patch-1
Adjust days_to_keep logic
2024-12-11 23:34:16 +11:00
meeb
6c12244a25 whoops 2024-12-11 23:17:03 +11:00
meeb
2c12bf5797 tidy up settings and readme 2024-12-11 23:04:14 +11:00
tcely
a4794ec3b1
Enable filter_source_cutoff with new logic 2024-12-11 06:59:32 -05:00
meeb
5f28b8be66 tweaks related to #572 2024-12-11 22:56:21 +11:00
meeb
a8997400b2
Merge pull request #572 from jameswlane/main
Add Support for TUBESYNC_DIRECTORY_PREFIX Environment Variable
2024-12-11 22:45:42 +11:00
tcely
bb73cc6c97
Add days_to_keep_date 2024-12-11 06:43:26 -05:00