diff --git a/pod/video/feeds.py b/pod/video/feeds.py index 32b12fe463..38ad77e578 100644 --- a/pod/video/feeds.py +++ b/pod/video/feeds.py @@ -9,7 +9,6 @@ from django.contrib.sites.shortcuts import get_current_site from django.urls import reverse from django.shortcuts import get_object_or_404 -from django.utils.html import format_html from .context_processors import get_available_videos @@ -189,11 +188,10 @@ def items(self, obj): def item_title(self, item) -> str: sub = re.sub(r"[\x00-\x08\x0B-\x0C\x0E-\x1F]", "", item.title) - return "%s | %s" % (item.owner.get_full_name(), sub) + return sub def item_link(self, item) -> str: url = "".join([self.author_link, item.get_absolute_url()]) - url += "?is_iframe=true" return url def item_author_name(self, item): @@ -212,20 +210,8 @@ def item_author_link(self, item) -> str: ) def item_description(self, item) -> str: - thumbnail_url = "".join([self.prefix, item.get_thumbnail_url().replace("//", "")]) - title = re.sub(r"[\x00-\x08\x0B-\x0C\x0E-\x1F]", "", item.title) - img = format_html( - '%s' - % ( - thumbnail_url, - title.replace("{", "").replace("}", "").replace('"', "'"), - ) - ) - description = "%s
" % img - sub = re.sub(r"[\x00-\x08\x0B-\x0C\x0E-\x1F]", "", item.description) # use re sub to remove Control characters are not supported in XML 1.0 - description += sub # item.description + description = re.sub(r"[\x00-\x08\x0B-\x0C\x0E-\x1F]", "", item.description) # item.description description += "
%s: %s" % (_("Duration"), item.duration_in_time) return description