Skip to content

Commit 77f53c1

Browse files
committed
Make VkUpload.audio artist and title optional
1 parent addac3b commit 77f53c1

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

vk_api/vk_upload.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def photo_wall(self, photos, user_id=None, group_id=None):
112112

113113
return response
114114

115-
def audio(self, file_path, artist, title):
115+
def audio(self, file_path, **kwargs):
116116
""" Загрузка аудио
117117
118118
:param file_path: путь к аудиофайлу
@@ -127,10 +127,7 @@ def audio(self, file_path, artist, title):
127127

128128
response = self.vk.http.post(url, files=audio_file).json()
129129

130-
response.update({
131-
'artist': artist,
132-
'title': title
133-
})
130+
response.update(kwargs)
134131

135132
response = self.vk.method('audio.save', response)
136133

0 commit comments

Comments
 (0)