mirror of
https://gitlab.com/octospacc/bottocto
synced 2025-06-05 22:19:22 +02:00
Add README, commit Config
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user