This commit is contained in:
Dmitry Zakharchenko 2022-09-23 22:20:51 +03:00
parent 8881930a2c
commit 99b60035da
4 changed files with 24 additions and 21 deletions

View file

@ -1,7 +1,5 @@
"TECH" "(---)"
https://go.dev/blog/feed.atom "(www)"
https://www.linux.org.ru/section-rss.jsp?section=1 "(www)" "~Linux.org"
https://landchad.net/rss.xml "(www)" "~LandChad"
https://drewdevault.com/blog/index.xml "(www)" "~Drew DeVault"
http://suckless.org/atom.xml "(www)" "~skls"
https://lobste.rs/top/rss "(www)" "~Lobsters"
@ -17,14 +15,15 @@ https://www.youtube.com/feeds/videos.xml?channel_id=UCW-HBBzxn7URXPHzWiZTq_A "(y
"HL" "(---)"
https://www.youtube.com/feeds/videos.xml?channel_id=UCjulQNQQJmpYzI-BD1-s03w "(ytb)"
https://www.youtube.com/feeds/videos.xml?channel_id=UC4rpWi42yPqTA0wnfx7MqOA "(ytb)"
https://www.youtube.com./feeds/videos.xml?channel_id=UC2WNW0NZVyMeEPvtLmScgvQ "(ytb)"
https://www.youtube.com/feeds/videos.xml?channel_id=UC2WNW0NZVyMeEPvtLmScgvQ "(ytb)"
https://www.youtube.com/feeds/videos.xml?channel_id=UCiUkcNS6W0n8QdosuZASduQ "(ytb")
"PPL" "(---)"
https://lukesmith.xyz/rss.xml "(www)"
https://notrelated.xyz/rss "(www)" "~Not Related"
https://lukesmith.xyz/peertube "(prt)"
https://www.youtube.com/feeds/videos.xml?channel_id=UCq6VFHwMzcMXbuKyG7SQYIg "(ytb)"
https://www.youtube.con/feeds/videos.xml?channel_id=UC3ltptWa0xfrDweghW94Acg "(ytb)"
https://www.youtube.com/feeds/videos.xml?channel_id=UC3ltptWa0xfrDweghW94Acg "(ytb)"
https://www.youtube.com/feeds/videos.xml?channel_id=UCfUaZ8Ra7m7BqUEACv2jySw "(ytb)"
https://www.youtube.com/feeds/videos.xml?channel_id=UC7YOGHUfC1Tb6E4pudI9STA "(ytb)"
https://www.youtube.com/feeds/videos.xml?channel_id=UCtMVHI3AJD4Qk4hcbZnI9ZQ "(ytb)"
@ -32,12 +31,12 @@ https://www.youtube.com/feeds/videos.xml?channel_id=UCEMSM2w0EvLcOSIFrv3kNHQ "(y
"SOC" "(---)"
https://kamilkazani.substack.com/feed "(www)"
https://www.youtube.com/feeds/videos.xml?channel_id=UC9RM-iSvTu1uPJb8X5yp3EQ "(ytb)"
https://www.youtube.com/feeds/videos.xml?channel_id=UChvithwOECK5g_19TjldMKw "(ytb)"
https://www.youtube.com/feeds/videos.xml?channel_id=UCR1D15p_vdP3HkrH8wgjQRw "(ytb)"
https://www.youtube.com/feeds/videos.xml?channel_id=UCjjElKokwu5KCN2PeHzE9Eg "(ytb)" "~Furydrops"
https://www.youtube.com/feeds/videos.xml?channel_id=UCbWcXB0PoqOsAvAdfzWMf0w "(ytb)"
https://www.youtube.com/feeds/videos.xml?channel_id=UCo4au6lRX4-_gIczBneEZWA "(ytb)"
https://www.youtube.com/feeds/videos.xml?channel_id=UCdHT7KB1gDAXZYpPW71fn0Q "(ytb)"
https://www.youtube.com/feeds/videos.xml?channel_id=UCsK84qDhiw7SwtZonplxavg "(ytb)"
https://www.youtube.com/feeds/videos.xml?channel_id=UCvKPc71Dd8qnuKZd2nRyH4g "(ytb)"
https://www.youtube.com/feeds/videos.xml?channel_id=UC8GoduxspzU7MpKYdbMyI0A "(ytb)"

View file

