def raw_info(self): """returns a Unicode string of low-level MetaData information whereas __unicode__ is meant to contain complete information at a very high level raw_info() should be more developer-specific and with very little adjustment or reordering to the data itself """ from os import linesep from audiotools import output_table # align text strings on the "=" sign, if any table = output_table() for comment in self.comment_strings: row = table.row() if u"=" in comment: (tag, value) = comment.split(u"=", 1) row.add_column(tag, "right") row.add_column(u"=") row.add_column(value) else: row.add_column(comment) row.add_column(u"") row.add_column(u"") return ( u"{}: {}".format(self.__comment_name__(), self.vendor_string) + linesep + linesep.join(table.format()))
def raw_info(self): """returns a Unicode string of low-level MetaData information whereas __unicode__ is meant to contain complete information at a very high level raw_info() should be more developer-specific and with very little adjustment or reordering to the data itself """ from os import linesep from audiotools import output_table # align text strings on the "=" sign, if any table = output_table() for comment in self.comment_strings: row = table.row() if u"=" in comment: (tag, value) = comment.split(u"=", 1) row.add_column(tag, "right") row.add_column(u"=") row.add_column(value) else: row.add_column(comment) row.add_column(u"") row.add_column(u"") return (u"{}: {}".format(self.__comment_name__(), self.vendor_string) + linesep + linesep.join(table.format()))
def raw_info(self): """returns the ApeTag as a human-readable unicode string""" from os import linesep from audiotools import output_table # align tag values on the "=" sign table = output_table() for tag in self.tags: row = table.row() (key, value) = tag.raw_info_pair() row.add_column(key, "right") row.add_column(u" = ") row.add_column(value) return (u"APEv2:" + linesep + linesep.join(table.format()))
msg.ansi_clearline() try: results = queue.run(options.max_processes) except KeyboardInterrupt: msg.error(_.ERR_CANCELLED) sys.exit(1) formats = sorted(list({r[1] for r in results})) success_total = len([r for r in results if r[2] is None]) failure_total = len(results) - success_total if (len(formats) > 0) and (not options.no_summary): msg.output(_.LAB_TRACKVERIFY_RESULTS) msg.output(u"") table = audiotools.output_table() row = table.row() row.add_column(_.LAB_TRACKVERIFY_RESULT_FORMAT, "right") row.add_column(u" ") row.add_column(_.LAB_TRACKVERIFY_RESULT_SUCCESS, "right") row.add_column(u" ") row.add_column(_.LAB_TRACKVERIFY_RESULT_FAILURE, "right") row.add_column(u" ") row.add_column(_.LAB_TRACKVERIFY_RESULT_TOTAL, "right") table.divider_row([_.DIV, u" ", _.DIV, u" ", _.DIV, u" ", _.DIV]) for format in formats: success = len([ r for r in results if ((r[1] == format) and (r[2] is None))