Ignore common peertube endpoints

merge-requests/30/head
Bob Mottram 2022-07-03 10:24:40 +01:00
parent 5429967bba
commit 7f97758173
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