diff --git a/screenless/bureau/audio/audio.py b/screenless/bureau/audio/audio.py index 12c706d..becda39 100644 --- a/screenless/bureau/audio/audio.py +++ b/screenless/bureau/audio/audio.py @@ -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() diff --git a/screenless/bureau/publicrelations/publicrelations.py b/screenless/bureau/publicrelations/publicrelations.py index 02549f8..12f7536 100644 --- a/screenless/bureau/publicrelations/publicrelations.py +++ b/screenless/bureau/publicrelations/publicrelations.py @@ -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: