From 05531550c77823eb101855c025d7ab0df450cda8 Mon Sep 17 00:00:00 2001 From: EGA-SUPREMO Date: Mon, 6 May 2024 09:40:05 -0400 Subject: [PATCH] add support for fkbae.to --- yt_dlp/extractor/fyptt.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/yt_dlp/extractor/fyptt.py b/yt_dlp/extractor/fyptt.py index d54fa276e..f9e4296d1 100644 --- a/yt_dlp/extractor/fyptt.py +++ b/yt_dlp/extractor/fyptt.py @@ -4,7 +4,7 @@ import re class FYPTTIE(InfoExtractor): - _VALID_URL = r'https?://(?:stream\.|)fyptt\.to/(?P[0-9a-zA-Z]+)(?:|/)' + _VALID_URL = r'https?://(?:fyptt|fkbae)\.to/(?P[0-9a-zA-Z]+)(?:|/)' _TESTS = [{ 'url': 'https://fyptt.to/203/gorgeous-naughty-blonde-with-beautiful-curves-shows-her-naked-boobies-on-nsfw-tiktok/', 'md5': 'fc12bce4a9c1335f153500c8fea6e1a8', @@ -20,6 +20,9 @@ class FYPTTIE(InfoExtractor): }, { 'url': 'https://fyptt.to/120/small-tits-fit-blonde-dancing-naked-at-the-front-door-on-tiktok', 'only_matching': True, + }, { + 'url': 'https://fkbae.to/18', + 'only_matching': True, }] def _real_extract(self, url): @@ -41,7 +44,8 @@ class FYPTTIE(InfoExtractor): title = self._html_search_regex(r'(.+?)', webpage, 'title') - http_headers = {'Referer': 'https://fyptt.to/'} + base_url = re.search(r'^(https?://[a-zA-Z0-9_-]+\.to)', url).group(1) + http_headers = {'Referer': base_url} return { 'id': video_id,