diff --git a/bin/playvideo b/bin/playvideo index 32b7d4f..3df5915 100755 --- a/bin/playvideo +++ b/bin/playvideo @@ -15,4 +15,4 @@ if [ "$1" = "-l" ]; then quality=360 fi -mpv --ytdl-format="bestvideo[height<=?$quality]+bestaudio/best" "$1" 2>&1 | grep 'ERROR:' | notify_err +mpv --ytdl-format="bestvideo[height<=?$quality]+bestaudio/best" "$@" 2>&1 | grep 'ERROR:' | notify_err diff --git a/config/pipe-viewer/.gitignore b/config/pipe-viewer/.gitignore new file mode 100644 index 0000000..66733fa --- /dev/null +++ b/config/pipe-viewer/.gitignore @@ -0,0 +1,5 @@ +cli-history.txt +gtk-history.txt +instances.json +session.dat +users.txt diff --git a/config/pipe-viewer/gtk-pipe-viewer.conf b/config/pipe-viewer/gtk-pipe-viewer.conf new file mode 100755 index 0000000..fd3f32d --- /dev/null +++ b/config/pipe-viewer/gtk-pipe-viewer.conf @@ -0,0 +1,91 @@ +#!/usr/bin/perl + +# GTK+ Pipe Viewer 0.0.5 - configuration file + +our $CONFIG = { + active_channel_type_combobox => 0, + active_more_options_expander => 0, + active_panel_account_combobox => 0, + active_resolution_combobox => 4, + active_subscriptions_order_combobox => 0, + api_host => "auto", + audio_only => 0, + auto_captions => 0, + autoscroll_to_end => 0, + cache_dir => "$ENV{HOME}/.cache/pipe-viewer", + clear_search_list => 1, + clear_text_entries_on_click => 0, + comments_order => "top", + comments_width => 80, + cookie_file => undef, + dash => 1, + debug => 0, + default_notebook_page => 1, + downloads_dir => ".", + entry_completion_limit => 10, + env_proxy => 1, + fullscreen => 0, + get_captions => 1, + hfr => 1, + history => 1, + history_file => "$ENV{HOME}/.config/pipe-viewer/gtk-history.txt", + history_limit => 100000, + hpaned_position => 1152, + hpaned_width => 250, + http_proxy => undef, + ignore_av1 => 0, + m4a_audio => 1, + mainw_centered => 0, + mainw_fullscreen => 0, + mainw_maximized => 0, + mainw_size => "1920x1061", + maxResults => 10, + pipe_viewer => "/usr/bin/pipe-viewer", + pipe_viewer_args => [], + prefer_av1 => 0, + prefer_fork => 0, + prefer_mp4 => 0, + recent_history => 10, + region => undef, + remember_session => 1, + remember_session_depth => 10, + resolution => 720, + save_titles_to_history => 0, + show_thumbs => 1, + split_videos => 1, + srt_languages => ["en", "fr"], + terminal => "/usr/bin/fbterm", + terminal_exec => "-e '%s'", + thousand_separator => ",", + thumbnail_type => "medium", + timeout => undef, + tooltip_max_len => 512, + tooltips => 1, + user_agent => undef, + video_player_selected => "mpv", + video_players => { + mpv => { + arg => "--really-quiet --force-media-title=*TITLE* --no-ytdl *VIDEO*", + audio => "--audio-file=*AUDIO*", + cmd => "/usr/bin/mpv", + fs => "--fullscreen", + srt => "--sub-file=*SUB*", + }, + vlc => { + arg => "--quiet --play-and-exit --no-video-title-show --input-title-format=*TITLE* *VIDEO*", + audio => "--input-slave=*AUDIO*", + cmd => "vlc", + fs => "--fullscreen", + srt => "--sub-file=*SUB*", + }, + }, + videoDimension => undef, + videoLicense => undef, + web_browser => undef, + youtube_channel_url => "https://www.youtube.com/channel/%s", + youtube_playlist_url => "https://www.youtube.com/playlist?list=%s", + youtube_users_file => "$ENV{HOME}/.config/pipe-viewer/users.txt", + youtube_video_url => "https://www.youtube.com/watch?v=%s", + ytdl => 1, + ytdl_cmd => "/usr/bin/youtube-dl", +} diff --git a/config/pipe-viewer/pipe-viewer.conf b/config/pipe-viewer/pipe-viewer.conf new file mode 100755 index 0000000..5703a0d --- /dev/null +++ b/config/pipe-viewer/pipe-viewer.conf @@ -0,0 +1,103 @@ +#!/usr/bin/perl + +# CLI Pipe Viewer 0.0.5 - configuration file + +our $CONFIG = { + api_host => "auto", + auto_captions => 0, + autoplay_mode => 0, + cache_dir => "$ENV{HOME}/.cache/pipe-viewer", + colors => 1, + comments_order => "top", + confirm => 0, + convert_cmd => "ffmpeg -i *IN* *OUT*", + convert_to => undef, + cookie_file => undef, + copy_caption => 0, + custom_layout => 0, + custom_layout_format => [ + { align => "right", color => "bold", text => "*NO*.", width => 3 }, + { align => "left", color => "bold blue", text => "*TITLE*", width => "55%" }, + { align => "left", color => "yellow", text => "*AUTHOR*", width => "15%" }, + { align => "right", color => "green", text => "*AGE_SHORT*", width => 3 }, + { align => "right", color => "green", text => "*VIEWS_SHORT*", width => 5 }, + { align => "right", color => "blue", text => "*TIME*", width => 8 }, + ], + dash => 1, + date => undef, + debug => 0, + download_and_play => 0, + download_with_wget => 1, + downloads_dir => ".", + env_proxy => 1, + fat32safe => 0, + ffmpeg_cmd => "/usr/bin/ffmpeg", + fullscreen => 0, + get_captions => 1, + get_term_width => 1, + hfr => 1, + highlight_color => "bold", + highlight_watched => 1, + history => 1, + history_file => "$ENV{HOME}/.config/pipe-viewer/cli-history.txt", + history_limit => 100000, + http_proxy => undef, + ignore_av1 => 0, + interactive => 1, + keep_original_video => 0, + m4a_audio => 1, + maxResults => 20, + merge_into_mkv => 1, + merge_into_mkv_args => "-loglevel warning -c:s srt -c:v copy -c:a copy -disposition:s forced", + merge_with_captions => 1, + order => undef, + page => 1, + prefer_av1 => 0, + prefer_mp4 => 0, + region => undef, + remember_watched => 0, + remove_played_file => 0, + resolution => "720p", + results_fixed_width => 0, + results_with_colors => 0, + results_with_details => 0, + show_video_info => 1, + skip_if_exists => 1, + skip_watched => 0, + split_videos => 1, + srt_languages => ["en", "fr"], + subscriptions_order => "relevance", + thousand_separator => ",", + timeout => undef, + user_agent => undef, + video_filename_format => "*FTITLE* - *ID*.*FORMAT*", + video_player_selected => "mpv", + video_players => { + mpv => { + arg => "--really-quiet --force-media-title=*TITLE* --no-ytdl *VIDEO*", + audio => "--audio-file=*AUDIO*", + cmd => "/usr/bin/mpv", + fs => "--fullscreen", + novideo => "--no-video", + srt => "--sub-file=*SUB*", + }, + vlc => { + arg => "--quiet --play-and-exit --no-video-title-show --input-title-format=*TITLE* *VIDEO*", + 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, + watched_file => "$ENV{HOME}/.config/pipe-viewer/watched.txt", + wget_cmd => "/usr/bin/wget", + youtube_video_url => "https://www.youtube.com/watch?v=%s", + ytdl => 1, + ytdl_cmd => "/usr/bin/youtube-dl", +}