|
|
@ -169,11 +169,15 @@ class Audio(Bureau):
|
|
|
|
|
|
|
|
|
|
|
|
# TODO: create barcode
|
|
|
|
# TODO: create barcode
|
|
|
|
# small print title, url, barcode
|
|
|
|
# small print title, url, barcode
|
|
|
|
txt = "RADIO STATION:\r\n\r\n" + title + "\r\n\r\n" + url
|
|
|
|
prn = self._get_small_printer()
|
|
|
|
self.print_small(txt, cut=False)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bc_img = kode256.image("AUp." + shortcode)
|
|
|
|
prn.textln("RADIO STATION:")
|
|
|
|
self.print_small_image(bc_img)
|
|
|
|
prn.textln(title)
|
|
|
|
|
|
|
|
prn.textln(url)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
prn.soft_barcode("CODE128", "AUp." + shortcode)
|
|
|
|
|
|
|
|
#TODO: cut
|
|
|
|
|
|
|
|
prn.close()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|