From 55438749bbfc2f5a851e63277f2baeb1a5ecdd85 Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Tue, 27 Sep 2016 02:27:06 -0500 Subject: [PATCH] Prepare transcode method To be able to transcode via the context menu --- resources/language/English/strings.xml | 1 + resources/lib/context_entry.py | 12 ++++++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/resources/language/English/strings.xml b/resources/language/English/strings.xml index 1214072c..383cbc57 100644 --- a/resources/language/English/strings.xml +++ b/resources/language/English/strings.xml @@ -183,6 +183,7 @@ Delete item from the server Refresh this item Set custom song rating (0-5) + Transcode Verify Host SSL Certificate diff --git a/resources/lib/context_entry.py b/resources/lib/context_entry.py index 0d2d51d1..8c4006e3 100644 --- a/resources/lib/context_entry.py +++ b/resources/lib/context_entry.py @@ -24,7 +24,8 @@ OPTIONS = { 'Addon': lang(30408), 'AddFav': lang(30405), 'RemoveFav': lang(30406), - 'RateSong': lang(30407) + 'RateSong': lang(30407), + 'Transcode': lang(30412) } ################################################################################################# @@ -103,6 +104,10 @@ class ContextMenu(object): userdata = self.api.get_userdata() options = [] + if self.item_type in ("movie", "episode", "song"): + #options.append(OPTIONS['Transcode']) + pass + if userdata['Favorite']: # Remove from emby favourites options.append(OPTIONS['RemoveFav']) @@ -136,7 +141,10 @@ class ContextMenu(object): selected = self._selected_option - if selected == OPTIONS['Refresh']: + if selected == OPTIONS['Transcode']: + pass + + elif selected == OPTIONS['Refresh']: self.emby.refreshItem(self.item_id) elif selected == OPTIONS['AddFav']: