- commit
- b51c855c667136eeb15ded21dd0fd44bdddcbc2b
- parent
- 6fce4247499b1c229b04a4a3a0154f6cf2463a68
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2023-12-21 12:14
special handling for reddit
Diffstat
| M | plutopluto/__init__.py | 10 | ++++++++++ |
1 files changed, 10 insertions, 0 deletions
diff --git a/plutopluto/__init__.py b/plutopluto/__init__.py
@@ -73,6 +73,16 @@ async def parse_feed(url): 73 73 escape(item['media_thumbnail'][0]['url']), 74 74 ) 75 75 d['content'] = thumbnail + d['content'] -1 76 elif 'reddit' in url: -1 77 d['content'] = ( -1 78 d['content'] -1 79 .replace('<table>', '') -1 80 .replace('</table>', '') -1 81 .replace('<tr>', '') -1 82 .replace('</tr>', '') -1 83 .replace('<td>', '') -1 84 .replace('</td>', '') -1 85 ) 76 86 return d 77 87 78 88 links = {}