from tp.settings import IMAGES_URL def get_rss_item_desc(item): a = f'

{item}

' b = f'' c = f'

{item.description}

' d = f'

Photo {item.feed.image_title} by ' if item.feed.image_attribution_url == '': e = f'{item.feed.image_attribution}' else: e = f'{item.feed.image_attribution}' f = f' is licensed {item.feed.image_license_name}' g = f' {item.feed.image_license_jurisdiction}.

' h = f'

Photo {item.image_title} by ' if item.feed.image_attribution_url == '': i = f'{item.image_attribution}' else: i = f'{item.feed.image_attribution}' j = f' is licensed {item.image_license_name}' k = f' {item.image_license_jurisdiction}.

' m = f'

{item.feed.ebook_title} by ' n = f'{item.feed.author} ' o = f'is licensed {item.feed.license_name}' if item.feed.translator == '': p = '' else: p = f' Translated by {item.feed.translator}.' if item.feed.intro_author == '': q = '' else: q = f' Intro by {item.feed.intro_author}.' r = f' {item.feed.image_license_jurisdiction}.{p}{q}

' return f'{a}{b}{c}{d}{e}{f}{g}{h}{i}{j}{k}{m}{n}{o}{r}'