Esempio n. 1
0
    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]
Esempio n. 2
0
	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]
Esempio n. 3
0
	def get_item(self, path):
		item = self._request("browseService", 
							"getItemsWithDetail", 
								[path])['result'][0]
		
		return client_map_avdict(self, item)
Esempio n. 4
0
    def get_item(self, path):
        item = self._request("browseService", "getItemsWithDetail",
                             [path])['result'][0]

        return client_map_avdict(self, item)