Hopefully…I’m sure it will be deleted from M$ owned GitHub at least, you know…The whole 9 yards of using big tech crap to store your code.
Well i’m sure there are plently of code backups
They have own gitea instance
Hopefully…I’m sure it will be deleted from M$ owned GitHub at least, you know…The whole 9 yards of using big tech crap to store your code.
Well i’m sure there are plently of code backups
They have own gitea instance
It’s the curent year, who uses M$-github anymore? Probably only the people who watch ads on YouTube from their Goolag Crime browser.
Real Chads host their own instance of GitLab.
These are the primary objectives of YouTube, so the cynic in me is not surprised.
I mostly use your mpv script to watch youtube videos or Freetube.
#!/bin/sh
notify-send -t 3000 --icon=video-television "Playing video" "$(xclip -selection clipboard -o)";
mpv "$(xclip -selection clipboard -o)" --osd-level=1
Never heard of Odysee. Thanks for pointing me to.
I don’t use this anymore, got sick of streaming and buffering.
I use this now:
#!/bin/bash
# Directory for downloaded videos:
DL_DIR="$HOME/Videos/temp"
# Video player:
PLAYER="xdg-open"
#PLAYER="/usr/bin/mpv"
#PLAYER="/usr/bin/smplayer"
# Downloader and options:
YTDL="$HOME/bin/yt-dlp"
YTDL_OPTS=(--no-playlist --throttled-rate=100000 -N 10)
YTDL_DIR_OPTS=(-P "$DL_DIR")
set -e
CMD() {
printf "[CMD]: "
printf "\"%s\" " "$@"
printf "\n"
"$@"
}
# Get URL from clipboard if run without argument:
if [ -z "$1" ]; then
URL="$(xclip -o -sel c)"
CLEAR_CLIPBOARD=1
else
URL="$1"
fi
# Get video filename
printf "[URL]: %s\n" "$URL"
FILENAME=$("$YTDL" --get-filename "${YTDL_DIR_OPTS[@]}" "$URL")
printf "[FILE]: %s\n" "$FILENAME"
# Download video
CMD "$YTDL" "${YTDL_OPTS[@]}" "${YTDL_DIR_OPTS[@]}" "$URL"
# Play video
CMD "$PLAYER" "$FILENAME" >/dev/null 2>&1
# OPTIONAL clear clipboard (KDE only)
if (($CLEAR_CLIPBOARD)); then
CMD qdbus org.kde.klipper /klipper org.kde.klipper.klipper.clearClipboardHistory
fi
To use it, I just copy the URL to the clipboard, and run the script above (I have a keybinding Meta+V for it).
Every video that I watch gets saved in $HOME/Videos/temp
directory. I manually wipe it clean every couple of days. You can easily change the script to save videos to /tmp
, so that they get removed automatically on reboot, but I like to keep them, storage is cheap.
A comment about this line:
YTDL="$HOME/bin/yt-dlp"
I don’t use yt-dlp
from the repos, I simply cloned the master branch from the official git repo somewhere in my home directory and then symlinked the executable to $HOME/bin/yt-dlp
. This is because yt-dlp
often gets broken (scumbags at YouTube often intentionally change their API to break it), and I don’t like to wait until it gets updated in the repos (Arch is simply not enough bleeding edge for me ). So I just manually run
git pull
to update it when it breaks.
To download I use the below script which probably also is yours but an earlier revision I guess.
#!/bin/sh
# ytp - a simple script that downloads and plays a video!
# No buffering, no telemetry, no ads, and you get to keep the video locally
# Modify these variables as needed:
# Directory for downloaded videos:
DIR="$HOME/ramdisk"
# Video player:
PLAYER="xdg-open"
#PLAYER="/usr/bin/mpv"
# Downloader and options:
YTDL="/usr/bin/yt-dlp"
YTDLOPTS="--no-playlist"
YTDIROPTS="-P "$DIR""
set -e
# Get URL from clipboard if run without argument:
if [ -z "$1" ]; then
URL="$(xclip -o -sel c)"
else
URL="$1"
fi
# Get video filename
printf "[URL]: %s\n" "$URL"
FILENAME=$("$YTDL" "--get-filename" "$YTDIROPTS" "$URL")
printf "[FILE]: %s\n" "$FILENAME"
# Download video
printf "[CMD]: \"%s\" \"%s\" \"%s\" \"%s\"\n" "$YTDL" "$YTDLOPTS" "$YTDIROPTS" "$URL"
"$YTDL" "$YTDLOPTS" "$YTDIROPTS" "$URL"
# Play video
printf "[CMD]: \"%s\" \"%s\" >/dev/null 2>&1\n" "$PLAYER" "$FILENAME"
"$PLAYER" "$FILENAME" >/dev/null 2>&1
Oh, I see you’re a man of culture!
Yeah, that’s an earlier version.
Well, to be honest, I’m not surprised at all by this. Invidious just got too big. YouTube did increase the amount of ads significantly lately, so it’s clear they are trying to make more money.
I’m afraid they will also block downloads in the near future.
You can’t technically stream video without downloading it…So i wouldn’t hold my breath
First, it’s not like I would want them to do this! But it seems like a logical step and we already know they didn’t like yt-dl.
And I’m no expert here but I guess they could find a way (or at least make downloading more complicated than it is right now).
In order to watch the video from YouTube, your monitor has to turn on certain pixels to certain colours, and your speakers have to vibrate in a certain way to produce sound. How does the monitor know which pixels to set to which colour, and how does the speaker know how to vibrate to produce the correct sound? Well, your computer tells it how to do it, but how does your computer know? That information has to come from somewhere. It’s comes from YouTube, of course, via the internet. What do we call the process of getting information from the network? Downloading.
Streaming is downloading, just in small chunks, sequentially. If your monitor displays it, it’s already downloaded to your computer.
So, they cannot forbid you to download a video without preventing you from watching it.
The worst they can do is to put DRM on it, so that the video file is incomprehensible to the video player of your choice, but even then, if you can display it with the YouTube player, you can record it to a DRM-free format and then give it to anyone you want. They call this practice “pirating”, but it has nothing to do with robbing ships. I call it “sharing”, which is entirely appropriate. This can be automated by services like Odysee or Invidious.
Using a program like simplescreenrecorder will still make downloading videos an easy task with no interference from Youtube who can’t control what one does on their personal system.
If it was so easy, you would not see site support requests on yt-dlp github issues.
Checking the number of extractors :
yay -Ql yt-dlp | grep extractor | wc -l
3110
You obviously missed what I posted a bit later:
“And I’m no expert here but I guess they could find a way (or at least make downloading more complicated than it is right now).”
edit Or this is maybe a misunderstanding regarding the definition of “download”. What I meant was “store to your device in a freely usable, non-encrypted, non-drm, standardized format”.
Who said it was easy?
FFF (Fun Fact of Forum)
Despite anti-9o0L4g sentiments running high on this forum (or at least I get the impression) and despite Invidious has been and is still around, I am perplexed by the fact that most video links posted are links to Youtube.
See for your self: What are you listening to right now? for example
YouTube makes its money from advertising so taking out Invidious was not a surprising or invidious action for me.
I happily post YT links here because I use yt-dlp. If others are foolish enough to allow themselves to be profiled & probed by the 9o0L4g, that’s their lookout
It seems they are just waiting it out, because they aren’t using the API, unlike what YouTube is suggesting.