]>
Commit | Line | Data |
---|---|---|
397c4fed IB |
1 | #!/usr/bin/perl |
2 | ||
bf4da466 | 3 | # Youtube Viewer 3.5.1 - configuration file |
397c4fed IB |
4 | |
5 | our $CONFIG = { | |
6 | auto_captions => 0, | |
7 | autohide_watched => 0, | |
8 | cache_dir => "{{ lookup('env', 'XDG_CACHE_HOME') }}/youtube-viewer", | |
9 | captions_dir => "/tmp", | |
10 | clobber => 0, | |
11 | colors => 1, | |
12 | combine_multiple_videos => 0, | |
bf4da466 | 13 | comments_order => "time", |
397c4fed IB |
14 | confirm => 0, |
15 | convert_cmd => "ffmpeg -i *IN* *OUT*", | |
16 | convert_to => undef, | |
17 | copy_caption => 0, | |
bf4da466 IB |
18 | custom_layout => 0, |
19 | custom_layout_format => "*NO*. *TITLE* (*AUTHOR*) (*RATING*) [*TIME*]\\n", | |
397c4fed IB |
20 | dash_mp4_audio => 1, |
21 | dash_support => 1, | |
22 | debug => 0, | |
23 | download_and_play => 0, | |
24 | download_in_parallel => 0, | |
25 | download_with_wget => 0, | |
26 | downloads_dir => ".", | |
27 | env_proxy => 1, | |
28 | fat32safe => 0, | |
bf4da466 | 29 | ffmpeg_cmd => "/usr/bin/ffmpeg", |
397c4fed IB |
30 | fullscreen => 0, |
31 | get_captions => 1, | |
32 | get_term_width => 1, | |
33 | highlight_color => "bold", | |
34 | highlight_watched => 0, | |
35 | history => 0, | |
36 | history_file => "{{ lookup('env', 'XDG_STATE_HOME') }}/youtube-viewer/history.txt", | |
37 | history_limit => 10000, | |
38 | hl => "en_US", | |
39 | http_proxy => undef, | |
40 | interactive => 1, | |
41 | keep_original_video => 0, | |
42 | maxResults => 20, | |
bf4da466 IB |
43 | merge_into_mkv => 1, |
44 | merge_into_mkv_args => "-loglevel warning -c:s srt -c:v copy -c:a copy -disposition:s forced", | |
45 | merge_with_captions => 1, | |
397c4fed IB |
46 | order => undef, |
47 | page => 1, | |
bf4da466 | 48 | prefer_mp4 => 0, |
397c4fed IB |
49 | publishedAfter => undef, |
50 | publishedBefore => undef, | |
51 | regionCode => undef, | |
52 | remove_played_file => 0, | |
53 | resolution => "original", | |
54 | results_fixed_width => 0, | |
55 | results_with_colors => 0, | |
56 | results_with_details => 0, | |
57 | safeSearch => undef, | |
58 | skip_if_exists => 0, | |
59 | srt_languages => ["en", "fr"], | |
60 | subscriptions_order => "relevance", | |
61 | thousand_separator => ",", | |
62 | video_filename_format => "*FTITLE*.*FORMAT*", | |
63 | video_player_selected => "mplayer", | |
64 | video_players => { | |
65 | mplayer => { | |
66 | arg => "-prefer-ipv4 -really-quiet -title *TITLE*", | |
67 | audio => "-audiofile *AUDIO*", | |
68 | cmd => "/usr/bin/mplayer", | |
69 | fs => "-fs", | |
70 | novideo => "-novideo", | |
71 | srt => "-sub *SUB*", | |
72 | }, | |
73 | mpv => { | |
74 | arg => "--really-quiet --title *TITLE* --no-ytdl", | |
75 | audio => "--audio-file *AUDIO*", | |
76 | cmd => "mpv", | |
77 | fs => "--fullscreen", | |
78 | novideo => "--no-video", | |
79 | srt => "--sub-file *SUB*", | |
80 | }, | |
81 | vlc => { | |
82 | arg => "--quiet --play-and-exit --no-video-title-show --input-title-format *TITLE*", | |
83 | audio => "--input-slave *AUDIO*", | |
84 | cmd => "vlc", | |
85 | fs => "--fullscreen", | |
86 | novideo => "--intf dummy --novideo", | |
87 | srt => "--sub-file *SUB*", | |
88 | }, | |
89 | }, | |
90 | videoCaption => undef, | |
91 | videoDefinition => undef, | |
92 | videoDimension => undef, | |
93 | videoDuration => undef, | |
94 | videoLicense => undef, | |
95 | videoSyndicated => undef, | |
bf4da466 | 96 | wget_cmd => "wget", |
397c4fed IB |
97 | youtube_video_url => "https://www.youtube.com/watch?v=%s", |
98 | } |