dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

pipe-viewer.conf (6892B)


      1 #!/usr/bin/perl
      2 
      3 # CLI Pipe Viewer 0.2.2 - configuration file
      4 
      5 our $CONFIG = {
      6   api_host                      => "auto",
      7   auto_captions                 => 0,
      8   autoplay_mode                 => 0,
      9   bypass_age_gate_with_proxy    => 0,
     10   cache_dir                     => "$ENV{HOME}/.cache/pipe-viewer",
     11   colors                        => 1,
     12   comments_order                => "top",
     13   confirm                       => 0,
     14   convert_cmd                   => "ffmpeg -i *IN* *OUT*",
     15   convert_to                    => undef,
     16   cookie_file                   => undef,
     17   copy_caption                  => 0,
     18   custom_channel_layout_format  => [
     19                                      { align => "right", color => "bold", text => "*NO*.", width => 3 },
     20                                      { align => "left", color => "bold blue", text => "*AUTHOR*", width => "55%" },
     21                                      { align => "right", color => "green", text => "*VIDEOS* videos", width => 14 },
     22                                      {
     23                                        align => "right",
     24                                        color => "green",
     25                                        text  => "*SUBS_SHORT* subs",
     26                                        width => 10,
     27                                      },
     28                                    ],
     29   custom_layout_format          => [
     30                                      { align => "right", color => "bold", text => "*NO*.", width => 3 },
     31                                      { align => "left", color => "bold blue", text => "*TITLE*", width => "55%" },
     32                                      { align => "left", color => "yellow", text => "*AUTHOR*", width => "15%" },
     33                                      { align => "right", color => "green", text => "*AGE_SHORT*", width => 3 },
     34                                      { align => "right", color => "green", text => "*VIEWS_SHORT*", width => 5 },
     35                                      { align => "right", color => "blue", text => "*TIME*", width => 8 },
     36                                    ],
     37   custom_playlist_layout_format => [
     38                                      { align => "right", color => "bold", text => "*NO*.", width => 3 },
     39                                      { align => "left", color => "bold blue", text => "*TITLE*", width => "55%" },
     40                                      { align => "right", color => "green", text => "*ITEMS* videos", width => 14 },
     41                                      { align => "left", color => "magenta", text => "*AUTHOR*", width => "20%" },
     42                                    ],
     43   dash                          => 1,
     44   date                          => undef,
     45   debug                         => 0,
     46   download_and_play             => 0,
     47   download_with_wget            => 1,
     48   download_with_ytdl            => 1,
     49   downloads_dir                 => ".",
     50   env_proxy                     => 1,
     51   fat32safe                     => 0,
     52   ffmpeg_cmd                    => "/usr/local/bin/ffmpeg",
     53   force_fallback                => 0,
     54   fullscreen                    => 0,
     55   get_captions                  => 1,
     56   get_term_width                => 1,
     57   hfr                           => 1,
     58   highlight_color               => "bold",
     59   highlight_watched             => 1,
     60   history                       => 0,
     61   history_file                  => "$ENV{HOME}/.config/pipe-viewer/cli-history.txt",
     62   history_limit                 => 100000,
     63   http_proxy                    => undef,
     64   ignore_av1                    => 0,
     65   ignored_projections           => [],
     66   interactive                   => 1,
     67   keep_original_video           => 0,
     68   local_playlist_limit          => -1,
     69   maxResults                    => 20,
     70   merge_into_mkv                => 1,
     71   merge_into_mkv_args           => "-loglevel warning -c:s srt -c:v copy -c:a copy -disposition:s forced",
     72   merge_with_captions           => 1,
     73   order                         => undef,
     74   page                          => 1,
     75   prefer_av1                    => 0,
     76   prefer_invidious              => 0,
     77   prefer_m4a                    => 0,
     78   prefer_mp4                    => 0,
     79   region                        => undef,
     80   remove_played_file            => 0,
     81   resolution                    => "best",
     82   saved_channels_file           => "$ENV{HOME}/.config/pipe-viewer/users.txt",
     83   show_video_info               => 1,
     84   skip_if_exists                => 1,
     85   skip_watched                  => 0,
     86   split_videos                  => 1,
     87   srt_languages                 => ["en", "es"],
     88   subscribed_channels_file      => "$ENV{HOME}/.config/pipe-viewer/subscribed_channels.txt",
     89   subscriptions_lifetime        => 600,
     90   subscriptions_limit           => 10000,
     91   thousand_separator            => ",",
     92   timeout                       => undef,
     93   user_agent                    => undef,
     94   video_filename_format         => "*FTITLE* - *ID*.*FORMAT*",
     95   video_player_selected         => "mpv",
     96   video_players                 => {
     97                                      mpv => {
     98                                               arg => "--really-quiet --volume=50 --force-media-title=*TITLE* --no-ytdl *VIDEO*",
     99                                               audio => "--audio-file=*AUDIO*",
    100                                               cmd => "/usr/local/bin/mpv",
    101                                               fs => "--fullscreen",
    102                                               novideo => "--no-video --no-audio-display",
    103                                               srt => "--sub-file=*SUB*",
    104                                             },
    105                                      vlc => {
    106                                               arg => "--quiet --play-and-exit --no-video-title-show --input-title-format=*TITLE* *VIDEO*",
    107                                               audio => "--input-slave=*AUDIO*",
    108                                               cmd => "vlc",
    109                                               fs => "--fullscreen",
    110                                               novideo => "--intf=dummy --novideo",
    111                                               srt => "--sub-file=*SUB*",
    112                                             },
    113                                    },
    114   videoCaption                  => undef,
    115   videoDefinition               => undef,
    116   videoDimension                => undef,
    117   videoDuration                 => undef,
    118   videoLicense                  => undef,
    119   watch_history                 => 1,
    120   watch_history_file            => "$ENV{HOME}/.config/pipe-viewer/watched.txt",
    121   wget_cmd                      => "/usr/local/bin/wget",
    122   youtube_video_url             => "https://www.youtube.com/watch?v=%s",
    123   ytdl                          => 1,
    124   ytdl_cmd                      => "/usr/local/bin/youtube-dl",
    125   ytdlp_comments                => 0,
    126   ytdlp_max_comments            => 10,
    127   ytdlp_max_replies             => 3,
    128 }