History

demux_playlist: add --directory-filter-types

Kacper Michajłow committed 2 years ago

Commit 4f1e9e31 parent c54ad697 files · +83 −49Browse files

Showing the changes to DOCS (3 of 7 files). Show all

Unified · Split

3 files
  1. DOCS/interface-changes/autocreate-playlist.txt +3 −3
  2. DOCS/interface-changes/directory-filter-types.txt +1 −0
  3. DOCS/man/options.rst +21 −15
DOCS/interface-changes/autocreate-playlist.txt+3−3
@@ -1,4 +1,4 @@
11 add `--autocreate-playlist`
2−add `--autocreate-playlist-video-exts`
3−add `--autocreate-playlist-audio-exts`
4−add `--autocreate-playlist-image-exts`
2+add `--directory-video-exts`
3+add `--directory-audio-exts`
4+add `--directory-image-exts`
DOCS/interface-changes/directory-filter-types.txt+1−0
@@ -0,0 +1 @@
1+add `--directory-filter-types`
DOCS/man/options.rst+21−15
@@ -4139,30 +4139,36 @@ Demuxer · 4138 unmodified lines
41394139 all. The default is ``auto``, which behaves like ``recursive`` with
41404140 ``--shuffle``, and like ``lazy`` otherwise.
41414141
4142−``--autocreate-playlist=<no|any|exts|same>``
4142+``--directory-filter-types=<video,audio,image>``
4143+ Media file types to filter when opening directory. If the list is empty,
4144+ all files are added to the playlist.
4145+
4146+ This is a string list option. See `List Options`_ for details.
4147+
4148+``--autocreate-playlist=<no|any|filter|same>``
41434149 When opening a local file, act as if the parent directory is opened and
41444150 create a playlist automatically.
41454151
4146− :no: Load a single file (default).
4147− :any: Create a playlist from the parent directory with any file type.
4148− :exts: Create a playlist from the parent directory with files matching
4149− extensions from any list ``autocreate-playlist-*-exts``.
4150− :same: Create a playlist from the parent directory with files matching the
4151− same category as the currently loaded file. One of the
4152− ``autocreate-playlist-*-exts`` is selected based on the input file
4153− and only files with matching extensions are added to the playlist.
4154− If the input file itself is not matched to any extension list,
4155− the playlist is not autogenerated.
4156−
4157−``--autocreate-playlist-video-exts=<ext-list>``
4152+ :no: Load a single file (default).
4153+ :any: Create a playlist from the parent directory with any file type.
4154+ :filter: Create a playlist from the parent directory with files matching
4155+ extensions from any list ``directory-*-exts``.
4156+ :same: Create a playlist from the parent directory with files matching the
4157+ same category as the currently loaded file. One of the
4158+ ``directory-*-exts`` is selected based on the input file
4159+ and only files with matching extensions are added to the playlist.
4160+ If the input file itself is not matched to any extension list,
4161+ the playlist is not autogenerated.
4162+
4163+``--directory-video-exts=<ext1,ext2,...>``
41584164 Video file extension list that is used to match files when using
41594165 ``--autocreate-playlist=<exts|same>``.
41604166
4161−``--autocreate-playlist-audio-exts=<ext-list>``
4167+``--directory-audio-exts=<ext1,ext2,...>``
41624168 Audio file extension list that is used to match files when using
41634169 ``--autocreate-playlist=<exts|same>``.
41644170
4165−``--autocreate-playlist-image-exts=<ext-list>``
4171+``--directory-image-exts=<ext1,ext2,...>``
41664172 Image file extension list that is used to match files when using
41674173 ``--autocreate-playlist=<exts|same>``.
41684174

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t