def GetAlbums(self, uid=None):
albums=None
if uid:
albums=self.api.call("photos.getAlbums", need_covers=1, uid=uid)
else:
albums=self.api.call("photos.getAlbums", need_covers=1)
items = []
for a in albums:
xbmc.log(a.get('thumb_src'),xbmc.LOGDEBUG)
e = ( a["title"] + unicode(" (%s photo)" % a["size"]),
a["description"],
a.get('thumb_src'),
str(a["aid"]),
a["owner_id"] )
items.append(e)
return items
评论列表
文章目录