def browse(self, path=None): if isinstance(path, FolderObject): path = path.path browsereq = {"folderId": path, "preloadDetails": False} browse_resp = self._request( "browseService", "getItems", AVDict("air.video.BrowseRequest", browsereq)) items = browse_resp['result']['items'] return [ii for ii in [client_map_avdict(self, i) for i in items] if ii]
def browse(self, path=None): if isinstance(path, FolderObject): path = path.path browsereq = { "folderId" : path, "preloadDetails" : False } browse_resp = self._request("browseService", "getItems", AVDict("air.video.BrowseRequest", browsereq)) items = browse_resp['result']['items'] return [ii for ii in [client_map_avdict(self, i) for i in items] if ii]
def get_item(self, path): item = self._request("browseService", "getItemsWithDetail", [path])['result'][0] return client_map_avdict(self, item)