Remove base64 and URL decoding

This commit is contained in:
vvzvlad
2025-03-22 15:26:55 +03:00
parent 93698e0d4e
commit bbaf2314d5
2 changed files with 3 additions and 8 deletions
-8
View File
@@ -587,14 +587,6 @@ async def get_rss_feed(channel: str,
#logger.info(f"valid_token: token {token}")
while True:
try:
if exclude_text: # Decode base64 parameters if they are encoded
try:
exclude_text = base64.b64decode(exclude_text.encode()).decode('utf-8') # Try to decode as base64 first
except Exception: # If base64 decoding fails, try URL decoding
try:
exclude_text = exclude_text.encode('latin1').decode('utf-8')
except UnicodeError:
pass # If all decoding fails, use original value
if output_type == 'rss':
rss_content = await generate_channel_rss(channel,