summaryrefslogtreecommitdiff
path: root/roles/tools/templates/youtube-viewer.conf.j2
blob: 310758457f917681d2822307cce00bfb63e938b8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
#!/usr/bin/perl

# Youtube Viewer 3.3.4 - configuration file

our $CONFIG = {
  auto_captions           => 0,
  autohide_watched        => 0,
  cache_dir               => "{{ lookup('env', 'XDG_CACHE_HOME') }}/youtube-viewer",
  captions_dir            => "/tmp",
  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          => 1,
  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            => "{{ lookup('env', 'XDG_STATE_HOME') }}/youtube-viewer/history.txt",
  history_limit           => 10000,
  hl                      => "en_US",
  http_proxy              => undef,
  interactive             => 1,
  keep_original_video     => 0,
  maxResults              => 20,
  order                   => undef,
  page                    => 1,
  publishedAfter          => undef,
  publishedBefore         => undef,
  regionCode              => undef,
  remove_played_file      => 0,
  resolution              => "original",
  results_fixed_width     => 0,
  results_with_colors     => 0,
  results_with_details    => 0,
  safeSearch              => undef,
  skip_if_exists          => 0,
  srt_languages           => ["en", "fr"],
  subscriptions_order     => "relevance",
  thousand_separator      => ",",
  video_filename_format   => "*FTITLE*.*FORMAT*",
  video_player_selected   => "mplayer",
  video_players           => {
                               mplayer => {
                                 arg => "-prefer-ipv4 -really-quiet -title *TITLE*",
                                 audio => "-audiofile *AUDIO*",
                                 cmd => "/usr/bin/mplayer",
                                 fs => "-fs",
                                 novideo => "-novideo",
                                 srt => "-sub *SUB*",
                               },
                               mpv => {
                                 arg => "--really-quiet --title *TITLE* --no-ytdl",
                                 audio => "--audio-file *AUDIO*",
                                 cmd => "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,
  videoSyndicated         => undef,
  youtube_video_url       => "https://www.youtube.com/watch?v=%s",
}