Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Twitter Download does not work for videos with age restriction #6333

Closed
9 tasks done
UnbreakCode opened this issue Feb 23, 2023 · 1 comment
Closed
9 tasks done

Twitter Download does not work for videos with age restriction #6333

UnbreakCode opened this issue Feb 23, 2023 · 1 comment
Labels
duplicate This issue or pull request already exists

Comments

@UnbreakCode
Copy link

UnbreakCode commented Feb 23, 2023

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

  • I understand that I will be blocked if I intentionally remove or skip any mandatory* field

Checklist

  • I'm reporting a bug unrelated to a specific site
  • I've verified that I'm running yt-dlp version 2023.02.17 (update instructions) or later (specify commit)
  • I've checked that all provided URLs are playable in a browser with the same IP and same login details
  • I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • I've searched known issues and the bugtracker for similar issues including closed ones. DO NOT post duplicates
  • I've read the guidelines for opening an issue

Provide a description that is worded well enough to be understood

I was trying to download an age restricted video from twitter with my twitter cookes from my browser using --cookies-from-browser chrome. yt-dlp still wasn't able to download the video.
Tweet: https://twitter.com/6goettin/status/1619724321760616452

Provide verbose output that clearly demonstrates the problem

  • Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
  • Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output

C:\Users\Niclas\Desktop>yt-dlp -vU -f bestvideo+bestaudio/best https://twitter.com/6goettin/status/1619724321760616452 --cookies-from-browser chrome
[debug] Command-line config: ['-vU', '-f', 'bestvideo+bestaudio/best', 'https://twitter.com/6goettin/status/1619724321760616452', '--cookies-from-browser', 'chrome']
[debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version 2023.02.17 [a0a7c01] (win_exe)
[debug] Python 3.8.10 (CPython AMD64 64bit) - Windows-10-10.0.19044-SP0 (OpenSSL 1.1.1k  25 Mar 2021)
[debug] exe versions: ffmpeg n4.4-178-g4b583e5425-20211012 (setts), ffprobe n4.4-178-g4b583e5425-20211012
[debug] Optional libraries: Cryptodome-3.17, brotli-1.0.9, certifi-2022.12.07, mutagen-1.46.0, sqlite3-2.6.0, websockets-10.4
[Cookies] Extracting cookies from chrome
[debug] Extracting cookies from: "C:\Users\Niclas\AppData\Local\Google\Chrome\User Data\Default\Network\Cookies"
[debug] Found local state file at "C:\Users\Niclas\AppData\Local\Google\Chrome\User Data\Local State"
[Cookies] Extracted 3287 cookies from chrome
[debug] cookie version breakdown: {'v10': 3287, 'other': 0, 'unencrypted': 0}
[debug] Proxy map: {}
[debug] Loaded 1782 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Latest version: 2023.02.17, Current version: 2023.02.17
yt-dlp is up to date (2023.02.17)
[twitter] Extracting URL: https://twitter.com/6goettin/status/1619724321760616452
[debug] [twitter] Using GraphQL API (Auth = True)
[twitter] 1619724321760616452: Downloading JSON metadata
[debug] [twitter] Extracting from video info: 1619724243175866371
[twitter] 1619724321760616452: Downloading m3u8 information
[debug] Sort order given by extractor: res, br, size, proto
[debug] Formats sorted by: hasvid, ie_pref, res, tbr, vbr, abr, filesize, fs_approx, proto, lang, quality, fps, hdr:12(7), vcodec:vp9.2(10), channels, acodec, asr, vext, aext, hasaud, source, id
[info] 1619724243175866371: Downloading 1 format(s): http-950
[debug] Invoking http downloader on "https://video.twimg.com/ext_tw_video/1619724243175866371/pu/vid/400x848/vsHm9gFDxqq0kC9z.mp4?tag=12"
[download] Unable to open file: [Errno 22] Invalid argument: 'Ariel Nichtmerjungfrau| OF 3,50💲‼️ - @donambiento Das is auch wild. Flext mit nem dude der sein besten freund inklusive seine ganze familie ausgeknipst hat. Und das er genügend hitmans hat lol. Was is das leute also bitte. Sobald dat ganze endlich gerichtlich seinen lauf genommen ha, kan ich  ein paar andere sachen auftischen. [1619724243175866371].mp4.part'. Retrying (1/3)...
[download] Unable to open file: [Errno 22] Invalid argument: 'Ariel Nichtmerjungfrau| OF 3,50💲‼️ - @donambiento Das is auch wild. Flext mit nem dude der sein besten freund inklusive seine ganze familie ausgeknipst hat. Und das er genügend hitmans hat lol. Was is das leute also bitte. Sobald dat ganze endlich gerichtlich seinen lauf genommen ha, kan ich  ein paar andere sachen auftischen. [1619724243175866371].mp4.part'. Retrying (2/3)...
[download] Unable to open file: [Errno 22] Invalid argument: 'Ariel Nichtmerjungfrau| OF 3,50💲‼️ - @donambiento Das is auch wild. Flext mit nem dude der sein besten freund inklusive seine ganze familie ausgeknipst hat. Und das er genügend hitmans hat lol. Was is das leute also bitte. Sobald dat ganze endlich gerichtlich seinen lauf genommen ha, kan ich  ein paar andere sachen auftischen. [1619724243175866371].mp4.part'. Retrying (3/3)...
ERROR: unable to open for writing: [Errno 22] Invalid argument: 'Ariel Nichtmerjungfrau| OF 3,50💲‼️ - @donambiento Das is auch wild. Flext mit nem dude der sein besten freund inklusive seine ganze familie ausgeknipst hat. Und das er genügend hitmans hat lol. Was is das leute also bitte. Sobald dat ganze endlich gerichtlich seinen lauf genommen ha, kan ich  ein paar andere sachen auftischen. [1619724243175866371].mp4.part'
Traceback (most recent call last):
  File "yt_dlp\utils.py", line 639, in sanitize_open
yt_dlp.utils.LockingUnsupportedError: File locking is not supported

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "yt_dlp\downloader\http.py", line 272, in download
  File "yt_dlp\downloader\common.py", line 228, in wrapper
  File "yt_dlp\utils.py", line 6109, in __iter__
  File "yt_dlp\downloader\common.py", line 221, in error_callback
  File "yt_dlp\utils.py", line 6117, in report_retry
  File "yt_dlp\downloader\common.py", line 230, in wrapper
  File "yt_dlp\downloader\common.py", line 241, in sanitize_open
  File "yt_dlp\utils.py", line 642, in sanitize_open
OSError: [Errno 22] Invalid argument: 'Ariel Nichtmerjungfrau| OF 3,50💲‼️ - @donambiento Das is auch wild. Flext mit nem dude der sein besten freund inklusive seine ganze familie ausgeknipst hat. Und das er genügend hitmans hat lol. Was is das leute also bitte. Sobald dat ganze endlich gerichtlich seinen lauf genommen ha, kan ich  ein paar andere sachen auftischen. [1619724243175866371].mp4.part'
@UnbreakCode UnbreakCode added bug Bug that is not site-specific triage Untriaged issue labels Feb 23, 2023
@bashonly
Copy link
Member

The output filename is too long for Windows.

Workaround: add -o "%(title).150B [%(id)s].%(ext)s" to your command. And if that still doesn't work, try changing 150 to a lower value until it works

Duplicate of #5695

See also: #1136

@bashonly bashonly closed this as not planned Won't fix, can't repro, duplicate, stale Feb 23, 2023
@bashonly bashonly added duplicate This issue or pull request already exists and removed bug Bug that is not site-specific triage Untriaged issue labels Feb 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants