Add repr for channel and video.

This commit is contained in:
voussoir 2020-10-25 20:16:24 -07:00
parent 08290d7c6d
commit 6270665737

View file

@ -26,6 +26,9 @@ class Channel(Base):
self.queuefile_extension = db_row['queuefile_extension']
self.automark = db_row['automark'] or "pending"
def __repr__(self):
return f'Channel:{self.id}'
def _rss_assisted_videos(self):
try:
most_recent_video = self.get_most_recent_video_id()
@ -153,6 +156,9 @@ class Video(Base):
self.thumbnail = db_row['thumbnail']
self.state = db_row['state']
def __repr__(self):
return f'Video:{self.id}'
@property
def author(self):
try: