|
|
@ -1,6 +1,6 @@ |
|
|
#!/usr/bin/perl |
|
|
#!/usr/bin/perl |
|
|
|
|
|
|
|
|
# CLI Pipe Viewer 0.0.7 - configuration file |
|
|
# CLI Pipe Viewer 0.1.5 - configuration file |
|
|
|
|
|
|
|
|
our $CONFIG = { |
|
|
our $CONFIG = { |
|
|
api_host => "auto", |
|
|
api_host => "auto", |
|
|
@ -48,6 +48,7 @@ our $CONFIG = { |
|
|
env_proxy => 1, |
|
|
env_proxy => 1, |
|
|
fat32safe => 0, |
|
|
fat32safe => 0, |
|
|
ffmpeg_cmd => "/usr/bin/ffmpeg", |
|
|
ffmpeg_cmd => "/usr/bin/ffmpeg", |
|
|
|
|
|
force_fallback => 0, |
|
|
fullscreen => 0, |
|
|
fullscreen => 0, |
|
|
get_captions => 1, |
|
|
get_captions => 1, |
|
|
get_term_width => 1, |
|
|
get_term_width => 1, |
|
|
@ -59,9 +60,9 @@ our $CONFIG = { |
|
|
history_limit => 100000, |
|
|
history_limit => 100000, |
|
|
http_proxy => undef, |
|
|
http_proxy => undef, |
|
|
ignore_av1 => 0, |
|
|
ignore_av1 => 0, |
|
|
|
|
|
ignored_projections => [], |
|
|
interactive => 1, |
|
|
interactive => 1, |
|
|
keep_original_video => 0, |
|
|
keep_original_video => 0, |
|
|
m4a_audio => 1, |
|
|
|
|
|
maxResults => 20, |
|
|
maxResults => 20, |
|
|
merge_into_mkv => 1, |
|
|
merge_into_mkv => 1, |
|
|
merge_into_mkv_args => "-loglevel warning -c:s srt -c:v copy -c:a copy -disposition:s forced", |
|
|
merge_into_mkv_args => "-loglevel warning -c:s srt -c:v copy -c:a copy -disposition:s forced", |
|
|
@ -70,9 +71,9 @@ our $CONFIG = { |
|
|
page => 1, |
|
|
page => 1, |
|
|
prefer_av1 => 0, |
|
|
prefer_av1 => 0, |
|
|
prefer_invidious => 0, |
|
|
prefer_invidious => 0, |
|
|
|
|
|
prefer_m4a => 0, |
|
|
prefer_mp4 => 0, |
|
|
prefer_mp4 => 0, |
|
|
region => undef, |
|
|
region => undef, |
|
|
remember_watched => 0, |
|
|
|
|
|
remove_played_file => 0, |
|
|
remove_played_file => 0, |
|
|
resolution => "720p", |
|
|
resolution => "720p", |
|
|
show_video_info => 1, |
|
|
show_video_info => 1, |
|
|
@ -80,7 +81,8 @@ our $CONFIG = { |
|
|
skip_watched => 0, |
|
|
skip_watched => 0, |
|
|
split_videos => 1, |
|
|
split_videos => 1, |
|
|
srt_languages => ["en", "fr"], |
|
|
srt_languages => ["en", "fr"], |
|
|
subscriptions_order => "relevance", |
|
|
subscribed_channels_file => "$ENV{HOME}/.config/pipe-viewer/subscribed_channels.txt", |
|
|
|
|
|
subscriptions_limit => 10000, |
|
|
thousand_separator => ",", |
|
|
thousand_separator => ",", |
|
|
timeout => undef, |
|
|
timeout => undef, |
|
|
user_agent => undef, |
|
|
user_agent => undef, |
|
|
@ -109,8 +111,10 @@ our $CONFIG = { |
|
|
videoDimension => undef, |
|
|
videoDimension => undef, |
|
|
videoDuration => undef, |
|
|
videoDuration => undef, |
|
|
videoLicense => undef, |
|
|
videoLicense => undef, |
|
|
|
|
|
watch_history => 1, |
|
|
watched_file => "$ENV{HOME}/.config/pipe-viewer/watched.txt", |
|
|
watched_file => "$ENV{HOME}/.config/pipe-viewer/watched.txt", |
|
|
wget_cmd => "/usr/bin/wget", |
|
|
wget_cmd => "/usr/bin/wget", |
|
|
|
|
|
youtube_users_file => "$ENV{HOME}/.config/pipe-viewer/users.txt", |
|
|
youtube_video_url => "https://www.youtube.com/watch?v=%s", |
|
|
youtube_video_url => "https://www.youtube.com/watch?v=%s", |
|
|
ytdl => 1, |
|
|
ytdl => 1, |
|
|
ytdl_cmd => "/usr/bin/yt-dlp", |
|
|
ytdl_cmd => "/usr/bin/yt-dlp", |
|
|
|