Skip to content

Commit

Permalink
Fix VkAudio
Browse files Browse the repository at this point in the history
  • Loading branch information
python273 committed Jan 18, 2020
1 parent a5ba65f commit 4ae0c1d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vk_api/audio.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class VkAudio(object):
:param vk: Объект :class:`VkApi`
"""

__slots__ = ('_vk', 'user_id')
__slots__ = ('_vk', 'user_id', 'convert_m3u8_links')

DEFAULT_COOKIES = [
{ # если не установлено, то первый запрос ломается
Expand Down Expand Up @@ -79,6 +79,8 @@ def __init__(self, vk, convert_m3u8_links=True):

set_cookies_from_list(self._vk.http.cookies, self.DEFAULT_COOKIES)

self._vk.http.get('https://m.vk.com/') # load cookies

def get_iter(self, owner_id=None, album_id=None, access_hash=None):
""" Получить список аудиозаписей пользователя (по частям)
Expand Down

0 comments on commit 4ae0c1d

Please sign in to comment.