From 4bd3a0114e980ce199d3f394697d38affdf98f27 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Wed, 20 May 2020 14:03:14 +0200 Subject: [PATCH] bugfix --- src/youtube/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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( -- 2.20.1