Add README, commit Config

This commit is contained in:
2022-08-16 13:39:24 +02:00
parent 8348704406
commit adb0909297
3 changed files with 43 additions and 3 deletions

View File

@ -20,7 +20,7 @@ def SureList(Item):
def MakePathStr(Str):
for c in ('<>:"/\\|?*'):
Str = Str.replace(c, '_')
if NoSpacesFile:
if not SpacesInFiles:
Str = Str.replace(' ', '_')
return Str
@ -77,7 +77,7 @@ def HandleFeed(URLs, IncludeRetoots, IncludeReplies, LocalSave, SendMail, MailTo
<br><hr><br>
<p><i>Via <a href="https://gitlab.com/-/snippets/2388397">https://gitlab.com/-/snippets/2388397</a></i></p>
<p><i>Via <a href="https://gitlab.com/octospacc/bottocto/-/tree/main/MastodonFeedHTML">https://gitlab.com/octospacc/bottocto/-/tree/main/MastodonFeedHTML</a></i></p>
"""
if SendMail:
Message = MIMEMultipart()
@ -136,7 +136,7 @@ def HandleFeed(URLs, IncludeRetoots, IncludeReplies, LocalSave, SendMail, MailTo
def HandleFeedList(List):
for Feed in List:
print(f"[I] Handling item ->\n: {Feed}")
print(f"[I] Handling Feed ->\n: {Feed}")
HandleFeed(
URLs=SureList(Feed['URLs']),
IncludeRetoots=Feed['IncludeRetoots'] if 'IncludeRetoots' in Feed else True,