Skip to content

Commit

Permalink
small bugfixes
Browse files Browse the repository at this point in the history
- Fixed small bug in how the time it took to download the page files was calculated
- Fixed wording
  • Loading branch information
ErisLoona committed Jun 6, 2024
1 parent 22520f7 commit 4b529c5
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 46 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.0</FileVersion>
<FileVersion>2.0.2</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: 0 additions & 26 deletions Manga Library Manager.csproj.user
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,4 @@
<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-06T11:48:19.4662781Z||;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-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>
<LastFailureDetails />
</PropertyGroup>
</Project>
17 changes: 0 additions & 17 deletions allOnlineChapters.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,30 +48,15 @@ private void thread_DoWork(object sender, DoWorkEventArgs e)
{
Dictionary<string, string> booksCopy = e.Argument as Dictionary<string, string>;
Dictionary<string, int> chapters = new Dictionary<string, int>();
Stopwatch sw = new Stopwatch();
TimeSpan span;
using (HttpClient client = new HttpClient())
{
client.DefaultRequestHeaders.Accept.Add(new System.Net.Http.Headers.MediaTypeWithQualityHeaderValue("application/json"));
client.DefaultRequestHeaders.UserAgent.ParseAdd("Manga Library Manager for Windows by (github) ErisLoona");
int counter = 0;
sw.Start();
foreach (KeyValuePair<string, string> book in booksCopy)
{
if (counter == 5)
{
sw.Stop();
span = sw.Elapsed;
if (span.Milliseconds < 1000)
Thread.Sleep(1000 - span.Milliseconds);
counter = 0;
sw.Reset();
sw.Start();
}
if (((BackgroundWorker)sender).CancellationPending == true)
{
e.Cancel = true;
sw.Reset();
break;
}
List<string> extraPages = new List<string>();
Expand All @@ -92,7 +77,6 @@ private void thread_DoWork(object sender, DoWorkEventArgs e)
extraPages.Add(task.Result);
calledAPI();
passes--;
counter++;
}
}
List<decimal> tempChapters = new List<decimal>();
Expand Down Expand Up @@ -124,7 +108,6 @@ private void thread_DoWork(object sender, DoWorkEventArgs e)
chapters[book.Key] = Int32.MinValue;
}
((BackgroundWorker)sender).ReportProgress(1);
counter++;
}
}
e.Result = chapters;
Expand Down
2 changes: 1 addition & 1 deletion tagsFilter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ private void tagsFilter_Load(object sender, EventArgs e)
occurancesLabel.Text += "Suggestive: " + Convert.ToString(ratingCount[1]) + "\r\n";
occurancesLabel.Text += "Erotica: " + Convert.ToString(ratingCount[2]) + "\r\n";
occurancesLabel.Text += "Pornographic: " + Convert.ToString(ratingCount[3]) + "\r\n\r\n";
occurancesLabel.Text += "No. of mangas by label:\r\n";
occurancesLabel.Text += "Nr. of mangas by tag:\r\n";
foreach (KeyValuePair<string, Int32> usage in mainMenu.tagsUsage.OrderByDescending(key => key.Value))
occurancesLabel.Text += usage.Key + ": " + Convert.ToString(usage.Value) + "\r\n";
occurancesLabel.Select(0, 7);
Expand Down

0 comments on commit 4b529c5

Please sign in to comment.