mirror of
https://github.com/nikdoof/flexget-plugins.git
synced 2025-12-17 03:39:25 +00:00
Now cuts the title down if it reaches over 107 characters
This commit is contained in:
@@ -66,10 +66,11 @@ class OutputTwitter:
|
|||||||
return # don't send empty twits
|
return # don't send empty twits
|
||||||
|
|
||||||
for entry in feed.accepted:
|
for entry in feed.accepted:
|
||||||
content = "%s found and queued" % entry['title']
|
if len(entry['title']) > 103:
|
||||||
if len(content) > 120:
|
content = "%s... found and queued" % entry['title'][:104]
|
||||||
return
|
|
||||||
else:
|
else:
|
||||||
|
content = "%s found and queued" % entry['title']
|
||||||
|
log.debug("Sending Twitter: %s", content)
|
||||||
api.PostUpdate(content)
|
api.PostUpdate(content)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user