mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-22 16:06:19 -05:00
Can only skip a video if it has a channel.
This commit is contained in:
parent
ce2e133066
commit
9fa7a7960d
1 changed files with 2 additions and 1 deletions
|
|
@ -98,7 +98,8 @@ class Video(ModelHelper, Base):
|
|||
"""
|
||||
Add this video to it's Channel's skip list.
|
||||
"""
|
||||
self.channel.add_video_to_skip_list(self.source_id)
|
||||
if self.channel:
|
||||
self.channel.add_video_to_skip_list(self.source_id)
|
||||
|
||||
def set_favorite(self, favorite: bool) -> Optional[datetime]:
|
||||
self.favorite = now() if favorite else None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue