12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- #!/usr/bin/perl
- # Youtube Viewer 3.2.7 - configuration file
- our $CONFIG = {
- auto_captions => 0,
- autohide_watched => 0,
- cache_dir => "/home/pekman/.cache/youtube-viewer",
- captions_dir => "/tmp",
- cats_region => "us",
- clobber => 0,
- colors => 1,
- combine_multiple_videos => 0,
- confirm => 0,
- convert_cmd => "ffmpeg -i *IN* *OUT*",
- convert_to => undef,
- copy_caption => 0,
- dash_mp4_audio => 0,
- dash_support => 1,
- debug => 0,
- download_and_play => 0,
- download_in_parallel => 0,
- download_with_wget => 0,
- downloads_dir => ".",
- env_proxy => 1,
- fat32safe => 0,
- fullscreen => 0,
- get_captions => 1,
- get_term_width => 1,
- highlight_color => "bold",
- highlight_watched => 0,
- history => 0,
- history_file => "/home/pekman/.config/youtube-viewer/history.txt",
- history_limit => 10000,
- hl => "en_US",
- http_proxy => undef,
- interactive => 1,
- keep_original_video => 0,
- maxResults => 50,
- order => undef,
- page => 1,
- publishedAfter => undef,
- publishedBefore => undef,
- remove_played_file => 0,
- resolution => "360p",
- results_fixed_width => 0,
- results_with_colors => 0,
- results_with_details => 0,
- safeSearch => undef,
- skip_if_exists => 0,
- srt_languages => ["en", "pt_BR"],
- subscriptions_order => "relevance",
- thousand_separator => ",",
- video_filename_format => "*FTITLE*.*FORMAT*",
- video_player_selected => "mpv",
- video_players => {
- mpg123 => {
- cmd => "wget -q -O - \$(youtube-dl -g *URL*) | ffmpeg -i - -f mp3 -vn -acodec libmp3lame - | mpg123 -",
- },
- mplayer => {
- arg => "-prefer-ipv4 -really-quiet -cache %d -cache-min %d",
- audio => "-audiofile *AUDIO*",
- cmd => "/usr/bin/mplayer",
- fs => "-fs",
- novideo => "-novideo",
- srt => "-sub '%s'",
- },
- mpv => {
- arg => "--really-quiet --ontop --ytdl-format=18",
- audio => "--audio-file *AUDIO*",
- cmd => "mpv",
- fs => "--fullscreen",
- novideo => "--no-video",
- srt => "--sub '%s'",
- },
- vlc => {
- arg => "--quiet --play-and-exit --no-video-title-show",
- audio => "--input-slave *AUDIO*",
- cmd => "vlc",
- fs => "--fullscreen",
- novideo => "--intf dummy --novideo",
- srt => "--sub-file '%s'",
- },
- wget => { cmd => "wget -O *TITLE*-*ID*.*FORMAT* *VIDEO*" },
- },
- videoCaption => undef,
- videoDefinition => undef,
- videoDimension => undef,
- videoDuration => undef,
- videoLicense => undef,
- videoSyndicated => undef,
- youtube_video_url => "http://www.youtube.com/watch?v=%s",
- }
|