diff --git a/now_listen/config_dialog.ui b/now_listen/config_dialog.ui index 4a83744..27f2e96 100644 --- a/now_listen/config_dialog.ui +++ b/now_listen/config_dialog.ui @@ -1,10 +1,15 @@ - + - + + 400 + -1 False Now Listen Configuration + + + True @@ -13,145 +18,89 @@ 5 5 5 + 18 vertical - 5 + 6 - + True False - 5 - 5 - vertical - 5 - - - True - False - <b>Format string:</b> - True - - - False - False - -1 - - - - - True - True - - - - True - True - 1 - - + start + Format string + False True - 0 + 3 - + True - False - 5 - 5 - vertical - 5 - - - True - False - <b>Format string for non-local files (MPRIS2 only):</b> - True - - - False - False - 0 - - - - - True - True - - - - False - False - 1 - - - - - False - True - 1 - - - - - True - False - 5 - 5 - 5 - 5 - 0.05000000074505806 - in - - - True - False - 5 - 5 - 5 - 5 - 5 - 15 - - - True - False - %title - title of the track being played -%artist - artist -%album - album - -<b>For MPRIS2:</b> -%url - URL of the file, local files use the file://-schema - True - 0 - 0 - - - - - - - True - False - <b>Information:</b> - True - - + True + True True - end - 2 + 4 + + + + + True + False + start + Format string for non-local files (MPRIS2 only) + + + + False + True + 5 + + + + + True + True + + + + False + False + 6 + + + + + True + False + start + %title - title of the track being played +%artist - artist +%album - album + +%url - URL of the file, local files use the file://-schema + + + + False + True + 7 - - - diff --git a/now_listen/now_listen.py b/now_listen/now_listen.py index d301f26..6f2dd78 100644 --- a/now_listen/now_listen.py +++ b/now_listen/now_listen.py @@ -7,20 +7,15 @@ from gi.repository import Gdk from gajim.plugins import GajimPlugin from gajim.plugins.helpers import log_calls from gajim.plugins.gui import GajimPluginConfigDialog +from gajim.plugins.plugins_i18n import _ from gajim.common.dbus.music_track import MusicTrackListener -# Since Gajim 1.1.0 _() has to be imported -try: - from gajim.common.i18n import _ -except ImportError: - pass log = logging.getLogger('gajim.plugin_system.now_listen') class NowListenPlugin(GajimPlugin): - @log_calls('NowListenPlugin') def init(self): self.description = _('Copy tune info of playing music to conversation '