From 5802204736c51241e091fb9497c5ca509db4ff6c Mon Sep 17 00:00:00 2001 From: softworkz Date: Thu, 25 Aug 2016 05:43:50 +0200 Subject: [PATCH] MetadataViewer: Fix menu visibility (was no longer displayed for seasons and episodes) --- MetadataViewer/HtmlHelper.cs | 5 +++-- MetadataViewer/Properties/AssemblyInfo.cs | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/MetadataViewer/HtmlHelper.cs b/MetadataViewer/HtmlHelper.cs index 7b7fb81..3bbbbb4 100644 --- a/MetadataViewer/HtmlHelper.cs +++ b/MetadataViewer/HtmlHelper.cs @@ -56,8 +56,9 @@ namespace MetadataViewer { mark1Hit = false; sb.AppendLine(); - sb.AppendLine(" if (isMobileApp && options.identify !== false) {"); - sb.AppendLine(" if (itemHelper.canIdentify(user, item.Type)) {"); + sb.AppendLine(" if (item.ProviderIds) {"); + sb.AppendLine(" var provIds = JSON.stringify(item.ProviderIds);"); + sb.AppendLine(" if (provIds && provIds.length > 5) {"); sb.AppendLine(" commands.push({"); sb.AppendLine(" name: 'View Raw Metadata',"); sb.AppendLine(" id: 'showmetadata'"); diff --git a/MetadataViewer/Properties/AssemblyInfo.cs b/MetadataViewer/Properties/AssemblyInfo.cs index 4454008..b9a2ec0 100644 --- a/MetadataViewer/Properties/AssemblyInfo.cs +++ b/MetadataViewer/Properties/AssemblyInfo.cs @@ -5,8 +5,8 @@ using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. -[assembly: AssemblyTitle("MetadataViewer Beta 10")] -[assembly: AssemblyDescription("Beta 10")] +[assembly: AssemblyTitle("MetadataViewer Beta 12")] +[assembly: AssemblyDescription("Beta 12")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("MetadataViewer")]