[pipe-viewer] upstream update

This commit is contained in:
lara 2021-08-27 20:37:05 +02:00
parent c6812303b5
commit 50f6350f2f

View file

@ -1,103 +1,117 @@
#!/usr/bin/perl #!/usr/bin/perl
# CLI Pipe Viewer 0.0.5 - configuration file # CLI Pipe Viewer 0.0.7 - configuration file
our $CONFIG = { our $CONFIG = {
api_host => "auto", api_host => "auto",
auto_captions => 0, auto_captions => 0,
autoplay_mode => 0, autoplay_mode => 0,
cache_dir => "$ENV{HOME}/.cache/pipe-viewer", cache_dir => "$ENV{HOME}/.cache/pipe-viewer",
colors => 1, colors => 1,
comments_order => "top", comments_order => "top",
confirm => 0, confirm => 0,
convert_cmd => "ffmpeg -i *IN* *OUT*", convert_cmd => "ffmpeg -i *IN* *OUT*",
convert_to => undef, convert_to => undef,
cookie_file => undef, cookie_file => undef,
copy_caption => 0, copy_caption => 0,
custom_layout => 0, custom_channel_layout_format => [
custom_layout_format => [ { align => "right", color => "bold", text => "*NO*.", width => 3 },
{ align => "right", color => "bold", text => "*NO*.", width => 3 }, { align => "left", color => "bold blue", text => "*AUTHOR*", width => "55%" },
{ align => "left", color => "bold blue", text => "*TITLE*", width => "55%" }, { align => "right", color => "green", text => "*VIDEOS* videos", width => 14 },
{ align => "left", color => "yellow", text => "*AUTHOR*", width => "15%" }, {
{ align => "right", color => "green", text => "*AGE_SHORT*", width => 3 }, align => "right",
{ align => "right", color => "green", text => "*VIEWS_SHORT*", width => 5 }, color => "green",
{ align => "right", color => "blue", text => "*TIME*", width => 8 }, text => "*SUBS_SHORT* subs",
], width => 10,
dash => 1, },
date => undef, ],
debug => 0, custom_layout_format => [
download_and_play => 0, { align => "right", color => "bold", text => "*NO*.", width => 3 },
download_with_wget => 1, { align => "left", color => "bold blue", text => "*TITLE*", width => "55%" },
downloads_dir => ".", { align => "left", color => "yellow", text => "*AUTHOR*", width => "15%" },
env_proxy => 1, { align => "right", color => "green", text => "*AGE_SHORT*", width => 3 },
fat32safe => 0, { align => "right", color => "green", text => "*VIEWS_SHORT*", width => 5 },
ffmpeg_cmd => "/usr/bin/ffmpeg", { align => "right", color => "blue", text => "*TIME*", width => 8 },
fullscreen => 0, ],
get_captions => 1, custom_playlist_layout_format => [
get_term_width => 1, { align => "right", color => "bold", text => "*NO*.", width => 3 },
hfr => 1, { align => "left", color => "bold blue", text => "*TITLE*", width => "55%" },
highlight_color => "bold", { align => "right", color => "green", text => "*ITEMS* videos", width => 14 },
highlight_watched => 1, { align => "left", color => "magenta", text => "*AUTHOR*", width => "20%" },
history => 1, ],
history_file => "$ENV{HOME}/.config/pipe-viewer/cli-history.txt", dash => 1,
history_limit => 100000, date => undef,
http_proxy => undef, debug => 0,
ignore_av1 => 0, download_and_play => 0,
interactive => 1, download_with_wget => 1,
keep_original_video => 0, downloads_dir => ".",
m4a_audio => 1, env_proxy => 1,
maxResults => 20, fat32safe => 0,
merge_into_mkv => 1, ffmpeg_cmd => "/usr/bin/ffmpeg",
merge_into_mkv_args => "-loglevel warning -c:s srt -c:v copy -c:a copy -disposition:s forced", fullscreen => 0,
merge_with_captions => 1, get_captions => 1,
order => undef, get_term_width => 1,
page => 1, hfr => 1,
prefer_av1 => 0, highlight_color => "bold",
prefer_mp4 => 0, highlight_watched => 1,
region => undef, history => 1,
remember_watched => 0, history_file => "$ENV{HOME}/.config/pipe-viewer/cli-history.txt",
remove_played_file => 0, history_limit => 100000,
resolution => "720p", http_proxy => undef,
results_fixed_width => 0, ignore_av1 => 0,
results_with_colors => 0, interactive => 1,
results_with_details => 0, keep_original_video => 0,
show_video_info => 1, m4a_audio => 1,
skip_if_exists => 1, maxResults => 20,
skip_watched => 0, merge_into_mkv => 1,
split_videos => 1, merge_into_mkv_args => "-loglevel warning -c:s srt -c:v copy -c:a copy -disposition:s forced",
srt_languages => ["en", "fr"], merge_with_captions => 1,
subscriptions_order => "relevance", order => undef,
thousand_separator => ",", page => 1,
timeout => undef, prefer_av1 => 0,
user_agent => undef, prefer_invidious => 0,
video_filename_format => "*FTITLE* - *ID*.*FORMAT*", prefer_mp4 => 0,
video_player_selected => "mpv", region => undef,
video_players => { remember_watched => 0,
mpv => { remove_played_file => 0,
arg => "--really-quiet --force-media-title=*TITLE* --no-ytdl *VIDEO*", resolution => "720p",
audio => "--audio-file=*AUDIO*", show_video_info => 1,
cmd => "/usr/bin/mpv", skip_if_exists => 1,
fs => "--fullscreen", skip_watched => 0,
novideo => "--no-video", split_videos => 1,
srt => "--sub-file=*SUB*", srt_languages => ["en", "fr"],
}, subscriptions_order => "relevance",
vlc => { thousand_separator => ",",
arg => "--quiet --play-and-exit --no-video-title-show --input-title-format=*TITLE* *VIDEO*", timeout => undef,
audio => "--input-slave=*AUDIO*", user_agent => undef,
cmd => "vlc", video_filename_format => "*FTITLE* - *ID*.*FORMAT*",
fs => "--fullscreen", video_player_selected => "mpv",
novideo => "--intf=dummy --novideo", video_players => {
srt => "--sub-file=*SUB*", mpv => {
}, arg => "--really-quiet --force-media-title=*TITLE* --no-ytdl *VIDEO*",
}, audio => "--audio-file=*AUDIO*",
videoCaption => undef, cmd => "/usr/bin/mpv",
videoDefinition => undef, fs => "--fullscreen",
videoDimension => undef, novideo => "--no-video",
videoDuration => undef, srt => "--sub-file=*SUB*",
videoLicense => undef, },
watched_file => "$ENV{HOME}/.config/pipe-viewer/watched.txt", vlc => {
wget_cmd => "/usr/bin/wget", arg => "--quiet --play-and-exit --no-video-title-show --input-title-format=*TITLE* *VIDEO*",
youtube_video_url => "https://www.youtube.com/watch?v=%s", audio => "--input-slave=*AUDIO*",
ytdl => 1, cmd => "vlc",
ytdl_cmd => "/usr/bin/youtube-dl", fs => "--fullscreen",
novideo => "--intf=dummy --novideo",
srt => "--sub-file=*SUB*",
},
},
videoCaption => undef,
videoDefinition => undef,
videoDimension => undef,
videoDuration => undef,
videoLicense => undef,
watched_file => "$ENV{HOME}/.config/pipe-viewer/watched.txt",
wget_cmd => "/usr/bin/wget",
youtube_video_url => "https://www.youtube.com/watch?v=%s",
ytdl => 1,
ytdl_cmd => "/usr/bin/youtube-dl",
} }