Add repr for channel and video.

master
voussoir 2020-10-25 20:16:24 -07:00
parent 08290d7c6d
commit 6270665737
1 changed files with 6 additions and 0 deletions

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: