youtube-viewer.conf 3.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. #!/usr/bin/perl
  2. # Youtube Viewer 3.2.7 - configuration file
  3. our $CONFIG = {
  4. auto_captions => 0,
  5. autohide_watched => 0,
  6. cache_dir => "/home/pekman/.cache/youtube-viewer",
  7. captions_dir => "/tmp",
  8. cats_region => "us",
  9. clobber => 0,
  10. colors => 1,
  11. combine_multiple_videos => 0,
  12. confirm => 0,
  13. convert_cmd => "ffmpeg -i *IN* *OUT*",
  14. convert_to => undef,
  15. copy_caption => 0,
  16. dash_mp4_audio => 0,
  17. dash_support => 1,
  18. debug => 0,
  19. download_and_play => 0,
  20. download_in_parallel => 0,
  21. download_with_wget => 0,
  22. downloads_dir => ".",
  23. env_proxy => 1,
  24. fat32safe => 0,
  25. fullscreen => 0,
  26. get_captions => 1,
  27. get_term_width => 1,
  28. highlight_color => "bold",
  29. highlight_watched => 0,
  30. history => 0,
  31. history_file => "/home/pekman/.config/youtube-viewer/history.txt",
  32. history_limit => 10000,
  33. hl => "en_US",
  34. http_proxy => undef,
  35. interactive => 1,
  36. keep_original_video => 0,
  37. maxResults => 50,
  38. order => undef,
  39. page => 1,
  40. publishedAfter => undef,
  41. publishedBefore => undef,
  42. remove_played_file => 0,
  43. resolution => "360p",
  44. results_fixed_width => 0,
  45. results_with_colors => 0,
  46. results_with_details => 0,
  47. safeSearch => undef,
  48. skip_if_exists => 0,
  49. srt_languages => ["en", "pt_BR"],
  50. subscriptions_order => "relevance",
  51. thousand_separator => ",",
  52. video_filename_format => "*FTITLE*.*FORMAT*",
  53. video_player_selected => "mpv",
  54. video_players => {
  55. mpg123 => {
  56. cmd => "wget -q -O - \$(youtube-dl -g *URL*) | ffmpeg -i - -f mp3 -vn -acodec libmp3lame - | mpg123 -",
  57. },
  58. mplayer => {
  59. arg => "-prefer-ipv4 -really-quiet -cache %d -cache-min %d",
  60. audio => "-audiofile *AUDIO*",
  61. cmd => "/usr/bin/mplayer",
  62. fs => "-fs",
  63. novideo => "-novideo",
  64. srt => "-sub '%s'",
  65. },
  66. mpv => {
  67. arg => "--really-quiet --ontop --ytdl-format=18",
  68. audio => "--audio-file *AUDIO*",
  69. cmd => "mpv",
  70. fs => "--fullscreen",
  71. novideo => "--no-video",
  72. srt => "--sub '%s'",
  73. },
  74. vlc => {
  75. arg => "--quiet --play-and-exit --no-video-title-show",
  76. audio => "--input-slave *AUDIO*",
  77. cmd => "vlc",
  78. fs => "--fullscreen",
  79. novideo => "--intf dummy --novideo",
  80. srt => "--sub-file '%s'",
  81. },
  82. wget => { cmd => "wget -O *TITLE*-*ID*.*FORMAT* *VIDEO*" },
  83. },
  84. videoCaption => undef,
  85. videoDefinition => undef,
  86. videoDimension => undef,
  87. videoDuration => undef,
  88. videoLicense => undef,
  89. videoSyndicated => undef,
  90. youtube_video_url => "http://www.youtube.com/watch?v=%s",
  91. }