diff options
author | David Logie <djl@mksh.org> | 2016-09-08 15:50:39 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-09-22 13:46:19 +0200 |
commit | 78b3852f7ec7b4c8df72646e313535acacae1fd9 (patch) | |
tree | 5187458100fb94fee5536e46b824b4e42504ee1d /options | |
parent | 7783f0b7d7037e2420deece510b8315cfe3b8e91 (diff) |
player: add --watch-later-directory option
This option allows the user to set the directory where "watch later"
files are stored.
Signed-off-by: wm4 <wm4@nowhere>
Diffstat (limited to 'options')
-rw-r--r-- | options/options.c | 1 | ||||
-rw-r--r-- | options/options.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/options/options.c b/options/options.c index 8d45c21b8d..cd51842ea3 100644 --- a/options/options.c +++ b/options/options.c @@ -587,6 +587,7 @@ const m_option_t mp_opts[] = { OPT_FLAG("save-position-on-quit", position_save_on_quit, 0), OPT_FLAG("write-filename-in-watch-later-config", write_filename_in_watch_later_config, 0), OPT_FLAG("ignore-path-in-watch-later-config", ignore_path_in_watch_later_config, 0), + OPT_STRING("watch-later-directory", watch_later_directory, 0), OPT_FLAG("ordered-chapters", ordered_chapters, 0), OPT_STRING("ordered-chapters-files", ordered_chapters_files, M_OPT_FILE), diff --git a/options/options.h b/options/options.h index 48654c4296..3e4978f0cb 100644 --- a/options/options.h +++ b/options/options.h @@ -190,6 +190,7 @@ typedef struct MPOpts { int position_save_on_quit; int write_filename_in_watch_later_config; int ignore_path_in_watch_later_config; + char *watch_later_directory; int pause; int keep_open; double image_display_duration; |