Skip to content

Commit

Permalink
Updated assembly info.
Browse files Browse the repository at this point in the history
Fixed Google Translate web crawling to account for sentences with line separators.
  • Loading branch information
Ynscription committed Jan 23, 2021
1 parent 9dcbd3e commit 8511b0b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -30,7 +30,7 @@ public override string ProcessResult(IWebElement result)
{
string res = "";

res += result.GetAttribute("textContent");
res += result.GetAttribute("data-text");

return res;
}
Expand Down
2 changes: 1 addition & 1 deletion Miharu Scan Helper/Miharu Scan Helper.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<IsWebBootstrapper>false</IsWebBootstrapper>
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
<TargetFrameworkProfile />
<PublishUrl>publish\</PublishUrl>
<Install>true</Install>
<InstallFrom>Disk</InstallFrom>
Expand All @@ -32,7 +33,6 @@
<UseApplicationTrust>false</UseApplicationTrust>
<PublishWizardCompleted>true</PublishWizardCompleted>
<BootstrapperEnabled>true</BootstrapperEnabled>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
Expand Down
4 changes: 2 additions & 2 deletions Miharu Scan Helper/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]

0 comments on commit 8511b0b

Please sign in to comment.