ORDER = [('order=trending', 'Trending Videos'), ('order=popular', 'Most Popular Videos'), ('order=rated', 'Most Liked Videos'), ('order=longest', 'Longest Videos')] PERIOD = [('', 'Any Time'), ('period=today', 'Today'), ('period=week', 'This Week'), ('period=month', 'This Month'), ('period=season', 'Three Months'), ('period=year', 'This Year')] SEARCH_ORDER = [('order=top', 'Popular Videos'), ('order=new', 'New Videos'), ('order=hot', 'Hot Videos')] SEARCH_LENGTH = [('length=long', 'Long (20min+)'), ('length=medium', 'Medium (5-20min)'), ('length=short', 'Short (1-5min)')] MC = messages.NewMessageContainer(PREFIX, TITLE) BM = bookmarks.Bookmark(TITLE, PREFIX, ICON_BM_ADD, ICON_BM_REMOVE) #################################################################################################### def Start(): HTTP.CacheTime = CACHE_1HOUR ObjectContainer.title1 = TITLE ObjectContainer.art = R(ART) DirectoryObject.thumb = R(ICON) DirectoryObject.art = R(ART) InputDirectoryObject.art = R(ART) VideoClipObject.art = R(ART)
from updater import Updater from DumbTools import DumbKeyboard from DumbTools import DumbPrefs from AuthTools import CheckAdmin TITLE = 'PrimeWire' PREFIX = '/video/lmwtkiss' ICON = 'icon-default.png' ART = 'art-default.jpg' MOVIE_ICON = 'icon-movie.png' TV_ICON = 'icon-tv.png' BOOKMARK_ADD_ICON = 'icon-add-bookmark.png' BOOKMARK_REMOVE_ICON = 'icon-remove-bookmark.png' BM = bookmarks.Bookmark(PREFIX, TITLE, BOOKMARK_ADD_ICON, BOOKMARK_REMOVE_ICON) MC = messages.NewMessageContainer(PREFIX, TITLE) #################################################################################################### def Start(): ObjectContainer.title1 = TITLE DirectoryObject.thumb = R(ICON) DirectoryObject.art = R(ART) InputDirectoryObject.art = R(ART) VideoClipObject.art = R(ART) Log.Debug('*' * 80)