bugfix
authorRadek Czajka <rczajka@rczajka.pl>
Wed, 20 May 2020 12:03:14 +0000 (14:03 +0200)
committerRadek Czajka <rczajka@rczajka.pl>
Wed, 20 May 2020 12:03:14 +0000 (14:03 +0200)
src/youtube/models.py

index ecc05e4..ea51905 100644 (file)
@@ -64,7 +64,7 @@ class YouTube(models.Model):
         )
 
     def publish(self, audiobook, path):
         )
 
     def publish(self, audiobook, path):
-        data = self.get_data()
+        data = self.get_data(audiobook)
         part = ",".join(data.keys())
 
         with open(path, "rb") as f:
         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):
         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(
         data['id'] = audiobook.youtube_id
         part = ",".join(data.keys())
         youtube_call(