Skip to content

Commit

Permalink
1.3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
libgenapps committed Nov 13, 2019
1 parent d2ced09 commit 04440f2
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 10 deletions.
11 changes: 6 additions & 5 deletions LibgenDesktop.Setup/AppFiles.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,13 @@ static AppFiles()
X86.Add(new AppFile(@"x86\SQLite.Interop.dll", "SQLite.Interop.dll"));
X64.Add(new AppFile(@"x64\SQLite.Interop.dll", "SQLite.Interop.dll"));
AddFile(@"Languages\English.lng");
AddFile(@"Languages\Russian.lng");
AddFile(@"Languages\Romanian.lng");
AddFile(@"Languages\Ukrainian.lng");
AddFile(@"Languages\Spanish.lng");
AddFile(@"Languages\French.lng");
AddFile(@"Languages\Romanian.lng");
AddFile(@"Languages\Russian.lng");
AddFile(@"Languages\Simplified Chinese.lng");
AddFile(@"Languages\Spanish.lng");
AddFile(@"Languages\Turkish.lng");
AddFile(@"Mirrors\mirrors.config");
AddFile(@"Languages\Ukrainian.lng");
AddFile(@"Mirrors\b_ok_xyz_step1.xslt");
AddFile(@"Mirrors\b_ok_xyz_step2.xslt");
AddFile(@"Mirrors\booklid_org_step1.xslt");
Expand All @@ -43,6 +42,8 @@ static AppFiles()
AddFile(@"Mirrors\libgen_lc_fiction.xslt");
AddFile(@"Mirrors\libgen_lc_nonfiction.xslt");
AddFile(@"Mirrors\libgen_lc_scimag.xslt");
AddFile(@"Mirrors\mirrors.config");
AddFile(@"Mirrors\sci-hub.xslt");
}

public static string GetBinariesDirectoryPath(bool is64Bit)
Expand Down
4 changes: 2 additions & 2 deletions LibgenDesktop.Setup/Constants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
{
internal static class Constants
{
public const string CURRENT_VERSION = "1.3.4";
public const string TITLE_VERSION = "1.3.4";
public const string CURRENT_VERSION = "1.3.5";
public const string TITLE_VERSION = "1.3.5";
public const string PRODUCT_TITLE_FORMAT = "Libgen Desktop " + TITLE_VERSION + " ({0}-bit)";
public const string SHORTCUT_TITLE_FORMAT = "Libgen Desktop ({0}-bit)";
public const string PRODUCT_COMPANY = "Libgen Apps";
Expand Down
6 changes: 3 additions & 3 deletions LibgenDesktop/Common/Constants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ namespace LibgenDesktop.Common
internal static class Constants
{
public const string DATABASE_METADATA_APP_NAME = "LibgenDesktop";
public const string CURRENT_VERSION = "1.3.4";
public const string CURRENT_GITHUB_RELEASE_NAME = "1.3.4";
public static readonly DateTime CURRENT_GITHUB_RELEASE_DATE = new DateTime(2019, 11, 9);
public const string CURRENT_VERSION = "1.3.5";
public const string CURRENT_GITHUB_RELEASE_NAME = "1.3.5";
public static readonly DateTime CURRENT_GITHUB_RELEASE_DATE = new DateTime(2019, 11, 13);
public const string CURRENT_DATABASE_VERSION = "1.2.1";

public const string APP_SETTINGS_FILE_NAME = "libgen.config";
Expand Down
4 changes: 4 additions & 0 deletions LibgenDesktop/LibgenDesktop.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -737,6 +737,10 @@
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<TargetPath>Mirrors\booksc_org_step2.xslt</TargetPath>
</ContentWithTargetPath>
<ContentWithTargetPath Include="Resources\Mirrors\sci-hub.xslt">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<TargetPath>Mirrors\sci-hub.xslt</TargetPath>
</ContentWithTargetPath>
<ContentWithTargetPath Include="Resources\Languages\Russian.lng">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<TargetPath>Languages\Russian.lng</TargetPath>
Expand Down
12 changes: 12 additions & 0 deletions LibgenDesktop/Resources/Mirrors/mirrors.config
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,17 @@
"NonFictionDownloadUrl": "http://genotypeinczgrxr.onion/LG/{thousand-index}/{md5:l}",
"FictionDownloadUrl": "http://genotypeinczgrxr.onion/FF/{thousand-index}/{md5:l}.{ext}",
"RestartSessionOnTimeout": false
},
"sci-hub.se":
{
"SciMagDownloadUrl": "https://sci-hub.se/{doi}",
"SciMagDownloadTransformations": "sci-hub",
"RestartSessionOnTimeout": false
},
"sci-hub.tw":
{
"SciMagDownloadUrl": "https://sci-hub.tw/{doi}",
"SciMagDownloadTransformations": "sci-hub",
"RestartSessionOnTimeout": false
}
}
8 changes: 8 additions & 0 deletions LibgenDesktop/Resources/Mirrors/sci-hub.xslt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<xsl:for-each select="(//iframe[@id='pdf'])[1]">
<xsl:value-of select="@src" />
</xsl:for-each>
</xsl:template>
</xsl:transform>

0 comments on commit 04440f2

Please sign in to comment.