|
|
|
@ -669,6 +669,18 @@ class MediaElement(db.Entity, UriHolder, Tagable):
|
|
|
|
return False
|
|
|
|
return False
|
|
|
|
return True
|
|
|
|
return True
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@property
|
|
|
|
|
|
|
|
def detected_creators(self) -> Query[MediaCollectionLink]:
|
|
|
|
|
|
|
|
return orm.select(
|
|
|
|
|
|
|
|
link for link in self.collection_links if link.collection.is_creator
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@property
|
|
|
|
|
|
|
|
def detected_playlists(self) -> Query[MediaCollectionLink]:
|
|
|
|
|
|
|
|
return orm.select(
|
|
|
|
|
|
|
|
link for link in self.collection_links if link.collection.watch_in_order
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
@property
|
|
|
|
@property
|
|
|
|
def assigned_tags(self) -> Set[Tag]:
|
|
|
|
def assigned_tags(self) -> Set[Tag]:
|
|
|
|
return set(self.tag_list)
|
|
|
|
return set(self.tag_list)
|
|
|
|
|