aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsource/utils.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/utils.py b/source/utils.py
index 26492b8d..a4506d07 100755
--- a/source/utils.py
+++ b/source/utils.py
@@ -244,8 +244,9 @@ def change_feed_url(old_feed_url, new_feed_url):
# Replace the URL in the text file
with open("./var/feed.lst", "r") as f:
lines = f.readlines()
+ lines = map(str.strip, lines)
try:
- lines[lines.index(old_feed_url+"\n")] = new_feed_url + '\n'
+ lines[lines.index(old_feed_url)] = new_feed_url
except:
return
with open("./var/feed.lst", "w") as f:
bgstack15