specter

joined 1 year ago
MODERATOR OF
 

meet me in outttteeerrrr space

-21
hi. (www.youtube.com)
 

ALL ABOARD

0
Mask (www.youtube.com)
 

we don't like when the city people act crooked, when the city people crooked then we can't GET DOWN

2
submitted 3 months ago* (last edited 3 months ago) by [email protected] to c/[email protected]
 

both forgejo and lemmy use [email protected]

sick. very cool. carry on

 

Oh, we hated our aunts, then we messed in our pants

1
newsboat + yt-dlp (board.minimally.online)
submitted 3 months ago* (last edited 3 months ago) by [email protected] to c/[email protected]
 

This line in ~/.newsboat/config will allow for hitting ",d" to download the current link with dl.sh which wraps yt-dlp.

macro d set browser "~/bin/dl.sh %u 2>&1 >/dev/null &" ; open-in-browser ; set browser "xdg-open %u"

Here's an example dl.sh file that uses notify-send so you know something is going to happen in the background and as a chance to cancel the operation. It downloads videos to ~/Videos/Downloads. Modify to taste!

#!/bin/bash
if [[ "no" != $(notify-send --app-name="yt-dlp" \
                            --urgency=low \
                            --transient "Starting download for $1" \
                            --action=no="Nevermind!") ]]; then
  yt-dlp --sponsorblock-remove all \
         --live-from-start \
         --output "~/Videos/Downloads/%(title)s - %(channel)s (%(id)s).%(ext)s" "$1"
  else
    printf "Aborted.\n"
    exit 1
fi

NOTE: if you close newsboat it will also stop the yt-dlp process.

 

I remember people I'd like to get to know em Its kinda like my brain is closed But my heart is open Maybe my heart is broken A comet slammed into the planet Then it parted oceans I even started smoking But then I quit the smoking I still dream of deep breathing and my lips is open I'm coming into focus I used to practice trying to talk like I was Mr. Bogus I bet a lot of lonely people think of kissing posters

view more: ‹ prev next ›