Merge branch 'main' of gitlab.com:bashrc2/epicyon

merge-requests/30/head
Bob Mottram 2022-07-03 10:41:24 +01:00
commit 679f9b29f1
1 changed files with 4 additions and 0 deletions

View File

@ -211,6 +211,10 @@ def _add_embedded_video_from_sites(translate: {}, content: str,
if '"' not in url:
continue
url = url.split('"')[0]
if ('/trending', '/home', '/overview',
'/recently-added', '/local') in url:
# ignore various peertube endpoints
continue
if '/c/' in url:
# don't try to embed peertube channel page
continue