Skip to content

Commit

Permalink
removed EMCVersion from pluginmenu
Browse files Browse the repository at this point in the history
  • Loading branch information
dhwz committed Dec 30, 2017
1 parent a02826a commit 057ac33
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
4 changes: 0 additions & 4 deletions src/EnhancedMovieCenter.py
Expand Up @@ -343,7 +343,6 @@ def defineConfig(self):
( _("Red button function") , config.EMC.movie_redfunc , None , None , 0 , [] , _("HELP_Red button function") , None , None ),
( _("Long Red button function") , config.EMC.movie_longredfunc , None , None , 0 , [] , _("HELP_Long Red button function") , None , None ),
#( _("Green button function") , config.EMC.movie_greenfunc , None , None , 0 , [] , _("HELP_Green button function") , None , None ),
#( _("Long Green button function") , config.EMC.movie_longgreenfunc , None , None , 0 , [] , _("HELP_Long Green button function") , None , None ),
( _("Yellow button function") , config.EMC.movie_yellowfunc , None , None , 0 , [] , _("HELP_Yellow button function") , None , None ),
( _("Long Yellow button function") , config.EMC.movie_longyellowfunc , None , None , 0 , [] , _("HELP_Long Yellow button function") , None , None ),
( _("Blue button function") , config.EMC.movie_bluefunc , None , None , 0 , [] , _("HELP_Blue button function") , None , None ),
Expand All @@ -367,7 +366,6 @@ def defineConfig(self):

( self.section , _("DISPLAY-SETTINGS") , None , None , 0 , [] , "" , None , None ),
( _("Show symlinks") , config.EMC.symlinks_show , None , None , 0 , [] , _("HELP_Show symlinks") , None , True ),
# ( _("Show symlinkdirectories_information") , config.EMC.symlinkdir_info , None , None , 0 , [-1] , _("HELP_Show symlink_directories_information") , False , True ),
( _("Show directories") , config.EMC.directories_show , None , None , 0 , [] , _("HELP_Show directories") , None , True ),
( _("Show directories within movielist") , config.EMC.directories_ontop , None , None , 0 , [-1] , _("HELP_Show directories within movielist") , False , True ),
( _("Configured directories at the top of movielist"), config.EMC.cfgtopdir_enable , None , None , 0 , [-2,-1] , _("HELP_Configure in etc\enigma2\emc-topdir.cfg") , False , True ),
Expand All @@ -376,7 +374,6 @@ def defineConfig(self):
( _("Text shown for initially unknown count and size"), config.EMC.count_size_default_text , None , None , 0 , [-5,-2] , _("HELP_Text shown for initially unknown count and size"), None , None ),
( _("Text shown for initially unknown directory size"), config.EMC.size_default_text , None , None , 0 , [-6,-3] , _("HELP_Text shown for initially unknown directory size"), None , None ),
( _("Icon shown for initially unknown count / size") , config.EMC.count_size_default_icon , None , None , 0 , [-7,-4] , _("HELP_Icon shown for initially unknown count / size") , None , None ),
# below of date alignment moved (now also for alignment from trashcan information) ( _("Horizontal alignment for count / size") , config.EMC.count_size_position , None , None , 0 , [-8,-5] , _("HELP_Horizontal alignment for count / size") , None , None ),
( _("Show directory size in skin") , config.EMC.directories_size_skin , None , None , 0 , [] , _("HELP_Show directory size in skin") , None , None ),

( _("Show Latest Recordings directory") , config.EMC.latest_recordings , None , None , 0 , [] , _("HELP_Show Latest Recordings directory") , None , True ),
Expand Down Expand Up @@ -502,7 +499,6 @@ def defineConfig(self):
( _("Cover delay in ms") , config.EMC.movie_cover_delay , None , None , 0 , [-1] , _("HELP_Cover delay in ms") , 1000 , None ),
( _("Cover background") , config.EMC.movie_cover_background , None , None , 0 , [-2] , _("HELP_Cover background") , None , None ),
( _("Show fallback cover") , config.EMC.movie_cover_fallback , None , None , 0 , [-3] , _("HELP_Fallback Cover") , None , None ),
#( _("Toggle Cover Button") , config.EMC.toggle_cover_button , None , None , 0 , [-3] , _("HELP_Use Toggle Cover Button") , False , None ),
( _("Show movie preview") , config.EMC.movie_preview , None , None , 0 , [] , _("HELP_Show movie preview") , False , None ),
( _("Movie preview delay in ms") , config.EMC.movie_preview_delay , None , None , 0 , [-1] , _("HELP_Movie preview delay in ms") , 3000 , None ),
( _("Start movie preview before last position") , config.EMC.movie_preview_offset , None , None , 0 , [-2] , _("HELP_Movie preview offset in seconds") , None , None ),
Expand Down
4 changes: 1 addition & 3 deletions src/plugin.py
Expand Up @@ -291,7 +291,6 @@ def langListSel():
config.EMC.movie_yellowfunc = ConfigSelection(default = "MV", choices = yellow_choices)
config.EMC.movie_bluefunc = ConfigSelection(default = "MH", choices = blue_choices)
config.EMC.movie_longredfunc = ConfigSelection(default = "DL", choices = longred_choices)
#config.EMC.movie_longgreenfunc = ConfigSelection(default = "CS", choices = longgreen_choices)
config.EMC.movie_longyellowfunc = ConfigSelection(default = "MV", choices = longyellow_choices)
config.EMC.movie_longbluefunc = ConfigSelection(default = "MH", choices = longblue_choices)
config.EMC.CoolStartHome = ConfigSelection(default = "false", choices = [("true", _("Yes")), ("false", _("No")), ("after_standby", _("after standby"))])
Expand Down Expand Up @@ -367,7 +366,6 @@ def langListSel():
config.EMC.size_default_text = ConfigTextWOHelp(default = "( 0 GB )", fixed_size = False, visible_width= 22)
config.EMC.count_size_default_icon = ConfigYesNo(default = False)
config.EMC.count_size_position = ConfigSelection(default = '1', choices = [ ('0', _("center")), ('1', _("right")), ('2', _("left")) ])
#config.EMC.symlinkdir_info = ConfigYesNo(default = False)
config.EMC.latest_recordings = ConfigYesNo(default = True)

nget = False # this is needed for vti-image at the moment
Expand Down Expand Up @@ -526,7 +524,7 @@ def Plugins(**kwargs):
show_p = [ PluginDescriptor.WHERE_PLUGINMENU ]
if config.EMC.extmenu_plugin.value:
show_p.append( PluginDescriptor.WHERE_EXTENSIONSMENU )
descriptors.append( PluginDescriptor(name = "EMC "+EMCVersion+" ("+_("Setup")+")", description = "Enhanced Movie Center " +_("configuration"), icon = "EnhancedMovieCenter.png", where = show_p, fnc = pluginOpen) )
descriptors.append( PluginDescriptor(name = "Enhanced Movie Center ("+_("Setup")+")", description = "Enhanced Movie Center " +_("configuration"), icon = "EnhancedMovieCenter.png", where = show_p, fnc = pluginOpen) )

if config.EMC.extmenu_list.value and not config.EMC.ml_disable.value:
descriptors.append( PluginDescriptor(name = "Enhanced Movie Center", description = "Enhanced Movie Center " + _("movie manipulation list"), where = PluginDescriptor.WHERE_EXTENSIONSMENU, fnc = recordingsOpen) )
Expand Down

0 comments on commit 057ac33

Please sign in to comment.