missing @ to detect retweets

This commit is contained in:
cquest 2017-06-09 15:00:10 +02:00
parent ecbbf79a9a
commit 722e7192dd

View File

@ -72,8 +72,8 @@ for t in reversed(d.entries):
#h = BeautifulSoup(t.summary_detail.value, "html.parser") #h = BeautifulSoup(t.summary_detail.value, "html.parser")
c = t.title c = t.title
if t.author != '(%s)' % twitter: if t.author.lower() != ('(@%s)' % twitter).lower():
c = ("RT %s\n" % t.author[1:-1]) + c c = ("RT https://twitter.com/%s\n" % t.author[2:-1]) + c
toot_media = [] toot_media = []
# get the pictures... # get the pictures...
for p in re.finditer(r"https://pbs.twimg.com/[^ \xa0\"]*", t.summary): for p in re.finditer(r"https://pbs.twimg.com/[^ \xa0\"]*", t.summary):