@ -1,12 +1,13 @@
#!/usr/bin/perl
# CLI Pipe Viewer 0.2.2 - configuration file
# CLI Pipe Viewer 0.3.1 - configuration file
our $CONFIG = {
api_host => "auto",
audio_quality => "best",
auto_captions => 0,
autoplay_mode => 0,
bypass_age_gate_with_proxy => 0,
bypass_age_gate_with_proxy => 1,
cache_dir => "$ENV{HOME}/.cache/pipe-viewer",
colors => 1,
comments_order => "top",
@ -48,6 +49,7 @@ our $CONFIG = {
downloads_dir => "$ENV{HOME}/downloads",
env_proxy => 1,
fat32safe => 0,
features => [],
ffmpeg_cmd => "ffmpeg",
force_fallback => 0,
fullscreen => 0,
@ -66,9 +68,9 @@ our $CONFIG = {
keep_original_video => 0,
local_playlist_limit => -1,
maxResults => 25,
merge_into_mkv => 1,
merge_into_mkv => 0,
merge_into_mkv_args => "-loglevel warning -c:s srt -c:v copy -c:a copy -disposition:s forced",
merge_with_captions => 1,
merge_with_captions => 0,
order => "relevance",
page => 1,
prefer_av1 => 0,
@ -101,11 +103,7 @@ our $CONFIG = {
srt => "--sub-file=*SUB*",
},
},
videoCaption => undef,
videoDefinition => undef,
videoDimension => undef,
videoDuration => undef,
videoLicense => undef,
watch_history => 1,
watch_history_file => "$ENV{HOME}/.cache/pipe-viewer/watched",
wget_cmd => "wget",

View file

@ -5,7 +5,7 @@ config.bind('yo', 'hint links spawn linkhandler {hint-url}')
config.bind('yd', 'hint links spawn wm-handler {hint-url}')
# Search engines
c.url.searchengines = {'DEFAULT': 'https://paulgo.io/search?q={}',
c.url.searchengines = {'DEFAULT': 'https://librex.extravi.dev/search.php?q={}',
'w': 'https://en.wikipedia.org/w/index.php?search={}',
'y': 'https://yewtu.be/search?q={}',
'gh': 'https://github.com/search?q={}',

View file

@ -1,20 +1,26 @@
#!/bin/sh
# Feed script a url or file location.
# If an image, it will view in sxiv,
# if a video or gif, it will view in mpv
# if a music file or pdf, it will download,
# otherwise it opens link in browser.
if [ -z "$1" ]; then
url="$(wl-copy -o)"
else
url="$1"
fi
case "$1" in
case "$url" in
*mkv|*webm|*mp4|*youtube.com/watch*|*youtube.com/playlist*|*youtu.be*|*yewtu.be*|*hooktube.com*|*twitch.tv*|*bitchute.com/embed*|*videos.lukesmith.xyz*)
qndl "$1" >/dev/null 2>&1 ;;
*png|*jpg|*jpe|*jpeg|*gif|*svg)
curl -sL "$1" > "/tmp/$(echo "$1" | sed "s/.*\///;s/%20/ /g")" && sxiv -a "/tmp/$(echo "$1" | sed "s/.*\///;s/%20/ /g")" >/dev/null 2>&1 & ;;
setsid -f mpv -quiet "$url" >/dev/null 2>&1 ;;
*png|*jpg|*jpe|*jpeg|*gif)
curl -sL "$url" > "/tmp/$(echo "$url" | sed "s/.*\///;s/%20/ /g")" && sxiv -a "/tmp/$(echo "$url" | sed "s/.*\///;s/%20/ /g")" >/dev/null 2>&1 & ;;
*pdf|*cbz|*cbr)
curl -sL "$1" > "/tmp/$(echo "$1" | sed "s/.*\///;s/%20/ /g")" && zathura "/tmp/$(echo "$1" | sed "s/.*\///;s/%20/ /g")" >/dev/null 2>&1 & ;;
curl -sL "$url" > "/tmp/$(echo "$url" | sed "s/.*\///;s/%20/ /g")" && zathura "/tmp/$(echo "$url" | sed "s/.*\///;s/%20/ /g")" >/dev/null 2>&1 & ;;
*mp3|*flac|*opus|*mp3?source*)
qndl "$1" 'curl -LO' >/dev/null 2>&1 ;;
qndl "$url" 'curl -LO' >/dev/null 2>&1 ;;
*)
[ -f "$url" ] && setsid -f "$TERMINAL" "$EDITOR" "$url" >/dev/null 2>&1 || setsid -f "$BROWSER" "$url" >/dev/null 2>&1
[ -f "$url" ] && setsid -f "$TERMINAL" -e "$EDITOR" "$url" >/dev/null 2>&1 || setsid -f "$BROWSER" "$url" >/dev/null 2>&1
esac