62 Commits

Author SHA1 Message Date
tcely
6fedfdabd6
Move the resolve_priority_order function to common/utils.py 2026-02-20 17:07:53 -05:00
tcely
5f58a538f0
Add a resolve_priority_order function 2026-02-20 12:21:23 -05:00
tcely
659e46a31f
fixup: remove unused imports 2025-06-02 18:55:36 -04:00
tcely
64cd082406
Remove multi_key_sort from sync/utils.py 2025-06-02 18:40:05 -04:00
tcely
f097b6b4e0
Remove mkdir_p from sync/utils.py 2025-06-02 15:38:36 -04:00
tcely
dc0edef562
Remove list_of_dictionaries from sync/utils.py 2025-06-02 15:31:32 -04:00
tcely
7b23d3b0f0
Remove seconds_to_timestr from sync/utils.py 2025-06-02 14:51:45 -04:00
tcely
6d04d773c3
Remove glob_quote from sync/utils.py 2025-06-02 14:39:07 -04:00
tcely
24105db5cb
Use private directory_and_stem function 2025-05-22 10:49:21 -04:00
tcely
5c2dfca00f
Change the default to not loop 2025-05-22 10:10:07 -04:00
tcely
1415af5001
Allow skipping the loop 2025-05-22 09:53:36 -04:00
tcely
46d2e3c8e7
raise_for_status checks status_code itself 2025-05-02 17:14:07 -04:00
tcely
3a0c4c8fb1
Raise when status_code is not 200: OK 2025-05-02 16:12:25 -04: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
0850470867
Rename the internal function
After removing the assert, the old name was a bit confusing.
2025-02-10 22:57:09 -05:00
tcely
e58fae1f96
Skip over items that are not dictionaries 2025-02-08 20:17:53 -05:00
tcely
208a540bc9
Add and use list_of_dictionaries function 2025-02-08 19:59:00 -05:00
tcely
2205f08124
Remove the assert for lang_codes
The test data doesn't conform to this expectation.
2025-02-08 16:11:45 -05:00
tcely
8bff3b6c24
More stringent checking of types 2025-02-08 16:02:38 -05:00
tcely
cfec876796
Adjust for requested_subtitles layout 2025-02-08 14:14:56 -05:00
tcely
7f64226369
Add more keys to filter
- `heatmap`: is a huge list of tiny "chapters" used to display popularity of sections of the video
- `requested_subtitles`: also has a URL that expires
2025-02-07 14:58:43 -05:00
meeb
ee32f238c4
Merge pull request #586 from tcely/rename-files-with-source-format-issue-185
Rename files after a source format change
2025-01-29 16:42:33 +11:00
tcely
d2641c39cd
Add asr to parsed formats 2025-01-27 14:34:10 -05:00
tcely
9fc773b5c0
Add language_code from response 2025-01-27 03:43:56 -05:00
tcely
a44e856378
Merge branch 'main' into rename-files-with-source-format-issue-185 2025-01-26 10:17:12 -05:00
tcely
3d148fc5aa
Return format_note also 2025-01-24 08:22:46 -05:00
tcely
0f986949e5
Have filter_response return a copy, if requested 2025-01-09 13:36:43 -05:00
tcely
d35f52f8ac
Drop /expire/ URLs from automatic_captions too 2025-01-08 11:31:23 -05:00
tcely
1c432ccce1
Some formats are using a different URL 2025-01-07 13:49:58 -05:00
tcely
7793701228
Simplify results from _url_keys
Also, name the tuple values when using the results.
2025-01-07 13:01:06 -05:00
tcely
c7457e94ac
Check that the drop_key exists 2025-01-07 05:58:50 -05:00
tcely
7b8d11791d
Drop keys from formats that cannot be useful 2025-01-07 05:39:50 -05:00
tcely
431de2e0df
Loop over a set of keys for each URL type 2025-01-07 04:11:14 -05:00
tcely
db25fa8029
Adjusted comment 2025-01-07 03:35:58 -05:00
tcely
2f34fff713
Fixes from testing
The `automatic_captions` has a layer for language codes that I didn't account for.

The type checking was copied and I didn't adjust for the arguments in this function.
2025-01-07 02:55:05 -05:00
tcely
ca75398548
Merge branch 'meeb:main' into filter-metadata-response 2025-01-07 01:35:13 -05:00
tcely
8c22b6c99e
Add response filtering
These functions aren't being used yet, they will be tested against my database before that happens.
2025-01-07 00:05:57 -05:00
tcely
e64f71a970
Don't chmod a+r when it already has those permissions 2025-01-06 10:23:17 -05:00
tcely
fbcd01fe6c
Merge branch 'main' into rename-files-with-source-format-issue-185 2024-12-26 01:08:23 -05:00
meeb
904c57f603
Merge pull request #592 from tcely/patch-6
Use Path in file_is_editable
2024-12-22 19:06:40 +11:00
tcely
60a0600cde
Use Path in file_is_editable 2024-12-21 01:07:57 -05:00
tcely
72e4095354
Use TypeError in glob_quote 2024-12-19 21:26:10 -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
tcely
9168e82e8e
Add glob_quote 2024-12-19 17:20:06 -05:00
tcely
0e18d6d2bf
Don't return suffixes
This isn't useful.
The caller can create a `Path` to get this instead.
2024-12-19 16:46:11 -05:00
tcely
a33620f555
Add directory_and_stem and mkdir_p 2024-12-19 16:09:10 -05:00
tcely
ed44838aa1
Merge branch 'main' into patch-1 2024-12-10 03:11:26 -05:00
tcely
fb663d508f
Uppercase the codec string first, not last 2024-12-05 18:27:46 -05:00
tcely
6fdcc5ffa5
Handle STR0NNN in a generic way
The function should return 'VP9' for:

- vp9.1.2.3
- vp09.4.5.6

As well as other variations.
It also works for avc01 or av01, or any others that fit the pattern.
2024-12-05 17:56:53 -05:00
tcely
ed98f56946 Adjust VP09 vcodec to match VP09 source vcodec 2024-12-05 00:30:32 +00:00