Content Type
Profiles
Forums
Events
Everything posted by nicolaasjan
-
You were right, there was an error in my `update.py` (Locally; not in the source on GitHub yet). I have uploaded a new x86_win7 file.
-
I was notified by someone, that the `--update` option used for the Windows 7 builds, now gives an error: [debug] Fetching release info: https://api.github.com/repos/nicolaasjan/yt-dlp/releases/latest [debug] Downloading _update_spec from https://github.com/nicolaasjan/yt-dlp/releases/latest/download/_update_spec [debug] Downloading SHA2-256SUMS from https://github.com/nicolaasjan/yt-dlp/releases/download/2025.08.14.072314/SHA2-256SUMS WARNING: The hash could not be found in the checksum file, skipping verification Current version: nicolaasjan/yt-dlp@2025.08.10.082046 Latest version: nicolaasjan/yt-dlp@2025.08.14.072314 Current Build Hash: f5bfc88f5fc6eee457a74efc80aeb0f0ffed3f5943569cc443fbe689d83ef829 Updating to nicolaasjan/yt-dlp@2025.08.14.072314 ... [debug] Downloading yt-dlp_win7_x86.exe from https://github.com/nicolaasjan/yt-dlp/releases/download/2025.08.14.072314/yt-dlp_win7_x86.exe ERROR: The requested tag nicolaasjan/yt-dlp@2025.08.14.072314 does not exist How do I solve this???
-
I tested adang1345's Python 3.14.0rc1 and was able to build and run yt-dlp on Windows 7 (in a VM snapshot). That should give us 5 years. Only issue: I had to compile the Brotli dependency myself, because it is not yet offered on PyPI. Cffi wheel for Python 3.14 was found here.
-
I understand. We all hope this unprovoked invasion will soon be a thing of the past and you'll have more time for your hobby. 🇺🇦
-
@cmalex Thanks again for your efforts to keep Python alive on vintage operating systems! Using your latest Python 3.9 environment, I successfully updated the included yt-dlp via pip to the Nightly build: pip install -U --pre "yt-dlp[default]" Now I get the warning: `yt-dlp -v` output: [debug] Command-line config: ['-v'] [debug] User config "C:\Documents and Settings\Nico\Application Data\yt-dlp\config.txt": ['--rm-cache-dir', '--console-title', '--add-metadata', '--embed-thumbnail', '--convert-thumbnails', 'jpg', '--ppa', 'ffmpeg:-metadata synopsis=""', '-o', '~/Bureaublad/%(title)s.%(ext)s', '-S', 'res:720,vcodec:h264,acodec:mp4a', '--sponsorblock-remove', 'all'] Deprecated Feature: Support for Python version 3.9 has been deprecated. Please update to Python 3.10 or above [debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out cp1252 (No VT), error cp1252 (No VT), screen cp1252 (No VT) [debug] yt-dlp version nightly@2025.07.31.233123 from yt-dlp/yt-dlp-nightly-builds [71f30921a] (pip) [debug] Python 3.9.13 (CPython x86 32bit) - Windows-XP-5.1.2600-SP3 (OpenSSL 1.1.1i 8 Dec 2020) [debug] exe versions: ffmpeg N-116828-g6aafe61-Reino (fdk,setts), ffprobe N-116828-g6aafe61-Reino, phantomjs 1.9.8 [debug] Optional libraries: Cryptodome-3.23.0, brotli-1.1.0, certifi-2025.07.14, mutagen-1.47.0, requests-2.32.4, sqlite3-3.37.2, urllib3-2.5.0, websockets-15.0.1 [debug] Proxy map: {} [debug] Request Handlers: urllib, requests, websockets [debug] Plugin directories: none [debug] Loaded 1858 extractors Removing cache dir C:\Documents and Settings\Nico/.cache\yt-dlp .. Python 3.9 support will be fully dropped in October 2025 (#13861). See also #13858. Is it feasible for you to port Python 3.10 or even 3.11 to Windows XP? I'm sure the community here would be very grateful if you succeeded.
-
The answer was actually from Copilot AI.
-
I have been "brain"storming with Copilot (something I'd rather like to avoid 😡) and "it" came with this: Testing that script gave me: Connecting to www.google.com:443 Socket connection error: [Errno 0] Error Copilot's answer:
-
Link is in this post from @cmalex. My current `C:\Python39` folder with the needed site-packages for building yt-dlp here.
-
At the moment my youtube-dl fork still works with YouTube.
-
For my Py3.9 build on XP no version of PyInstaller after 5.13.2 works. So, I do: python -m pip install -U "setuptools>=71.0.2,<81" pip wheel pip install -U pyinstaller==5.13.2 -r requirements.txt Where `requirements.txt` is: mutagen pycryptodomex brotli; implementation_name=='cpython' certifi requests>=2.32.2,<3 urllib3>=1.26.17,<3 websockets>=13.0 O, that is the debug (--verbose) mode of yt-dlp itself.
-
Can someone please test my yt-dlp Python 3.11 build, to see if you face the same errors when trying to download a video? [debug] Command-line config: ['-v', 'https://www.youtube.com/watch?v=Ef9QnZVpVd8'] [debug] User config "C:\Documents and Settings\Nico\Application Data\yt-dlp\config.txt": ['--rm-cache-dir', '--proxy', '', '--console-title', '--force-ipv4', '--add-metadata', '--embed-thumbnail', '--convert-thumbnails', 'jpg', '--ppa', 'ffmpeg:-metadata synopsis=""', '-o', '~/Bureaublad/%(title)s.%(ext)s', '-f', 'bestvideo[height<=1080][ext=mp4][vcodec^=avc]+bestaudio[ext=m4a]/best[ext=mp4]/best', '--sponsorblock-remove', 'all'] [debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out cp1252 (No VT), error cp1252 (No VT), screen cp1252 (No VT) [debug] yt-dlp version nicolaasjan/yt-dlp@2025.07.27.085012 (win_x86_exe) [debug] Python 3.11.9 (CPython x86 32bit) - Windows-XP-5.1.2600-SP3 (OpenSSL 3.3.1 4 Jun 2024) [debug] exe versions: ffmpeg N-116828-g6aafe61-Reino (fdk,setts), ffprobe N-116828-g6aafe61-Reino, phantomjs 1.9.8 [debug] Optional libraries: Cryptodome-3.23.0, brotli-1.1.0, certifi-2025.07.14, mutagen-1.47.0, requests-2.32.3, sqlite3-3.45.3, urllib3-2.5.0, websockets-15.0.1 [debug] Proxy map: {'all': '__noproxy__'} [debug] Request Handlers: urllib, requests, websockets [debug] Plugin directories: none [debug] Loaded 1856 extractors Removing cache dir C:\Documents and Settings\Nico/.cache\yt-dlp .. [debug] [youtube] [pot] PO Token Providers: none [debug] [youtube] [pot] PO Token Cache Providers: memory [debug] [youtube] [pot] PO Token Cache Spec Providers: webpo [youtube] Extracting URL: https://www.youtube.com/watch?v=Ef9QnZVpVd8 [youtube] Ef9QnZVpVd8: Downloading webpage WARNING: [youtube] <urllib3.connection.HTTPSConnection object at 0x0378AF30>: Failed to establish a new connection: [Errno 0] Error. Retrying (1/3)... [youtube] Ef9QnZVpVd8: Downloading webpage WARNING: [youtube] <urllib3.connection.HTTPSConnection object at 0x032FD1B0>: Failed to establish a new connection: [Errno 0] Error. Retrying (2/3)... [youtube] Ef9QnZVpVd8: Downloading webpage WARNING: [youtube] <urllib3.connection.HTTPSConnection object at 0x032FB730>: Failed to establish a new connection: [Errno 0] Error. Retrying (3/3)... [youtube] Ef9QnZVpVd8: Downloading webpage WARNING: [youtube] Unable to download webpage: <urllib3.connection.HTTPSConnection object at 0x0378A110>: Failed to establish a new connection: [Errno 0] Error (caused by TransportError('<urllib3.connection.HTTPSConnection object at 0x0378A110>: Failed to establish a new connection: [Errno 0] Error')). Giving up after 3 retries [youtube] Ef9QnZVpVd8: Downloading initial data API JSON WARNING: [youtube] <urllib3.connection.HTTPSConnection object at 0x032F9AD0>: Failed to establish a new connection: [Errno 0] Error. Retrying (1/3)... [youtube] Ef9QnZVpVd8: Downloading initial data API JSON WARNING: [youtube] <urllib3.connection.HTTPSConnection object at 0x032F6FB0>: Failed to establish a new connection: [Errno 0] Error. Retrying (2/3)... [youtube] Ef9QnZVpVd8: Downloading initial data API JSON WARNING: [youtube] <urllib3.connection.HTTPSConnection object at 0x032FBE90>: Failed to establish a new connection: [Errno 0] Error. Retrying (3/3)... [youtube] Ef9QnZVpVd8: Downloading initial data API JSON ERROR: [youtube] Ef9QnZVpVd8: Unable to download API page: <urllib3.connection.HTTPSConnection object at 0x032F9910>: Failed to establish a new connection: [Errno 0] Error (caused by TransportError('<urllib3.connection.HTTPSConnection object at 0x032F9910>: Failed to establish a new connection: [Errno 0] Error')) File "yt_dlp\extractor\common.py", line 761, in extract File "yt_dlp\extractor\youtube\_video.py", line 3814, in _real_extract File "yt_dlp\extractor\youtube\_video.py", line 3794, in _initial_extract File "yt_dlp\extractor\youtube\_video.py", line 3772, in _download_initial_data File "yt_dlp\extractor\youtube\_base.py", line 1213, in _extract_response File "yt_dlp\utils\_utils.py", line 5248, in __iter__ File "yt_dlp\extractor\common.py", line 4059, in _error_or_warning File "yt_dlp\utils\_utils.py", line 5256, in report_retry File "yt_dlp\extractor\youtube\_base.py", line 1203, in _extract_response File "yt_dlp\extractor\youtube\_base.py", line 791, in _call_api File "yt_dlp\extractor\common.py", line 1149, in download_content File "yt_dlp\extractor\common.py", line 1107, in download_handle File "yt_dlp\extractor\common.py", line 972, in _download_webpage_handle File "yt_dlp\extractor\youtube\_base.py", line 769, in _request_webpage File "yt_dlp\extractor\common.py", line 921, in _request_webpage File "urllib3\connection.py", line 198, in _new_conn File "urllib3\util\connection.py", line 60, in create_connection File "socket.py", line 962, in getaddrinfo OSError: [Errno 0] Error The above exception was the direct cause of the following exception: Traceback (most recent call last): File "yt_dlp\networking\_requests.py", line 338, in _send File "requests\sessions.py", line 589, in request File "requests\sessions.py", line 703, in send File "requests\adapters.py", line 667, in send File "urllib3\connectionpool.py", line 841, in urlopen File "urllib3\util\retry.py", line 449, in increment File "urllib3\util\util.py", line 39, in reraise File "urllib3\connectionpool.py", line 787, in urlopen File "urllib3\connectionpool.py", line 488, in _make_request File "urllib3\connectionpool.py", line 464, in _make_request File "urllib3\connectionpool.py", line 1093, in _validate_conn File "urllib3\connection.py", line 753, in connect File "urllib3\connection.py", line 213, in _new_conn urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x032F9910>: Failed to establish a new connection: [Errno 0] Error The above exception was the direct cause of the following exception: Traceback (most recent call last): File "yt_dlp\extractor\common.py", line 908, in _request_webpage File "yt_dlp\YoutubeDL.py", line 4236, in urlopen File "yt_dlp\networking\common.py", line 117, in send File "yt_dlp\networking\_helper.py", line 194, in wrapper File "yt_dlp\networking\common.py", line 359, in send File "yt_dlp\networking\_requests.py", line 366, in _send yt_dlp.networking.exceptions.TransportError: <urllib3.connection.HTTPSConnection object at 0x032F9910>: Failed to establish a new connection: [Errno 0] Error
-
A long time ago I asked user @Maroc (now gone...) on the My Digital Life Forums about his Python 3.11 Embed build for XP. As I mentioned before, I can't get it working on XP. See also our conversation later in that thread. I managed to build yt-dlp with it, but when using I get errors like: WARNING: [youtube] Unable to download API page: <urllib3.connection.HTTPSConnection object at 0x03B29A70>: Failed to establish a new connection: [Errno 0] Error (caused by TransportError('<urllib3.connection.HTTPSConnection object at 0x03B29A70>: Failed to establish a new connection: [Errno 0] Error'))
-
I was thinking about that, but it may not be easy, I guess? When the time comes, maybe someone here will help me with it (I'm not a Python coder). Furthermore, newer changes applied to the various extractors (especially for YouTube), using code that is incompatible with Python <3.10 will not work anyway. From Issue #13858:
-
Bad news ☹️ : yt-dlp starts preparations to remove Python 3.9 support (October 2025): https://github.com/yt-dlp/yt-dlp/pull/13861 https://github.com/yt-dlp/yt-dlp/issues/13858
-
@j7n When you don't want the webm, you can tell yt-dlp to skip it: `bestaudio[language=en][ext!=webm]`
-
If you specifically want opus, yt-dlp can do that for you? 🤔 Try this: yt-dlp -x -f bestaudio[ext=webm] --embed-metadata --embed-thumbnail https://www.youtube.com/watch?v=PD-MdiUm1_Y ( `-x` will extract the opus audio)
-
I think I misunderstood. Can you play them when using `--remux-video mkv` ?
-
Audio only files? You can do it with a batch file from within the directory where you have the webm audio files (save as e.g. webm2mka.bat): @echo off for %%i in (*.webm) do ( ffmpeg -i "%%i" -c:a copy "%%~ni.mka" ) echo Conversion complete! pause Or directly while downloading with yt-dlp (see Post-Processing Options): yt-dlp -f 251 --remux-video mka https://www.youtube.com/watch?v=PD-MdiUm1_Y Removing cache dir C:\Documents and Settings\Nico/.cache\yt-dlp ... [youtube] Extracting URL: https://www.youtube.com/watch?v=PD-MdiUm1_Y [youtube] PD-MdiUm1_Y: Downloading webpage [youtube] PD-MdiUm1_Y: Downloading tv client config [youtube] PD-MdiUm1_Y: Downloading player a1f2424c-main [youtube] PD-MdiUm1_Y: Downloading tv player API JSON [youtube] PD-MdiUm1_Y: Downloading ios player API JSON [youtube] PD-MdiUm1_Y: Downloading m3u8 information [SponsorBlock] Fetching SponsorBlock segments [SponsorBlock] No matching segments were found in the SponsorBlock database [info] PD-MdiUm1_Y: Downloading 1 format(s): 251 [info] Downloading video thumbnail 41 ... [info] Writing video thumbnail 41 to: C:\Documents and Settings\Nico\Desktop\Led Zeppelin - Kashmir (Live from Celebration Day) [Official Video].webp [ThumbnailsConvertor] Converting thumbnail "C:\Documents and Settings\Nico\Desktop\Led Zeppelin - Kashmir (Live from Celebration Day) [Official Video].webp" to jpg Deleting original file C:\Documents and Settings\Nico\Desktop\Led Zeppelin - Kashmir (Live from Celebration Day) [Official Video].webp (pass -k to keep) [download] Destination: C:\Documents and Settings\Nico\Desktop\Led Zeppelin - Kashmir (Live from Celebration Day) [Official Video].webm [download] 0.0% of 8.09MiB at Unknown B/s ETA Unknown[download] 0.0% of 8.09MiB at Unknown B/s ETA Unknown[download] 0.1% of 8.09MiB at Unknown B/s ETA Unknown[download] 0.2% of 8.09MiB at Unknown B/s ETA Unknown[download] 0.4% of 8.09MiB at Unknown B/s ETA Unknown[download] 0.8% of 8.09MiB at 6.14MiB/s ETA 00:01 [download] 1.5% of 8.09MiB at 4.13MiB/s ETA 00:01[download] 3.1% of 8.09MiB at 4.97MiB/s ETA 00:01[download] 6.2% of 8.09MiB at 8.31MiB/s ETA 00:00[download] 12.4% of 8.09MiB at 11.08MiB/s ETA 00:00[download] 24.7% of 8.09MiB at 16.63MiB/s ETA 00:00[download] 49.4% of 8.09MiB at 22.18MiB/s ETA 00:00[download] 98.9% of 8.09MiB at 27.54MiB/s ETA 00:00[download] 100.0% of 8.09MiB at 27.85MiB/s ETA 00:00[download] 100% of 8.09MiB in 00:00:00 at 20.71MiB/s [VideoRemuxer] Remuxing video from webm to mka; Destination: C:\Documents and Settings\Nico\Desktop\Led Zeppelin - Kashmir (Live from Celebration Day) [Official Video].mka Deleting original file C:\Documents and Settings\Nico\Desktop\Led Zeppelin - Kashmir (Live from Celebration Day) [Official Video].webm (pass -k to keep) [ModifyChapters] SponsorBlock information is unavailable [Metadata] Adding metadata to "C:\Documents and Settings\Nico\Desktop\Led Zeppelin - Kashmir (Live from Celebration Day) [Official Video].mka" [EmbedThumbnail] ffmpeg: Adding thumbnail to "C:\Documents and Settings\Nico\Desktop\Led Zeppelin - Kashmir (Live from Celebration Day) [Official Video].mka"
-
Given that the yt-dlp issue tracker will only accept issues accompanied with a verbose log from their own release builds, I'm afraid any issues experienced with my build cannot be discussed there. Also, any issues with my fork will mostly also happen with the upstream build. So, first search their issue tracker to see if someone has experienced something similar. If nothing is found, then perhaps ask right here? Or, like another forum member had done, PM me. He had an issue with some Polish site and I was able to reproduce it with the official yt-dlp build. Then I opened an issue there and it was solved.
-
Done. 😽
-
Yes, I saw that. However, their new code snippet used in that commit didn't play well with Python 3.4.4... Maybe I can implement it like: def random_user_agent(): _USER_AGENT_TPL = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/%s Safari/537.36' _CHROME_VERSIONS = ( '132.0.0.0', '133.0.0.0', '134.0.0.0', '135.0.0.0', '136.0.0.0', '137.0.0.0', '138.0.0.0', ) return _USER_AGENT_TPL % random.choice(_CHROME_VERSIONS) 🤔
-
Hmm... I honestly have no idea. The build hashes for `youtube-dl.exe` in my repo can be seen under Assets. However, in the Nightly repo there are separate SHA2-256SUMS files. Maybe the program looks for these? (wild guess) The executables in my repo aren't built by GitHub Actions, but manually uploaded. I think you shouldn't worry about it to much.
-
I don't know anything about Python either, but I just uploaded the new `update.py` (with only one line changed) into the GitHub web editor and committed.
-
@VistaLover That's because of line 37 in `./youtube_dl/update.py`. UPDATE_URL = 'https://yt-dl.org/update/' For some reason it redirects to: https://github.com/yt-dlp/yt-dlp/update/ ---> 404. In version 2025.06.26 (and previous versions) I had it set to: UPDATE_URL = 'https://ytdl-org.github.io/youtube-dl/update/' (also 404, by the way) My version is not supposed to be updated with `-U`. Do you perhaps have any idea how to change `update.py` for my fork to actually make it work with `-U`? [Edit] I think I managed to fix it. Took `update.py` from youtube-dl Nightly as an example. youtube-dl -vU [debug] System config: [] [debug] User config: ['--console-title', '--rm-cache-dir', '-i', '-o', '/dev/shm/test-ytd/%(title)s.%(ext)s', '-f', 'bestvideo[height<=1080][ext=mp4][vcodec^=avc]+bestaudio[ext=m4a]/best[ext=mp4]/best', '--no-mtime', '--embed-thumbnail', '--force-ipv4'] [debug] Custom config: [] [debug] Command-line args: ['-vU'] [debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8 [debug] youtube-dl version 2025.07.12 [debug] Lazy loading extractors enabled [debug] Single file build [debug] Python 3.10.12 (CPython x86_64 64bit) - Linux-5.15.0-143-generic-x86_64-with-glibc2.35 - OpenSSL 3.0.2 15 Mar 2022 - glibc 2.35 [debug] exe versions: ffmpeg N-120171-g05094c1749-20250705, ffprobe N-120171-g05094c1749-20250705, rtmpdump 2.4 [debug] Proxy map: {} Latest version: 2025.07.12, Current version: 2025.07.12 youtube-dl is up to date (2025.07.12) Removing cache dir /home/nico/.cache/youtube-dl .. I also don't understand why @dirkf still hasn't updated the Installation section in the Readme. It's a complete mess. BTW, I've made a significant change to `./youtube_dl/utils.py`, as I suggested here. Youtube-dl actually works now.
-
My Browser Builds (Part 5)
nicolaasjan replied to roytam1's topic in Browsers working on Older NT-Family OSes
See: https://forum.palemoon.org/viewtopic.php?f=17&t=32478#p263454