Index | Thread | Search

From:
beecdaddict@danwin1210.de
Subject:
[yt-dlp][patch] add 3 .i2p adresses to extractor/youtube.py
To:
ports@openbsd.org
Date:
Sat, 10 Feb 2024 19:22:59 -0000

Download raw body.

Thread
  • beecdaddict@danwin1210.de:

    [yt-dlp][patch] add 3 .i2p adresses to extractor/youtube.py

hello list,
I mailed the yt-dlp developer with the attached diff patch, not sure when
the patch will be applied and it maybe take months?
so now have this and maybe remove when it is merged in next release?
I don't compile myself and others might like this

I am sorry directory structure in diff maybe not right
and because of how I2P works, not every site has a working .i2p domain, so
we have to include .b32.i2p main address for every .i2p domain
example: http://inv.vern.i2p worked but now it redirects to
http://vern.i2p, so I added the b32.i2p of the inv instance

thanks and sorry if this isn't good because its temporarily fix
--- youtube.py	Sat Dec 30 22:43:13 2023
+++ youtube.py.new	Sat Feb 10 19:11:05 2024
@@ -320,6 +320,9 @@
         r'(?:www\.)?invidious\.ethibox\.fr',
         r'(?:www\.)?iv\.ggtyler\.dev',
         r'(?:www\.)?inv\.vern\.i2p',
+        r'(?:www\.)?verni6dr4qxjgjumnvesxerh5rvhv6oy5ddeibaqy5d7tgbiiyfa\.b32\.i2p',
+        r'(?:www\.)?tube\.i2p',
+        r'(?:www\.)?vipzc556nzjraiqsk5xwvyhz54fvtqt3vrepdarat3zsj4a6eypq\.b32\.i2p',
         r'(?:www\.)?am74vkcrjp2d5v36lcdqgsj2m6x36tbrkhsruoegwfcizzabnfgf5zyd\.onion',
         r'(?:www\.)?inv\.riverside\.rocks',
         r'(?:www\.)?invidious\.silur\.me',