diff --git a/screenless/bureau/audio/audio.py b/screenless/bureau/audio/audio.py index 7f22f54..12c706d 100644 --- a/screenless/bureau/audio/audio.py +++ b/screenless/bureau/audio/audio.py @@ -169,11 +169,15 @@ class Audio(Bureau): # TODO: create barcode # small print title, url, barcode - txt = "RADIO STATION:\r\n\r\n" + title + "\r\n\r\n" + url - self.print_small(txt, cut=False) + prn = self._get_small_printer() - bc_img = kode256.image("AUp." + shortcode) - self.print_small_image(bc_img) + prn.textln("RADIO STATION:") + prn.textln(title) + prn.textln(url) + + prn.soft_barcode("CODE128", "AUp." + shortcode) + #TODO: cut + prn.close()