diff --git a/resources/lib/dir_functions.py b/resources/lib/dir_functions.py index 9eeb3bf..113ef8b 100644 --- a/resources/lib/dir_functions.py +++ b/resources/lib/dir_functions.py @@ -68,6 +68,9 @@ def get_content(url, params): content_type = 'episodes' elif media_type == "playlists": view_type = "Playlists" + elif media_type == "musicvideos": + view_type = "Music Videos" + content_type = 'musicvideos' elif media_type == "mixed": content_type = 'videos' diff --git a/resources/lib/functions.py b/resources/lib/functions.py index 66041e2..9330085 100644 --- a/resources/lib/functions.py +++ b/resources/lib/functions.py @@ -343,7 +343,7 @@ def show_menu(params): action_items = [] - if result["Type"] in ["Episode", "Movie", "Music", "Video", "Audio", "TvChannel", "Program"]: + if result["Type"] in ["Episode", "Movie", "Music", "Video", "Audio", "TvChannel", "Program", "MusicVideo"]: li = xbmcgui.ListItem(translate_string(30314), offscreen=True) li.setProperty('menu_id', 'play') action_items.append(li) @@ -353,12 +353,12 @@ def show_menu(params): li.setProperty('menu_id', 'play_all') action_items.append(li) - if result["Type"] in ["Episode", "Movie", "Video", "TvChannel", "Program"]: + if result["Type"] in ["Episode", "Movie", "Video", "TvChannel", "Program", "MusicVideo"]: li = xbmcgui.ListItem(translate_string(30275), offscreen=True) li.setProperty('menu_id', 'transcode') action_items.append(li) - if result["Type"] in ["Episode", "Movie", "Music", "Video", "Audio", "MusicArtist", "MusicAlbum"]: + if result["Type"] in ["Episode", "Movie", "Music", "Video", "Audio", "MusicArtist", "MusicAlbum", "MusicVideo"]: li = xbmcgui.ListItem(translate_string(30402), offscreen=True) li.setProperty('menu_id', 'add_to_playlist') action_items.append(li) diff --git a/resources/lib/item_functions.py b/resources/lib/item_functions.py index 6710275..0ea3198 100644 --- a/resources/lib/item_functions.py +++ b/resources/lib/item_functions.py @@ -503,6 +503,8 @@ def add_gui_item(url, item_details, display_options, folder=True, default_sort=F mediatype = 'artist' elif item_type == 'audio' or item_type == 'music': mediatype = 'song' + elif item_type == 'musicvideo': + mediatype = 'musicvideo' info_labels["mediatype"] = mediatype