mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
youtube with and without the www
This commit is contained in:
parent
1ef01d12ab
commit
3cb3a1b80d
1 changed files with 1 additions and 1 deletions
|
@ -210,7 +210,7 @@ def is_video_url(url: str) -> bool:
|
|||
|
||||
|
||||
def is_video_hosting_site(url: str) -> bool:
|
||||
video_hosting_sites = ['https://www.youtube.com', 'https://youtu.be', 'https://www.vimeo.com', 'https://www.redgifs.com/watch/']
|
||||
video_hosting_sites = ['https://youtube.com', 'https://www.youtube.com', 'https://youtu.be', 'https://www.vimeo.com', 'https://www.redgifs.com/watch/']
|
||||
for starts_with in video_hosting_sites:
|
||||
if url.startswith(starts_with):
|
||||
return True
|
||||
|
|
Loading…
Reference in a new issue