summaryrefslogtreecommitdiff
path: root/ar/.local/bin/decode
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-07-02 03:18:02 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-07-02 03:18:02 +0900
commit48334ea5e2ef5af4c3ee65cd8896b5452cf98b2e (patch)
treea67ea189d048629f97dd47beee3f1667220e2672 /ar/.local/bin/decode
parent9b77e682c0bf781b0d7ec85ac6ca0b9220b73e12 (diff)
modified newsboat/urls, deleted bin/decode, created bin/decodetitle
Diffstat (limited to 'ar/.local/bin/decode')
-rwxr-xr-xar/.local/bin/decode17
1 files changed, 0 insertions, 17 deletions
diff --git a/ar/.local/bin/decode b/ar/.local/bin/decode
deleted file mode 100755
index e7a553c..0000000
--- a/ar/.local/bin/decode
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/usr/bin/env python3
-
-import html
-import sys
-import xml.etree.ElementTree as ET
-
-text_input = sys.stdin.read()
-root = ET.fromstring(text_input)
-
-# RSS 2.0: <channel><item><title>
-for item in root.findall(".//item"):
- title = item.find("title")
- if title is not None and title.text:
- title.text = html.unescape(title.text)
-
-# re-serialize
-sys.stdout.buffer.write(ET.tostring(root, encoding="utf-8", xml_declaration=True))