fnp
/
audio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
4c89a14
)
bugfix
author
Radek Czajka
<rczajka@rczajka.pl>
Wed, 20 May 2020 12:03:14 +0000
(14:03 +0200)
committer
Radek Czajka
<rczajka@rczajka.pl>
Wed, 20 May 2020 12:03:14 +0000
(14:03 +0200)
src/youtube/models.py
patch
|
blob
|
history
diff --git
a/src/youtube/models.py
b/src/youtube/models.py
index
ecc05e4
..
ea51905
100644
(file)
--- 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(