Skip to content

Commit

Permalink
bugfixes
Browse files Browse the repository at this point in the history
- Fixed a bug with the chapters sometimes being listed wrong in the description
- Fixed a bug with the last chapter being set to the actual last chapter irrespective of the last one *downloaded*
  • Loading branch information
ErisLoona committed Jun 13, 2024
1 parent 4b529c5 commit 2af6c06
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Manga Library Manager.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<ApplicationIcon>ytpfp.ico</ApplicationIcon>
<NeutralLanguage>en</NeutralLanguage>
<FileVersion>2.0.2</FileVersion>
<FileVersion>2.0.3</FileVersion>
<PackageProjectUrl>https://github.com/ErisLoona/Manga-Library-Manager</PackageProjectUrl>
<Copyright>Eris Loona, pseudonym</Copyright>
<Description>A manga downloader and offline library manager.</Description>
Expand Down
26 changes: 26 additions & 0 deletions Manga Library Manager.csproj.user
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,30 @@
<PropertyGroup>
<_LastSelectedProfileId>C:\Users\rares\Documents\Misc Programs\Programming\Manga Library Manager\Properties\PublishProfiles\FolderProfile.pubxml</_LastSelectedProfileId>
</PropertyGroup>
<ItemGroup>
<Compile Update="allOnlineChapters.cs">
<SubType>Form</SubType>
</Compile>
<Compile Update="dumpJSON.cs">
<SubType>Form</SubType>
</Compile>
<Compile Update="editTags.cs">
<SubType>Form</SubType>
</Compile>
<Compile Update="importLibrary.cs">
<SubType>Form</SubType>
</Compile>
<Compile Update="mainMenu.cs">
<SubType>Form</SubType>
</Compile>
<Compile Update="mangaDownloader.cs">
<SubType>Form</SubType>
</Compile>
<Compile Update="tagsFilter.cs">
<SubType>Form</SubType>
</Compile>
<Compile Update="userSettings.cs">
<SubType>Form</SubType>
</Compile>
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion Properties/PublishProfiles/FolderProfile.pubxml.user
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project>
<PropertyGroup>
<History>True|2024-06-06T13:40:12.6240419Z||;True|2024-06-06T13:48:19.4662781+02:00||;True|2024-06-06T12:38:52.6425012+02:00||;True|2024-06-06T12:31:36.7948282+02:00||;True|2024-06-06T10:35:12.1369025+02:00||;True|2024-06-06T10:34:54.5189019+02:00||;True|2024-06-05T23:32:06.1114024+02:00||;True|2024-05-27T18:47:08.3065316+02:00||;True|2024-05-27T18:43:26.7575713+02:00||;True|2024-05-27T16:16:44.1211325+02:00||;True|2024-05-27T16:16:29.4947310+02:00||;True|2024-05-27T11:07:49.8981157+02:00||;True|2024-05-27T11:07:01.1240671+02:00||;True|2024-05-27T11:06:53.1694382+02:00||;True|2024-05-27T09:10:47.9526993+02:00||;True|2024-05-27T09:10:02.8503554+02:00||;True|2024-05-27T09:09:35.2317189+02:00||;True|2024-05-27T08:58:09.8645241+02:00||;True|2024-05-27T08:52:52.8051920+02:00||;True|2024-05-27T08:45:19.6197985+02:00||;True|2024-05-24T11:02:27.2916636+02:00||;True|2024-05-24T08:59:01.6326756+02:00||;True|2024-05-23T09:17:13.9644300+02:00||;True|2024-05-23T09:05:46.2467509+02:00||;True|2024-05-22T22:13:45.9526537+02:00||;True|2024-05-22T22:09:03.4000755+02:00||;True|2024-05-22T22:08:00.0350517+02:00||;True|2024-05-22T21:44:48.4725626+02:00||;True|2024-05-22T21:32:35.3627900+02:00||;True|2024-05-22T19:33:34.6467061+02:00||;True|2024-05-19T19:19:28.1467287+02:00||;True|2024-05-19T19:17:09.7006733+02:00||;True|2024-05-19T19:14:06.6668981+02:00||;True|2024-05-19T14:42:07.1301968+02:00||;True|2024-05-19T14:38:02.4943907+02:00||;True|2024-05-19T09:20:51.2871097+02:00||;True|2024-05-19T09:18:16.6124371+02:00||;True|2024-05-19T09:15:08.6048404+02:00||;True|2024-05-18T22:34:28.8521894+02:00||;True|2024-05-18T22:22:14.4673452+02:00||;True|2024-05-18T21:56:58.6143811+02:00||;True|2024-05-18T07:41:43.4161277+02:00||;True|2024-05-17T11:48:43.3293227+02:00||;True|2024-05-17T09:31:58.9329403+02:00||;True|2024-05-17T09:25:57.4957904+02:00||;True|2024-05-16T19:52:10.0997229+02:00||;True|2024-05-16T18:17:01.7850021+02:00||;True|2024-05-15T09:33:00.6957135+02:00||;True|2024-05-15T08:32:31.7735956+02:00||;True|2024-05-13T17:25:21.1454345+02:00||;True|2024-05-13T17:15:09.7285346+02:00||;True|2024-05-13T16:52:20.9054581+02:00||;True|2024-05-13T16:51:27.0891569+02:00||;True|2024-05-13T16:50:34.5522468+02:00||;True|2024-05-13T16:49:22.6946988+02:00||;</History>
<History>True|2024-06-13T07:43:43.5390795Z||;True|2024-06-13T08:57:35.0322797+02:00||;True|2024-06-06T15:42:28.6568298+02:00||;True|2024-06-06T15:40:12.6240419+02:00||;True|2024-06-06T13:48:19.4662781+02:00||;True|2024-06-06T12:38:52.6425012+02:00||;True|2024-06-06T12:31:36.7948282+02:00||;True|2024-06-06T10:35:12.1369025+02:00||;True|2024-06-06T10:34:54.5189019+02:00||;True|2024-06-05T23:32:06.1114024+02:00||;True|2024-05-27T18:47:08.3065316+02:00||;True|2024-05-27T18:43:26.7575713+02:00||;True|2024-05-27T16:16:44.1211325+02:00||;True|2024-05-27T16:16:29.4947310+02:00||;True|2024-05-27T11:07:49.8981157+02:00||;True|2024-05-27T11:07:01.1240671+02:00||;True|2024-05-27T11:06:53.1694382+02:00||;True|2024-05-27T09:10:47.9526993+02:00||;True|2024-05-27T09:10:02.8503554+02:00||;True|2024-05-27T09:09:35.2317189+02:00||;True|2024-05-27T08:58:09.8645241+02:00||;True|2024-05-27T08:52:52.8051920+02:00||;True|2024-05-27T08:45:19.6197985+02:00||;True|2024-05-24T11:02:27.2916636+02:00||;True|2024-05-24T08:59:01.6326756+02:00||;True|2024-05-23T09:17:13.9644300+02:00||;True|2024-05-23T09:05:46.2467509+02:00||;True|2024-05-22T22:13:45.9526537+02:00||;True|2024-05-22T22:09:03.4000755+02:00||;True|2024-05-22T22:08:00.0350517+02:00||;True|2024-05-22T21:44:48.4725626+02:00||;True|2024-05-22T21:32:35.3627900+02:00||;True|2024-05-22T19:33:34.6467061+02:00||;True|2024-05-19T19:19:28.1467287+02:00||;True|2024-05-19T19:17:09.7006733+02:00||;True|2024-05-19T19:14:06.6668981+02:00||;True|2024-05-19T14:42:07.1301968+02:00||;True|2024-05-19T14:38:02.4943907+02:00||;True|2024-05-19T09:20:51.2871097+02:00||;True|2024-05-19T09:18:16.6124371+02:00||;True|2024-05-19T09:15:08.6048404+02:00||;True|2024-05-18T22:34:28.8521894+02:00||;True|2024-05-18T22:22:14.4673452+02:00||;True|2024-05-18T21:56:58.6143811+02:00||;True|2024-05-18T07:41:43.4161277+02:00||;True|2024-05-17T11:48:43.3293227+02:00||;True|2024-05-17T09:31:58.9329403+02:00||;True|2024-05-17T09:25:57.4957904+02:00||;True|2024-05-16T19:52:10.0997229+02:00||;True|2024-05-16T18:17:01.7850021+02:00||;True|2024-05-15T09:33:00.6957135+02:00||;True|2024-05-15T08:32:31.7735956+02:00||;True|2024-05-13T17:25:21.1454345+02:00||;True|2024-05-13T17:15:09.7285346+02:00||;True|2024-05-13T16:52:20.9054581+02:00||;True|2024-05-13T16:51:27.0891569+02:00||;True|2024-05-13T16:50:34.5522468+02:00||;True|2024-05-13T16:49:22.6946988+02:00||;</History>
<LastFailureDetails />
</PropertyGroup>
</Project>
6 changes: 3 additions & 3 deletions mangaDownloader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,6 @@ private void searchButton_Click(object sender, EventArgs e)
catch { }
}
}
becomingBook.LastChapter = tempChapterNumbers.Max();
if (mainMenu.updateManga == false)
{
task = client.GetStringAsync(new Uri("https://api.mangadex.org/manga/" + mangaID + "?includes[]=cover_art&includes[]=author&includes[]=artist"));
Expand Down Expand Up @@ -430,6 +429,7 @@ private void downloadButton_Click(object sender, EventArgs e)
selectedChapterNumbers.Add(tempChapterNumbers[i]);
chapterPages.Add(chapterNrPages[i]);
}
becomingBook.LastChapter = selectedChapterNumbers.Max();
if (chapterDownloads.Count == 0)
{
MessageBox.Show("No chapters selected!\nPlease select at least one chapter.", "No chapters selected", MessageBoxButtons.OK, MessageBoxIcon.Information);
Expand Down Expand Up @@ -1132,8 +1132,8 @@ private void mangaDownloader_FormClosing(object sender, FormClosingEventArgs e)

public string padDecimal(decimal value, string padding)
{
if (value - Convert.ToInt32(value) != 0)
return Convert.ToInt32(value).ToString(padding) + (value - Convert.ToInt32(value)).ToString().Substring(1);
if (value - Convert.ToInt32(Math.Floor(value)) != 0)
return Convert.ToInt32(Math.Floor(value)).ToString(padding) + (value - Convert.ToInt32(Math.Floor(value))).ToString().Substring(1);
return Convert.ToInt32(value).ToString(padding);
}
}
Expand Down

0 comments on commit 2af6c06

Please sign in to comment.