From 24be0085f04a30fc1ad9470ce4b2e83dff17a8a1 Mon Sep 17 00:00:00 2001 From: lulu <44802077+phoenixthrush@users.noreply.github.com> Date: Sat, 19 Jul 2025 13:25:23 +0200 Subject: [PATCH] Remove unnecessary urllib import --- yt_dlp/extractor/stripchat.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/yt_dlp/extractor/stripchat.py b/yt_dlp/extractor/stripchat.py index 7d6b174446..024ce9a51b 100644 --- a/yt_dlp/extractor/stripchat.py +++ b/yt_dlp/extractor/stripchat.py @@ -1,6 +1,5 @@ -import urllib.parse - from .common import InfoExtractor +from ..utils import base_url as get_base_url class StripchatIE(InfoExtractor): @@ -38,7 +37,7 @@ class StripchatIE(InfoExtractor): def _real_extract(self, url): video_id = self._match_id(url) - is_vr = urllib.parse.urlparse(url).hostname == 'vr.stripchat.com' + is_vr = get_base_url(url) in ('https://vr.stripchat.com/cam/', 'http://vr.stripchat.com/cam/') # The API is the same for both VR and non-VR # f'https://vr.stripchat.com/api/vr/v2/models/username/{video_id}'