added popular and recommendations for audios

This commit is contained in:
2016-03-22 02:59:31 -06:00
parent 70148b2145
commit 821423844f
2 changed files with 10 additions and 2 deletions

View File

@@ -207,8 +207,10 @@ class vkSession(object):
p = getattr(self.vk.client, p)
data = getattr(p, endpoint)(*args, **kwargs)
if data != None:
num = self.order_buffer(name, data["items"], show_nextpage)
ids = ""
if type(data) == dict:
num = self.order_buffer(name, data["items"], show_nextpage)
else:
num = self.order_buffer(name, data, show_nextpage)
return num
def get_user_name(self, user_id):