From e3e7352600ea79991f6b04de51d5a612524723c4 Mon Sep 17 00:00:00 2001 From: meeb Date: Thu, 12 Oct 2023 15:33:58 +1100 Subject: [PATCH] add uploader variable, resolves #270 --- tubesync/sync/models.py | 3 ++- tubesync/sync/templates/sync/_mediaformatvars.html | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/tubesync/sync/models.py b/tubesync/sync/models.py index 874524c..bb82af1 100644 --- a/tubesync/sync/models.py +++ b/tubesync/sync/models.py @@ -510,7 +510,7 @@ class Source(models.Model): 'mm': now.strftime('%m'), 'dd': now.strftime('%d'), 'source': self.slugname, - 'source_full': self.name, + 'source_full': self.source.name, 'title': 'some-media-title-name', 'title_full': 'Some Media Title Name', 'key': 'SoMeUnIqUiD', @@ -1020,6 +1020,7 @@ class Media(models.Model): 'acodec': display_format['acodec'], 'fps': display_format['fps'], 'hdr': display_format['hdr'], + 'uploader': self.uploader, } @property diff --git a/tubesync/sync/templates/sync/_mediaformatvars.html b/tubesync/sync/templates/sync/_mediaformatvars.html index 33a694e..438b200 100644 --- a/tubesync/sync/templates/sync/_mediaformatvars.html +++ b/tubesync/sync/templates/sync/_mediaformatvars.html @@ -43,6 +43,11 @@ Full source name My Source + + {uploader} + Uploader name + Some Channel Name + {title} Lower case media title, max 80 chars