Add repr for channel and video.
This commit is contained in:
parent
08290d7c6d
commit
6270665737
1 changed files with 6 additions and 0 deletions
|
@ -26,6 +26,9 @@ class Channel(Base):
|
||||||
self.queuefile_extension = db_row['queuefile_extension']
|
self.queuefile_extension = db_row['queuefile_extension']
|
||||||
self.automark = db_row['automark'] or "pending"
|
self.automark = db_row['automark'] or "pending"
|
||||||
|
|
||||||
|
def __repr__(self):
|
||||||
|
return f'Channel:{self.id}'
|
||||||
|
|
||||||
def _rss_assisted_videos(self):
|
def _rss_assisted_videos(self):
|
||||||
try:
|
try:
|
||||||
most_recent_video = self.get_most_recent_video_id()
|
most_recent_video = self.get_most_recent_video_id()
|
||||||
|
@ -153,6 +156,9 @@ class Video(Base):
|
||||||
self.thumbnail = db_row['thumbnail']
|
self.thumbnail = db_row['thumbnail']
|
||||||
self.state = db_row['state']
|
self.state = db_row['state']
|
||||||
|
|
||||||
|
def __repr__(self):
|
||||||
|
return f'Video:{self.id}'
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def author(self):
|
def author(self):
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue