mirror of https://github.com/mpv-player/mpv
options: rename --watch-later-directory to --watch-later-dir
Same logic as the previous commit.
This commit is contained in:
parent
1370ecfc1b
commit
36de0d784f
|
@ -105,6 +105,7 @@ Interface changes
|
|||
- rename `--override-display-fps` to `--display-fps-override`
|
||||
- rename `--sub-ass-force-style` to `--sub-ass-style-overrides`
|
||||
- rename `--screenshot-directory` to `--screenshot-dir`
|
||||
- rename `--watch-later-directory` to `--watch-later-dir`
|
||||
--- mpv 0.36.0 ---
|
||||
- add `--target-contrast`
|
||||
- Target luminance value is now also applied when ICC profile is used.
|
||||
|
|
|
@ -1030,7 +1030,7 @@ Watch Later
|
|||
|
||||
See `RESUMING PLAYBACK`_.
|
||||
|
||||
``--watch-later-directory=<path>``
|
||||
``--watch-later-dir=<path>``
|
||||
The directory in which to store the "watch later" temporary files.
|
||||
|
||||
If this option is unset, the files will be stored in a subdirectory
|
||||
|
|
|
@ -754,7 +754,7 @@ static const m_option_t mp_opts[] = {
|
|||
OPT_BOOL(write_filename_in_watch_later_config)},
|
||||
{"ignore-path-in-watch-later-config",
|
||||
OPT_BOOL(ignore_path_in_watch_later_config)},
|
||||
{"watch-later-directory", OPT_STRING(watch_later_directory),
|
||||
{"watch-later-dir", OPT_STRING(watch_later_dir),
|
||||
.flags = M_OPT_FILE},
|
||||
{"watch-later-options", OPT_STRINGLIST(watch_later_options)},
|
||||
|
||||
|
@ -888,6 +888,7 @@ static const m_option_t mp_opts[] = {
|
|||
|
||||
{"screenshot-directory", OPT_REPLACED("screenshot-dir")},
|
||||
{"sub-forced-only", OPT_REPLACED("sub-forced-events-only")},
|
||||
{"watch-later-directory", OPT_REPLACED("watch-later-dir")},
|
||||
{0}
|
||||
};
|
||||
|
||||
|
|
|
@ -261,7 +261,7 @@ typedef struct MPOpts {
|
|||
bool position_save_on_quit;
|
||||
bool write_filename_in_watch_later_config;
|
||||
bool ignore_path_in_watch_later_config;
|
||||
char *watch_later_directory;
|
||||
char *watch_later_dir;
|
||||
char **watch_later_options;
|
||||
bool pause;
|
||||
int keep_open;
|
||||
|
|
|
@ -194,7 +194,7 @@ static bool copy_mtime(const char *f1, const char *f2)
|
|||
|
||||
static char *mp_get_playback_resume_dir(struct MPContext *mpctx)
|
||||
{
|
||||
char *wl_dir = mpctx->opts->watch_later_directory;
|
||||
char *wl_dir = mpctx->opts->watch_later_dir;
|
||||
if (wl_dir && wl_dir[0]) {
|
||||
wl_dir = mp_get_user_path(mpctx, mpctx->global, wl_dir);
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue