diff options
author | Umar Getagazov <umar@handlerug.me> | 2023-10-07 01:45:46 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-06 22:45:46 +0000 |
commit | fbcc299bd8a19cf8b3c8805d6c268a9110230973 (patch) | |
tree | eb8cc2b91f46f1b5e58a797076c5bf4d81b69c79 /yt_dlp/extractor/substack.py | |
parent | 48cceec1ddb8649b5e771df8df79eb9c39c82b90 (diff) |
[ie/substack] Fix embed extraction (#8218)
Authored by: handlerug
Diffstat (limited to 'yt_dlp/extractor/substack.py')
-rw-r--r-- | yt_dlp/extractor/substack.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yt_dlp/extractor/substack.py b/yt_dlp/extractor/substack.py index 3782ceed1..5835a5a8d 100644 --- a/yt_dlp/extractor/substack.py +++ b/yt_dlp/extractor/substack.py @@ -50,7 +50,7 @@ class SubstackIE(InfoExtractor): if not re.search(r'<script[^>]+src=["\']https://substackcdn.com/[^"\']+\.js', webpage): return - mobj = re.search(r'{[^}]*["\']subdomain["\']\s*:\s*["\'](?P<subdomain>[^"]+)', webpage) + mobj = re.search(r'{[^}]*\\?["\']subdomain\\?["\']\s*:\s*\\?["\'](?P<subdomain>[^\\"\']+)', webpage) if mobj: parsed = urllib.parse.urlparse(url) yield parsed._replace(netloc=f'{mobj.group("subdomain")}.substack.com').geturl() |