mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
just to be sure
This commit is contained in:
parent
f49e4db596
commit
cbacef87d0
1 changed files with 2 additions and 0 deletions
|
@ -210,6 +210,8 @@ def is_video_url(url: str) -> bool:
|
|||
|
||||
|
||||
def is_video_hosting_site(url: str) -> bool:
|
||||
if url is None or url == '':
|
||||
return False
|
||||
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):
|
||||
|
|
Loading…
Reference in a new issue