def display(self, width): print("=" * width) print("PID:", self.pid) print("Channel:", self.channel) print("Title:", self.title) if self.description: print("Description:", self.description) if self.datetime: print("Date:", Utils.strDate(self.datetime)) if self.length: print("Length:", self.length) if self.filename: print("Filename:", self.filename) print() if self.canFollow: print("Follow: ENABLED") print() m3 = self.getTabletPlaylist() Utils.displayH264(self.getH264()) if self.getTS() or self.mms: if self.getTS(): print("ts:", self.getTS()) if self.mms: print("mms:", self.mms) print() Utils.displayM3U8(m3)
def short(self, fmt): if self.datetime: ts = Utils.strDate(self.datetime) else: ts = None str1 = fmt.format(self.pid, ts, self.channel, self.title) return str1