remove https://
This commit is contained in:
parent
b568d337e3
commit
fb52852eeb
@ -16,9 +16,9 @@ def main(config):
|
|||||||
with open(config.get('locations', 'output'), 'a') as f: #input=/config/fanfiction_file #output=/output/fanfiction_file
|
with open(config.get('locations', 'output'), 'a') as f: #input=/config/fanfiction_file #output=/output/fanfiction_file
|
||||||
#/Users/sam/Desktop/workspace/FFFRssLinkGrabber/root/config.default/fanfiction_file
|
#/Users/sam/Desktop/workspace/FFFRssLinkGrabber/root/config.default/fanfiction_file
|
||||||
for entry in feed.entries:
|
for entry in feed.entries:
|
||||||
if entry.link not in lines:
|
if entry.link.replace('https://', '') not in lines:
|
||||||
newworks += 1
|
newworks += 1
|
||||||
f.write(f"{entry.link}\n")
|
f.write(f"{entry.link.replace('https://', '')}\n")
|
||||||
|
|
||||||
print(f"Added {newworks} works out of {len(feed.entries)} works to list.")
|
print(f"Added {newworks} works out of {len(feed.entries)} works to list.")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user