diff options
Diffstat (limited to 'gallery_dl/extractor/tiktok.py')
| -rw-r--r-- | gallery_dl/extractor/tiktok.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gallery_dl/extractor/tiktok.py b/gallery_dl/extractor/tiktok.py index 4c1da7a..b9783c4 100644 --- a/gallery_dl/extractor/tiktok.py +++ b/gallery_dl/extractor/tiktok.py @@ -183,10 +183,7 @@ class TiktokVmpostExtractor(TiktokExtractor): url = text.ensure_http_scheme(self.url) headers = {"User-Agent": "facebookexternalhit/1.1"} - response = self.request(url, headers=headers, method="HEAD", - allow_redirects=False, notfound="post") - - url = response.headers.get("Location") + url = self.request_location(url, headers=headers, notfound="post") if not url or len(url) <= 28: # https://www.tiktok.com/?_r=1 raise exception.NotFoundError("post") |
