Another youtube subdomain

merge-requests/30/head
Bob Mottram 2022-02-22 10:08:56 +00:00
parent 23b7c25261
commit a81bf011f6
1 changed files with 2 additions and 0 deletions

View File

@ -49,6 +49,8 @@ def _add_embedded_video_from_sites(translate: {}, content: str,
return content
video_site = 'https://www.youtube.com'
if 'https://m.youtube.com' in content:
content = content.replace('https://m.youtube.com', video_site)
if '"' + video_site in content:
url = content.split('"' + video_site)[1]
if '"' in url: