|
|
|
@ -140,7 +140,8 @@ class PublicRelations(Bureau):
|
|
|
|
|
prn.codepage = "cp437"
|
|
|
|
|
|
|
|
|
|
# TODO: add fancier formatting i.e. inverted text for username/handle
|
|
|
|
|
tweets = self.t.t.statuses.home_timeline(count=count)
|
|
|
|
|
tweets = self.t.t.statuses.home_timeline(count=count,
|
|
|
|
|
tweet_mode="extended")
|
|
|
|
|
out = ""
|
|
|
|
|
for t in tweets:
|
|
|
|
|
prn.set(text_type="U")
|
|
|
|
@ -179,7 +180,7 @@ class PublicRelations(Bureau):
|
|
|
|
|
"""
|
|
|
|
|
shortcode, _ = data.split(".")
|
|
|
|
|
tweet_id = self.get_tweet_id(shortcode)
|
|
|
|
|
tweet = self.t.t.statuses.show(id=tweet_id)
|
|
|
|
|
tweet = self.t.t.statuses.show(id=tweet_id, tweet_mode="extended")
|
|
|
|
|
prn = printer.Usb(0x416, 0x5011, in_ep=0x81, out_ep=0x03)
|
|
|
|
|
prn.codepage = "cp437"
|
|
|
|
|
|
|
|
|
|