What does HackerNews think of yt-dlp?

A youtube-dl fork with additional features and fixes

Language: Python

#27 in Hacktoberfest
#18 in Python
The reddit you linked to said to force update your filter lists and things will be back to normal.

Have you done this?

Meanwhile, for a less "ad-full" youtube experience, try yt-dlp: https://github.com/yt-dlp/yt-dlp

> py-kms is on GitHub but I assume it won't remain there for the same reasons as yt-dlp.

You mean this yt-dlp that isn't on there? https://github.com/yt-dlp/yt-dlp

That script also does more than just Online KMS activation, which would be clear from a few seconds skimming.

There's also been no indication that any of these repos would get taken down. At all. py-kms has been there since 2017. You'd think if Microsoft had such a big problem with its existence, it'd have gotten pulled in the last 6 years.

yt-dlp is everywhere - why would they go after pypi and not the source at https://github.com/yt-dlp/yt-dlp
It'll just be more of a pain to watch YouTube videos but I'd much rather manually download the video with yt-dlp[1] than put up with this bullshit.

[1]: https://github.com/yt-dlp/yt-dlp

>Have any YouTube recommendations?

Yes. Don't use YouTube.

Or if you feel you must, download (via yt-dlp[0] or similar) videos and watch them offline.

[0] https://github.com/yt-dlp/yt-dlp

Just download what you want to watch with yt-dlp: https://github.com/yt-dlp/yt-dlp

And never see another youtube ad (other than ads the creators directly include as part of the video stream itself).

Note: I would encourage switching over from youtube-dlp to yt-dlp (https://github.com/yt-dlp/yt-dlp)

As I understand it, yt-dlp is considerably faster.

I’d guess yt-dlp (1) + cookies from your browser or Google username and password. You can run yt-dlp on iPhone in a-Shell (2).

a-Shell supports Apple Shortcuts, so you could, for example, make a shortcut that runs ‘ yt-dlp -x -f bestaudio -o "% (playlist_index)s - %(title)s.%(ext)s" ’, which downloads a playlist and maintains the order (e.g 1, 2, 3 and so on).

On a side note, a-Shell can help you get around tethering limits using iOS-SOCKS-Server (3) or an equivalent. On Android, PDANet is great for this, but on iOS it takes a little more work.

1: https://github.com/yt-dlp/yt-dlp

2: https://holzschu.github.io/a-Shell_iOS/

3: https://github.com/nneonneo/ios-socks-server

Obviously, this tool does circumvent YouTube's mechanisms to download and edit a video. The user kinda accepts the risk (how many of them even read that privacy policy?) but there is no verification that they have any rights to the video. Which is imho as it should be.

It's neither wrong nor illegal to download someone's video and edit it. It's explicitly allowed in many jurisdictions under fair use. However, OP seems to accept complaint's framing.

Speaking of youtube-dl, there's an excellent fork, yt-dlp[1], which circumvents the newer speed limiting features YouTube implemented. (From what I gather, they use APIs for older devices.)

[1] https://github.com/yt-dlp/yt-dlp

Reminders:

yt-dlp[1] allows you to download videos to disk via command line. Lots of options.

Also, there's this Google-owned youtube-nocookie.com domain which is lighter than main one. DuckDuckGo offers to show YouTube videos from it under the "Videos" tab (not when video is suggested on the "All" tab) without fully switching browser to video's page on YT site.

Also, you can use it to listen to YT audio on iOS Safari, on an locked iPhone. To do so, search the video in DDG, switch to "Videos" tab, play it on duckduckgo.com on the results page (without switching to www.youtube.com). Lock your phone and it will stop playing audio. Tap the screen (don't unlock) and you'll have the usual media player on the lock screen, showing the title and author of YT video. Simply hit the play button and you can switch the screen off.

EDIT: reply to a freshly deleted "don't use if you don't pay" comment:

I own a BluRay or DVD copy of every single movie or TV series I pirated and liked. I paid studios times more than I would if I never pirated and seen those products in the first place.

After Google bought YouTube, other media streaming services started to diminish. Some content started to be only available on YouTube. Until Google was a team player and the "don't be evil" slogan wasn't trashed - I used the service and seen and was annoyed by ads. Then there were more ads. And many, many, many, many other issues with Google.

I ditched the account I had with them. Haven't made a single search with their engine in 3+ years I believe.

I use yt-dlp to watch YT videos and encourage everyone to do the same if they are annoyed by Google's user-hostile practices.

[1] https://github.com/yt-dlp/yt-dlp

The interesting bit I took from the article was the curl-impersonate project. I could see some benefit in developers starting to implement this in other projects such as yt-dlp [2] to reduce the risk of being blocked in the future. They mention Cat and Mouse in the article. That has been the case with yt-dlp and other video download utilities.

[1] - https://github.com/lwthiker/curl-impersonate

[2] - https://github.com/yt-dlp/yt-dlp

I've become a convert to Zotero[1], even though I'm not an academic. It will automatically snapshot websites (although paywalls and such can trip it up) and for many academic sites will find a PDF version and attach it. For anything it can't automatically archive, it's easy to attach or provide a link to your personal archive version. When I need to manually archive something, wget as:

    wget --mirror --convert-links --adjust-extension --page-requisites --no-parent https://site-to-download.com
For videos, youtube-dl or its successor, yt-dlp[2] work well.

1 https://www.zotero.org/

2 https://github.com/yt-dlp/yt-dlp

Have you tried https://github.com/yt-dlp/yt-dlp ? A maintained fork of youtube-dl that also supports many other sites.
At some point during Covid they seemed to just decide they wanted to abuse users and its been a steady decline since.

My largest use cases were watching DJ sets, music videos, stand up comedians, instructional videos, and life of (random career) videos

Music videos have multiple ads before and after now. The music videos are still watchable but it sucks to put youtube on at a party now.

Life of videos from channels worth watching have started to turn off ads in place of putting in their own sponsored content. Annoying but similar to TV commercials of the past and are always skippable.

But they have started destroying all of the other content I enjoyed. Instructional videos are overly long with the interrupting ads to the point of questioning whether the visual information with more time but easier understanding vs the extra reading becomes a serious contemplation.

But comedies and extended DJ sets are unwatchable. The ML "predicts" natural breaks in language to insert ads into. When it comes to comedies its usually right before the punch line/the laughing, but the developers do not care at all that after the commercial ends and are resuming a second or two after the punch line. Not only is the timing ruined but you often miss the joke entirely. They have not figured out what to do with DJ sets so they just randomly interrupt in the middle of songs. I had ad breaks 3 times within 10 minutes of a 60 minute set today before I switched to AirPlaying my computer with AdNauseum installed.

Anything I think I might want to watch ever again is immediately added to a playlist for yt-dlp. It makes the content watchable again and protects against channels that will delete content so they can add it back later for increased later views or because of fake DMCA takedowns.

https://github.com/yt-dlp/yt-dlp

I had issues with youtube severely capping my download speeds using youtube-dl, but had success with https://github.com/yt-dlp/yt-dlp
They'd have to vary the ad timing to get past sponsorblock, and generating a video for each viewer to do targeting. I can't imagine Google going back to content-based ads after all this time.

https://github.com/yt-dlp/yt-dlp/#sponsorblock-options