Don't try to embed peertube channel pages

main
Bob Mottram 2022-02-22 09:57:48 +00:00
parent d2942d5460
commit 23b7c25261
1 changed files with 3 additions and 0 deletions

View File

@ -171,6 +171,9 @@ def _add_embedded_video_from_sites(translate: {}, content: str,
if '"' not in url: if '"' not in url:
continue continue
url = url.split('"')[0] url = url.split('"')[0]
if '/c/' in url:
# don't try to embed peertube channel page
continue
url = url.replace('/w/', '/embed/') url = url.replace('/w/', '/embed/')
url = url.replace('/watch/', '/embed/') url = url.replace('/watch/', '/embed/')
content += \ content += \