dots/.config/pipe-viewer/pipe-viewer.conf

119 lines
5.9 KiB
Perl

#!/usr/bin/perl
# CLI Pipe Viewer 0.2.2 - configuration file
our $CONFIG = {
api_host => "auto",
auto_captions => 0,
autoplay_mode => 0,
bypass_age_gate_with_proxy => 0,
cache_dir => "$ENV{HOME}/.cache/pipe-viewer",
colors => 1,
comments_order => "top",
confirm => 0,
convert_cmd => "ffmpeg -i *IN* *OUT*",
convert_to => undef,
cookie_file => undef,
copy_caption => 0,
custom_channel_layout_format => [
{ align => "right", color => "white", text => "*NO*.", width => 3 },
{ align => "left", color => "blue", text => "*AUTHOR*", width => "45%" },
{ align => "right", color => "magenta", text => "*VIDEOS* vids", width => 14 },
{
align => "right",
color => "green",
text => "*SUBS_SHORT* subs",
width => 10,
},
],
custom_layout_format => [
{ align => "right", color => "white", text => "*NO*.", width => 3 },
{ align => "left", color => "blue", text => "*TITLE*", width => "45%" },
{ align => "right", color => "magenta", text => "*AUTHOR*", width => 15 },
{ align => "right", color => "yellow", text => "*VIEWS_SHORT*", width => 5 },
{ align => "right", color => "green", text => "*TIME*", width => 8 },
],
custom_playlist_layout_format => [
{ align => "right", color => "white", text => "*NO*.", width => 3 },
{ align => "left", color => "blue", text => "*TITLE*", width => "45%" },
{ align => "right", color => "green", text => "*ITEMS* videos", width => 14 },
{ align => "left", color => "magenta", text => "*AUTHOR*", width => 15 },
],
dash => 1,
date => undef,
debug => 0,
download_and_play => 0,
download_with_wget => 0,
download_with_ytdl => 1,
downloads_dir => "$ENV{HOME}/downloads",
env_proxy => 1,
fat32safe => 0,
ffmpeg_cmd => "ffmpeg",
force_fallback => 0,
fullscreen => 0,
get_captions => 0,
get_term_width => 1,
hfr => 1,
highlight_color => "white",
highlight_watched => 1,
history => 1,
history_file => "$ENV{HOME}/.cache/pipe-viewer/cli-history",
history_limit => 100000,
http_proxy => undef,
ignore_av1 => 0,
ignored_projections => [],
interactive => 1,
keep_original_video => 0,
local_playlist_limit => -1,
maxResults => 25,
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 => "relevance",
page => 1,
prefer_av1 => 0,
prefer_invidious => 0,
prefer_m4a => 0,
prefer_mp4 => 0,
region => undef,
remove_played_file => 0,
resolution => "720p",
saved_channels_file => "$ENV{HOME}/.cache/pipe-viewer/users",
show_video_info => 0,
skip_if_exists => 1,
skip_watched => 0,
split_videos => 1,
srt_languages => ["en", "ru"],
subscribed_channels_file => "$ENV{HOME}/.cache/pipe-viewer/subscribed_channels.txt",
subscriptions_lifetime => 600,
subscriptions_limit => 10000,
thousand_separator => ",",
timeout => undef,
user_agent => undef,
video_filename_format => "*FTITLE* - *ID*.*FORMAT*",
video_player_selected => "mpv",
video_players => {
mpv => {
arg => "--really-quiet --force-media-title=*TITLE* *URL*",
cmd => "mpv",
fs => "--fullscreen",
novideo => "--no-video",
srt => "--sub-file=*SUB*",
},
},
videoCaption => undef,
videoDefinition => undef,
videoDimension => undef,
videoDuration => undef,
videoLicense => undef,
watch_history => 1,
watch_history_file => "$ENV{HOME}/.cache/pipe-viewer/watched",
wget_cmd => "wget",
youtube_video_url => "https://www.youtube.com/watch?v=%s",
ytdl => 1,
ytdl_cmd => "yt-dlp",
ytdlp_comments => 1,
ytdlp_max_comments => 20,
ytdlp_max_replies => 3,
}