From 5110d6bacd47f94a6d90636e24c76d2f1e7ced8e Mon Sep 17 00:00:00 2001 From: Yaroslav Date: Sat, 11 Apr 2020 16:04:36 +0300 Subject: youtube-viewer config changes --- dotfiles/.config/youtube-viewer/api.json | 1 - .../.config/youtube-viewer/youtube-viewer.conf | 25 ++++++++++++---------- 2 files changed, 14 insertions(+), 12 deletions(-) delete mode 120000 dotfiles/.config/youtube-viewer/api.json diff --git a/dotfiles/.config/youtube-viewer/api.json b/dotfiles/.config/youtube-viewer/api.json deleted file mode 120000 index 0a09a21..0000000 --- a/dotfiles/.config/youtube-viewer/api.json +++ /dev/null @@ -1 +0,0 @@ -/home/yaroslav/Documents/creds/youtube-viewer/api.json \ No newline at end of file diff --git a/dotfiles/.config/youtube-viewer/youtube-viewer.conf b/dotfiles/.config/youtube-viewer/youtube-viewer.conf index 407917b..7ef376d 100644 --- a/dotfiles/.config/youtube-viewer/youtube-viewer.conf +++ b/dotfiles/.config/youtube-viewer/youtube-viewer.conf @@ -1,13 +1,13 @@ #!/usr/bin/perl -# Youtube Viewer 3.5.5 - configuration file +# YouTube Viewer 3.7.5 - configuration file our $CONFIG = { auto_captions => 0, autohide_watched => 0, - cache_dir => "/home/yaroslav/.cache/youtube-viewer", + autoplay_mode => 0, + cache_dir => "$ENV{HOME}/.cache/youtube-viewer", captions_dir => "/tmp", - clobber => 0, colors => 1, comments_order => "time", confirm => 0, @@ -21,7 +21,6 @@ our $CONFIG = { dash_support => 1, debug => 0, download_and_play => 0, - download_in_parallel => 0, download_with_wget => 1, downloads_dir => ".", env_proxy => 1, @@ -33,30 +32,33 @@ our $CONFIG = { highlight_color => "bold", highlight_watched => 1, history => 0, - history_file => "/home/yaroslav/.config/youtube-viewer/history.txt", + history_file => "$ENV{HOME}/.config/youtube-viewer/history.txt", history_limit => 10000, hl => "en_US", http_proxy => undef, interactive => 1, keep_original_video => 0, - maxResults => 20, + maxResults => 10, merge_into_mkv => 1, merge_into_mkv_args => "-loglevel warning -c:s srt -c:v copy -c:a copy -disposition:s forced", merge_with_captions => 1, order => undef, page => 1, + prefer_av1 => 0, prefer_mp4 => 0, publishedAfter => undef, publishedBefore => undef, - random_autoplay => 0, regionCode => undef, + remember_watched => 0, remove_played_file => 0, resolution => 1080, results_fixed_width => 0, - results_with_colors => 0, + results_with_colors => 1, results_with_details => 0, safeSearch => undef, + show_video_info => 1, skip_if_exists => 1, + skip_watched => 0, srt_languages => ["en", "es"], subscriptions_order => "relevance", thousand_separator => ",", @@ -73,12 +75,12 @@ our $CONFIG = { srt => "-sub *SUB*", }, mpv => { - arg => "--gpu-context=wayland --really-quiet --title *TITLE* --no-ytdl", - audio => "--audio-file *AUDIO*", + arg => "--gpu-context=wayland --really-quiet --title=*TITLE* --no-ytdl", + audio => "--audio-file=*AUDIO*", cmd => "mpv", fs => "--fullscreen", novideo => "--no-video", - srt => "--sub-file *SUB*", + srt => "--sub-file=*SUB*", }, vlc => { arg => "--quiet --play-and-exit --no-video-title-show --input-title-format *TITLE*", @@ -95,6 +97,7 @@ our $CONFIG = { videoDuration => undef, videoLicense => undef, videoSyndicated => undef, + watched_file => "$ENV{HOME}/.config/youtube-viewer/watched.txt", wget_cmd => "/usr/bin/wget", youtube_video_url => "https://www.youtube.com/watch?v=%s", } -- cgit v1.2.3