From: Radek Czajka Date: Wed, 20 May 2020 12:03:14 +0000 (+0200) Subject: bugfix X-Git-Url: https://git.mdrn.pl/audio.git/commitdiff_plain/4bd3a0114e980ce199d3f394697d38affdf98f27?ds=sidebyside;hp=4c89a14f13fe5d7dd3a6d2488dd08067a652c10d bugfix --- diff --git a/src/youtube/models.py b/src/youtube/models.py index ecc05e4..ea51905 100644 --- a/src/youtube/models.py +++ b/src/youtube/models.py @@ -64,7 +64,7 @@ class YouTube(models.Model): ) def publish(self, audiobook, path): - data = self.get_data() + data = self.get_data(audiobook) part = ",".join(data.keys()) with open(path, "rb") as f: @@ -83,7 +83,7 @@ class YouTube(models.Model): return response def update_data(self, audiobook): - data = self.get_data() + data = self.get_data(audiobook) data['id'] = audiobook.youtube_id part = ",".join(data.keys()) youtube_call(