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