| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
…iles if filter `video_type` is set. - Accept files without extension - Default folder searching is kept as is (using valid video extensions)
|
Note: CI seems to be failing due to tf-macos, merging #3292 may potentially help |
Sorry, something went wrong.
…set of extensions.
|
@deruyter92 Great to add deprecations, definitely agree. Do you think a separate PR for that specifically would be useful, or is it more efficient to merge this directly ? |
Sorry, something went wrong.
There was a problem hiding this comment.
Really nice work overall! Definitely much better to have the video loading centralized, and deprecations are nice.
I added quite a few comments that I hope will help future us avoid mistakes and make things easier to use, happy to discuss if there are any concerns.
I will open a PR for the deprecations, I have a small design suggestion to ensure we can greatly extend and automate the system later if needed, while keeping current design and lightweight code.
Sorry, something went wrong.
* Add structured deprecation info and warnings Introduce a DLCDeprecationWarning and a DeprecationInfo pydantic model to standardize deprecation metadata (kind, target, replacement, since, removed_in, renamed params) with parsing and validation of versions. Revamp deprecated and renamed_parameter decorators to build messages from DeprecationInfo, emit DLCDeprecationWarning, attach metadata to wrapped callables (__deprecated_info__, __deprecated_params__), use ParamSpec/TypeVar typing for wrappers, and enforce error when both old and new kwargs are passed. Switch to packaging.version for version parsing. * Use DLCDeprecationWarning and add metadata tests Replace generic DeprecationWarning checks with DLCDeprecationWarning and import packaging.version.Version. Add tests verifying deprecated decorators attach metadata (including since/removed_in parsed as Version), validate invalid version inputs, and ensure removed_in > since. Also add tests for renamed_parameter behavior (conflicting old+new raises, metadata attachment, and invalid since handling) and small docstring/name preservation assertions. * Add packaging as core dep
There was a problem hiding this comment.
Looks good to me.
Sorry, something went wrong.
…`list_videos_in_folder`
| Back | FazBrowse Home | New Git URL |
Summary
Currently there exist different functions for collecting video paths from a list of directories and files, with slightly different behavior. See #3300.
Old behavior
Issues
Changes
extensions is explicitly set.
extensions is None, or by the given value(s) otherwise.
solves #3300
Details
PR Status
New function signature