rc/config/pipe-viewer/pipe-viewer.conf

133 lines
6.8 KiB
Text
Raw Normal View History

2021-02-14 22:44:41 +00:00
#!/usr/bin/perl
2024-03-18 22:18:01 +00:00
# CLI Pipe Viewer 0.4.5 - configuration file
use utf8;
2021-02-14 22:44:41 +00:00
our $CONFIG = {
2021-08-27 18:37:05 +00:00
api_host => "auto",
2024-03-18 22:18:01 +00:00
audio_quality => "best",
2021-08-27 18:37:05 +00:00
auto_captions => 0,
autoplay_mode => 0,
2024-03-18 22:18:01 +00:00
bypass_age_gate_native => 0,
2022-10-01 10:37:57 +00:00
bypass_age_gate_with_proxy => 0,
2021-08-27 18:37:05 +00:00
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 => "bold", text => "*NO*.", width => 3 },
{ align => "left", color => "bold blue", text => "*AUTHOR*", width => "55%" },
{ align => "right", color => "green", text => "*VIDEOS* videos", width => 14 },
{
align => "right",
color => "green",
text => "*SUBS_SHORT* subs",
width => 10,
},
],
custom_layout_format => [
{ align => "right", color => "bold", text => "*NO*.", width => 3 },
{ align => "left", color => "bold blue", text => "*TITLE*", width => "55%" },
{ align => "left", color => "yellow", text => "*AUTHOR*", width => "15%" },
{ align => "right", color => "green", text => "*AGE_SHORT*", width => 3 },
{ align => "right", color => "green", text => "*VIEWS_SHORT*", width => 5 },
{ align => "right", color => "blue", text => "*TIME*", width => 8 },
],
custom_playlist_layout_format => [
{ align => "right", color => "bold", text => "*NO*.", width => 3 },
{ align => "left", color => "bold blue", text => "*TITLE*", width => "55%" },
{ align => "right", color => "green", text => "*ITEMS* videos", width => 14 },
{ align => "left", color => "magenta", text => "*AUTHOR*", width => "20%" },
],
dash => 1,
date => undef,
debug => 0,
download_and_play => 0,
download_with_wget => 1,
2022-10-01 10:37:57 +00:00
download_with_ytdl => 1,
2021-08-27 18:37:05 +00:00
downloads_dir => ".",
env_proxy => 1,
fat32safe => 0,
2024-03-18 22:18:01 +00:00
features => [],
2021-08-27 18:37:05 +00:00
ffmpeg_cmd => "/usr/bin/ffmpeg",
2021-11-13 01:45:18 +00:00
force_fallback => 0,
2021-08-27 18:37:05 +00:00
fullscreen => 0,
get_captions => 1,
2024-03-18 22:18:01 +00:00
get_subscriptions_in_parallel => 0,
2021-08-27 18:37:05 +00:00
get_term_width => 1,
hfr => 1,
highlight_color => "bold",
highlight_watched => 1,
history => 1,
history_file => "$ENV{HOME}/.config/pipe-viewer/cli-history.txt",
history_limit => 100000,
http_proxy => undef,
ignore_av1 => 0,
2021-11-13 01:45:18 +00:00
ignored_projections => [],
2021-08-27 18:37:05 +00:00
interactive => 1,
keep_original_video => 0,
2022-10-01 10:37:57 +00:00
local_playlist_limit => -1,
2021-08-27 18:37:05 +00:00
maxResults => 20,
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_invidious => 0,
2021-11-13 01:45:18 +00:00
prefer_m4a => 0,
2021-08-27 18:37:05 +00:00
prefer_mp4 => 0,
region => undef,
remove_played_file => 0,
resolution => "720p",
2022-10-01 10:37:57 +00:00
saved_channels_file => "$ENV{HOME}/.config/pipe-viewer/users.txt",
2021-08-27 18:37:05 +00:00
show_video_info => 1,
skip_if_exists => 1,
skip_watched => 0,
split_videos => 1,
srt_languages => ["en", "fr"],
2021-11-13 01:45:18 +00:00
subscribed_channels_file => "$ENV{HOME}/.config/pipe-viewer/subscribed_channels.txt",
2022-10-01 10:37:57 +00:00
subscriptions_lifetime => 600,
2021-11-13 01:45:18 +00:00
subscriptions_limit => 10000,
2021-08-27 18:37:05 +00:00
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* --no-ytdl *VIDEO*",
audio => "--audio-file=*AUDIO*",
cmd => "/usr/bin/mpv",
fs => "--fullscreen",
novideo => "--no-video",
srt => "--sub-file=*SUB*",
},
vlc => {
arg => "--quiet --play-and-exit --no-video-title-show --input-title-format=*TITLE* *VIDEO*",
audio => "--input-slave=*AUDIO*",
cmd => "vlc",
fs => "--fullscreen",
novideo => "--intf=dummy --novideo",
srt => "--sub-file=*SUB*",
},
},
videoDuration => undef,
2021-11-13 01:45:18 +00:00
watch_history => 1,
2022-10-01 10:37:57 +00:00
watch_history_file => "$ENV{HOME}/.config/pipe-viewer/watched.txt",
2021-08-27 18:37:05 +00:00
wget_cmd => "/usr/bin/wget",
2024-03-18 22:18:01 +00:00
youtube_channel_url => "https://www.youtube.com/channel/%s",
youtube_playlist_url => "https://www.youtube.com/playlist?list=%s",
2021-08-27 18:37:05 +00:00
youtube_video_url => "https://www.youtube.com/watch?v=%s",
ytdl => 1,
2021-11-13 01:44:46 +00:00
ytdl_cmd => "/usr/bin/yt-dlp",
2022-10-01 10:37:57 +00:00
ytdlp_comments => 0,
ytdlp_max_comments => 10,
ytdlp_max_replies => 3,
2021-02-14 22:44:41 +00:00
}