add column to MediaActor to store weblink

This commit is contained in:
Thomas Peetz
2025-08-03 17:37:57 +02:00
parent aed2413b88
commit 450bfdb394
7 changed files with 103 additions and 6 deletions
+1 -2
View File
@@ -71,6 +71,7 @@ class MediaFile(Base, BaseMixin, BaseVideoMixin):
class MediaActor(Base, BaseMixin):
__tablename__ = 'media_actor'
name = Column(String)
url = Column(String, unique=True)
media_actor_files = relationship("MediaActorFile")
@@ -107,5 +108,3 @@ class MediaVideo(Base, BaseMixin):
return f'{self.url}({self.id})'
else:
return f'{self.title}({self.id})'
@@ -20,6 +20,10 @@
<th scope="row">Actor Name</th>
<td colspan="2">{{actor.name}}</td>
</tr>
<tr>
<th scope="row">URL</th>
<td colspan="2">{{actor.url}}</td>
</tr>
<tr>
<th scope="row">Works</th>
<td colspan="2">