From d9a43e2a02281cff824d8c393bfaef2fdbcd2fe7 Mon Sep 17 00:00:00 2001 From: Roman Miroshnychenko Date: Thu, 15 Dec 2016 13:25:52 +0200 Subject: [PATCH] Updates docstrings --- main.py | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/main.py b/main.py index 000c7c8..9a2751e 100644 --- a/main.py +++ b/main.py @@ -66,7 +66,8 @@ def get_categories(): the list of video categories (e.g. 'Movies', 'TV-shows', 'Documentaries' etc.) from some site or server. - :return: list + :return: The list of video categories + :rtype: list """ return VIDEOS.keys() @@ -77,8 +78,10 @@ def get_videos(category): Here you can insert some parsing code that retrieves the list of videostreams in a given category from some site or server. - :param category: str - :return: list + :param category: Category name + :type category: str + :return: the list of videos in the category + :rtype: list """ return VIDEOS[category] @@ -128,7 +131,8 @@ def list_videos(category): """ Create the list of playable videos in the Kodi interface. - :param category: str + :param category: Category name + :type category: str """ # Get the list of videos in the category. videos = get_videos(category) @@ -169,7 +173,8 @@ def play_video(path): """ Play a video by the provided path. - :param path: str + :param path: Fully-qualified video URL + :type path: str """ # Create a playable item with a path to play. play_item = xbmcgui.ListItem(path=path) @@ -182,7 +187,8 @@ def router(paramstring): Router function that calls other functions depending on the provided paramstring - :param paramstring: + :param paramstring: URL encoded plugin paramstring + :type paramstring: str """ # Parse a URL-encoded paramstring to the dictionary of # {: } elements