diff --git a/resources/language/English/strings.xml b/resources/language/English/strings.xml
index 2d09ea7..7de05d9 100644
--- a/resources/language/English/strings.xml
+++ b/resources/language/English/strings.xml
@@ -85,6 +85,10 @@
Start from beginning
Default Sort
+ Widgets
+ Emby - Movies
+ Emby - TV Shows
+
Unknown
Movies (Genre)
Movies (A-Z)
@@ -104,6 +108,7 @@
Upcoming TV
- In Progress
- Recently Added
+ Movies - Random
Emby: Mark watched
Emby: Mark unwatched
diff --git a/resources/lib/functions.py b/resources/lib/functions.py
index 09a5d19..60301e0 100644
--- a/resources/lib/functions.py
+++ b/resources/lib/functions.py
@@ -23,7 +23,7 @@ from datamanager import DataManager
from views import DefaultViews, loadSkinDefaults
from server_detect import checkServer
from simple_logging import SimpleLogging
-from menu_functions import displaySections, showMovieAlphaList, showGenreList
+from menu_functions import displaySections, showMovieAlphaList, showGenreList, showWidgets
__settings__ = xbmcaddon.Addon(id='plugin.video.embycon')
__addon__ = xbmcaddon.Addon(id='plugin.video.embycon')
@@ -109,6 +109,8 @@ def mainEntryPoint():
showMovieAlphaList()
elif mode == "MOVIE_GENRA":
showGenreList()
+ elif mode == "WIDGETS":
+ showWidgets()
elif mode == "SHOW_SETTINGS":
__settings__.openSettings()
WINDOW = xbmcgui.getCurrentWindowId()
diff --git a/resources/lib/menu_functions.py b/resources/lib/menu_functions.py
index cc6ce51..552a11f 100644
--- a/resources/lib/menu_functions.py
+++ b/resources/lib/menu_functions.py
@@ -132,6 +132,7 @@ def displaySections():
addMenuDirectoryItem(__language__(30253), "plugin://plugin.video.embycon/?mode=CHANGE_USER")
addMenuDirectoryItem(__language__(30254), "plugin://plugin.video.embycon/?mode=SHOW_SETTINGS")
addMenuDirectoryItem(__language__(30255), "plugin://plugin.video.embycon/?mode=SET_DEFAULT_VIEWS")
+ addMenuDirectoryItem(__language__(30247), "plugin://plugin.video.embycon/?mode=WIDGETS")
xbmcplugin.endOfDirectory(int(sys.argv[1]))
@@ -321,4 +322,18 @@ def getCollections(detailsString):
'path'] = '/emby/Users/' + userid + '/Items?Recursive=true&SortBy=PremiereDate&Fields=' + detailsString + '&SortOrder=Ascending&Filters=IsUnplayed&IsVirtualUnaired=true&IsNotFolder&IncludeItemTypes=Episode&ImageTypeLimit=1&format=json'
collections.append(item_data)
- return collections
\ No newline at end of file
+ return collections
+
+
+def showWidgets():
+ addMenuDirectoryItem(__language__(30248), 'plugin://plugin.video.embycon/?mode=SHOW_CONTENT&item_type=Movie&media_type=Movies')
+ addMenuDirectoryItem(__language__(30249), 'plugin://plugin.video.embycon/?mode=SHOW_CONTENT&item_type=Series&media_type=TVShows')
+
+ addMenuDirectoryItem(__language__(30257), 'plugin://plugin.video.embycon/?mode=WIDGET_CONTENT&type=recent_movies')
+ addMenuDirectoryItem(__language__(30258), 'plugin://plugin.video.embycon/?mode=WIDGET_CONTENT&type=inprogress_movies')
+ addMenuDirectoryItem(__language__(30269), 'plugin://plugin.video.embycon/?mode=WIDGET_CONTENT&type=random_movies')
+ addMenuDirectoryItem(__language__(30263), 'plugin://plugin.video.embycon/?mode=WIDGET_CONTENT&type=recent_episodes')
+ addMenuDirectoryItem(__language__(30264), 'plugin://plugin.video.embycon/?mode=WIDGET_CONTENT&type=inprogress_episodes')
+ addMenuDirectoryItem(__language__(30265), 'plugin://plugin.video.embycon/?mode=WIDGET_CONTENT&type=nextup_episodes')
+
+ xbmcplugin.endOfDirectory(int(sys.argv[1]))