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

Unable to extract preloads (substack site) #7174

Closed
11 tasks done
ballo opened this issue May 30, 2023 · 1 comment
Closed
11 tasks done

Unable to extract preloads (substack site) #7174

ballo opened this issue May 30, 2023 · 1 comment
Labels
duplicate This issue or pull request already exists site-bug Issue with a specific website

Comments

@ballo
Copy link

ballo commented May 30, 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

Region

USA

Example URLs

https://kisses.substack.com/p/part-1-goodbye-to-mum-goodbye-to#details

Provide a description that is worded well enough to be understood

The executable said to report this as a bug, but it didn't say what category I should file it in. Seems to be a more general embed bug?

Provide verbose output that clearly demonstrates the problem

  • Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
  • If using API, add 'verbose': True to YoutubeDL params instead
  • Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output

~ $ yt-dlp -vU -F https://kisses.substack.com/p/part-1-goodbye-to-mum-goodbye-to#details
[debug] Command-line config: ['-vU', '-F', 'https://kisses.substack.com/p/part-1-goodbye-to-mum-goodbye-to#details']
[debug] Encodings: locale utf-8, fs utf-8, pref utf-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version stable@2023.03.04 [392389b7d] (pip)
[debug] Python 3.11.2 (CPython aarch64 64bit) - Linux-4.4.153-17214672-aarch64-with-libc (OpenSSL 3.0.8 7 Feb 2023, libc)
[debug] exe versions: ffmpeg 6.0 (setts), ffprobe 6.0
[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
[debug] Proxy map: {}
[debug] Loaded 1786 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Available version: stable@2023.03.04, Current version: stable@2023.03.04
yt-dlp is up to date (stable@2023.03.04)
[Substack] Extracting URL: https://kisses.substack.com/p/part-1-goodbye-to-mum-goodbye-to#details
[Substack] part-1-goodbye-to-mum-goodbye-to: Downloading webpage
ERROR: [Substack] part-1-goodbye-to-mum-goodbye-to: Unable to extract preloads; please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
  File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/yt_dlp/extractor/common.py", line 694, in extract
    ie_result = self._real_extract(url)
                ^^^^^^^^^^^^^^^^^^^^^^^
  File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/yt_dlp/extractor/substack.py", line 80, in _real_extract
    webpage_info = self._search_json(r'<script[^>]*>\s*window\._preloads\s*=', webpage, 'preloads', display_id)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/yt_dlp/extractor/common.py", line 1256, in _search_json
    json_string = self._search_regex(
                  ^^^^^^^^^^^^^^^^^^^
  File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/yt_dlp/extractor/common.py", line 1242, in _search_regex
    raise RegexNotFoundError('Unable to extract %s' % _name)

~
@ballo ballo added site-request Request to support a new website triage Untriaged issue labels May 30, 2023
@bashonly
Copy link
Member

Duplicate of #7155

@bashonly bashonly marked this as a duplicate of #7155 May 30, 2023
@bashonly bashonly closed this as not planned Won't fix, can't repro, duplicate, stale May 30, 2023
@bashonly bashonly added duplicate This issue or pull request already exists site-bug Issue with a specific website and removed site-request Request to support a new website triage Untriaged issue labels May 30, 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 site-bug Issue with a specific website
Projects
None yet
Development

No branches or pull requests

2 participants