From 8511b0b879d69881b0a4e700a70bb3e32520b4b3 Mon Sep 17 00:00:00 2001 From: Ynscription Date: Sat, 23 Jan 2021 21:08:11 +0100 Subject: [PATCH] Updated assembly info. Fixed Google Translate web crawling to account for sentences with line separators. --- .../BackEnd/Translation/WebCrawlers/WCGoogleTranslator.cs | 4 ++-- Miharu Scan Helper/Miharu Scan Helper.csproj | 2 +- Miharu Scan Helper/Properties/AssemblyInfo.cs | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Miharu Scan Helper/BackEnd/Translation/WebCrawlers/WCGoogleTranslator.cs b/Miharu Scan Helper/BackEnd/Translation/WebCrawlers/WCGoogleTranslator.cs index bb80992..e0c0018 100644 --- a/Miharu Scan Helper/BackEnd/Translation/WebCrawlers/WCGoogleTranslator.cs +++ b/Miharu Scan Helper/BackEnd/Translation/WebCrawlers/WCGoogleTranslator.cs @@ -17,7 +17,7 @@ public override TranslationType Type { } protected override By FetchBy { - get { return By.XPath("//div[@class='NqnNQd']"); } + get { return By.XPath("//div[@class='zkZ4Kc dHeVVb']"); } } protected override string GetUri(string text) @@ -30,7 +30,7 @@ public override string ProcessResult(IWebElement result) { string res = ""; - res += result.GetAttribute("textContent"); + res += result.GetAttribute("data-text"); return res; } diff --git a/Miharu Scan Helper/Miharu Scan Helper.csproj b/Miharu Scan Helper/Miharu Scan Helper.csproj index 6d7bfa6..e6b597a 100644 --- a/Miharu Scan Helper/Miharu Scan Helper.csproj +++ b/Miharu Scan Helper/Miharu Scan Helper.csproj @@ -17,6 +17,7 @@ false + publish\ true Disk @@ -32,7 +33,6 @@ false true true - AnyCPU diff --git a/Miharu Scan Helper/Properties/AssemblyInfo.cs b/Miharu Scan Helper/Properties/AssemblyInfo.cs index 1907bea..12eba99 100644 --- a/Miharu Scan Helper/Properties/AssemblyInfo.cs +++ b/Miharu Scan Helper/Properties/AssemblyInfo.cs @@ -51,7 +51,7 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.8.0.0")] -[assembly: AssemblyFileVersion("1.8.0.0")] +[assembly: AssemblyVersion("1.8.2.0")] +[assembly: AssemblyFileVersion("1.8.2.0")] [assembly: NeutralResourcesLanguage("en")]