fixes for soft_barcodes

workspace
Brendan Howell 4 years ago
parent 7108240781
commit 60d593c890

@ -175,7 +175,8 @@ class Audio(Bureau):
prn.textln(title)
prn.textln(url)
prn.soft_barcode("CODE128", "AUp." + shortcode)
prn.soft_barcode("code128", "AUp." + shortcode)
prn.print_and_feed()
#TODO: cut
prn.close()

@ -178,7 +178,7 @@ class PublicRelations(Bureau):
tw_shortcode = self.short_tweet_id(t["id_str"])
#prn.barcode("PRtwd." + tw_shortcode, "CODE128", function_type="B")
prn.soft_barcode("CODE128", "PRtwd." + tw_shortcode)
prn.soft_barcode("code128", "PRtwd." + tw_shortcode)
prn.ln(2)
prn.cut()
@ -217,13 +217,13 @@ class PublicRelations(Bureau):
tw_shortcode = self.short_tweet_id(tweet["id_str"])
prn.text("retweet\r\n")
#prn.barcode("PRtwrt." + tw_shortcode, "CODE128", function_type="B")
prn.soft_barcode("CODE128", "PRtwrt." + tw_shortcode)
prn.soft_barcode("code128", "PRtwrt." + tw_shortcode)
prn.text("like\r\n")
#prn.barcode("PRtwlk." + tw_shortcode, "CODE128", function_type="B")
prn.soft_barcode("CODE128", "PRtwlk." + tw_shortcode)
prn.soft_barcode("code128", "PRtwlk." + tw_shortcode)
prn.text("\r\n\r\n")
#prn.barcode("PRtwre." + tw_shortcode, "CODE128", function_type="B")
prn.soft_barcode("CODE128", "PRtwre." + tw_shortcode)
prn.soft_barcode("code128", "PRtwre." + tw_shortcode)
prn.ln(2)
prn.cut()
prn.close()
@ -333,7 +333,7 @@ class PublicRelations(Bureau):
tw_shortcode = self.short_tweet_id(str(t["id"]))
#prn.barcode("PRmad." + tw_shortcode, "CODE128", function_type="B")
prn.soft_barcode("CODE128", "PRmad." + tw_shortcode)
prn.soft_barcode("code128", "PRmad." + tw_shortcode)
notifications = self.masto.notifications(since_id=self.last_mast_notif)
if len(notifications) > 0:

Loading…
Cancel
Save