dgy
/
hexagons
Archived
1
0
Fork 0
This repository has been archived on 2021-03-24. You can view files and clone it, but cannot push or open issues or pull requests.
hexagons/.config/straw-viewer/straw-viewer.conf

103 lines
4.2 KiB
Perl

#!/usr/bin/perl
# CLI Straw Viewer 0.1.2 - configuration file
our $CONFIG = {
api_host => "auto",
auto_captions => 0,
autoplay_mode => 0,
cache_dir => "/tmp/straw-viewer",
colors => 1,
comments_order => "top",
confirm => 0,
convert_cmd => "ffmpeg -i *IN* *OUT*",
convert_to => undef,
cookie_file => undef,
copy_caption => 0,
custom_layout => 1,
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 => "blue", text => "*TIME*", width => 8 },
],
dash_mp4_audio => 1,
dash_segmented => 1,
dash_support => 1,
date => undef,
debug => 0,
download_and_play => 0,
download_with_wget => 1,
downloads_dir => "$ENV{HOME}/vid",
env_proxy => 1,
fat32safe => 1,
ffmpeg_cmd => "/bin/ffmpeg",
fullscreen => 0,
get_captions => 0,
get_term_width => 1,
hfr => 1,
highlight_color => "bold",
highlight_watched => 1,
history => 0,
history_file => "/tmp/straw-viewer/cli-history.txt",
history_limit => 1,
http_proxy => undef,
ignore_av1 => 0,
interactive => 1,
keep_original_video => 0,
maxResults => 30,
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,
region => undef,
remember_watched => 0,
remove_played_file => 0,
resolution => "best",
results_fixed_width => 0,
results_with_colors => 1,
results_with_details => 0,
show_video_info => 1,
skip_if_exists => 1,
skip_watched => 0,
srt_languages => ["en", "es"],
subscriptions_order => "relevance",
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",
audio => "--audio-file=*AUDIO*",
cmd => "/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*",
audio => "--input-slave=*AUDIO*",
cmd => "vlc",
fs => "--fullscreen",
novideo => "--intf=dummy --novideo",
srt => "--sub-file=*SUB*",
},
},
videoCaption => undef,
videoDefinition => undef,
videoDimension => undef,
videoDuration => undef,
videoLicense => undef,
watched_file => "/tmp/straw-viewer/watched.txt",
wget_cmd => "/bin/wget",
youtube_video_url => "https://www.youtube-nocookie.com/watch?v=%s",
ytdl => 1,
ytdl_cmd => "/bin/youtube-dl",
}