Skip to content

Commit

Permalink
Remove redundant attempt to resolve YouTube urls using common url res…
Browse files Browse the repository at this point in the history
…olver
  • Loading branch information
MoojMidge committed Mar 17, 2024
1 parent 2a579ca commit d2f4ce8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions resources/lib/youtube_plugin/youtube/helper/url_resolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,12 @@ def __init__(self, *args, **kwargs):
super(CommonResolver, self).__init__(*args, **kwargs)

def supports_url(self, url, url_components):
if url_components.hostname in (
'www.youtube.com',
'youtube.com',
'm.youtube.com',
):
return False
return 'HEAD'

def resolve(self, url, url_components, method='HEAD'):
Expand Down

0 comments on commit d2f4ce8

Please sign in to comment.