Refactor the dropin 'is_suitable' method + fix tikwm implementation

Makes it easier to maintain/understand.
This commit is contained in:
Patrick Robertson
2025-03-18 08:56:22 +00:00
parent 3d4056ef70
commit 8ec053ed1b
4 changed files with 26 additions and 13 deletions

View File

@@ -142,7 +142,7 @@ class Facebook(GenericDropin):
result.set_url(url)
return result
def is_suitable(self, url, info_extractor: FacebookIE):
def suitable(self, url, info_extractor: FacebookIE):
regex = r"(?:https?://(?:[\w-]+\.)?(?:facebook\.com||facebookwkhpilnemxj7asaniu7vnjjbiltxjqhye3mhbshg7kx5tfyd\.onion)/)"
return re.match(regex, url)