-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bug on grouple sites parsing and release 1.51.10.40
- Loading branch information
Showing
13 changed files
with
86 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
using System; | ||
using System.Threading.Tasks; | ||
using MangaReader.Core.Convertation; | ||
using MangaReader.Core.Convertation.Primitives; | ||
using MangaReader.Core.NHibernate; | ||
using MangaReader.Core.Services.Config; | ||
|
||
namespace Grouple.ru.Convertation | ||
{ | ||
public class From51_9To51_10 : ConfigConverter | ||
{ | ||
protected override async Task ProtectedConvert(IProcess process) | ||
{ | ||
using (var context = Repository.GetEntityContext()) | ||
{ | ||
var setting = ConfigStorage.GetPlugin<Mintmanga>().GetSettings(); | ||
var oldMainUri = new Uri("https://mintmanga.live/"); | ||
var mainUri = new Uri("https://m.mintmanga.live/"); | ||
if (setting != null && Equals(oldMainUri, setting.MainUri)) | ||
{ | ||
setting.MainUri = mainUri; | ||
await context.Save(setting).ConfigureAwait(false); | ||
} | ||
} | ||
} | ||
|
||
public From51_9To51_10() | ||
{ | ||
this.Version = new Version(1, 51, 10, 39); | ||
this.CanReportProcess = false; | ||
this.Name = "Обновляем ссылки на m.mintmanga.live..."; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,14 +33,16 @@ public async Task NotCensoredReadmanga() | |
[Test] | ||
public async Task CensoredReadmanga() | ||
{ | ||
var login = new GroupleLogin() { Name = "[email protected]", Password = "JUadiSHrosiv" }; | ||
await login.DoLogin(ReadmangaPlugin.Manga); | ||
var manga = await Get($"{Grouple.Constants.ReadmangaHost}school_teacher/vol2/10?mtr=1").ConfigureAwait(false); | ||
var chapter = manga.Volumes.Single(v => v.Number == 2).Container.ToList()[5]; | ||
await parser.UpdatePages(chapter).ConfigureAwait(false); | ||
Assert.IsTrue(chapter.Container.First().ImageLink.IsAbsoluteUri); | ||
} | ||
|
||
[Test] | ||
[TestCase("https://mintmanga.live/in_the_first_grade")] | ||
[TestCase("https://m.mintmanga.live/in_the_first_grade")] | ||
[TestCase("https://readmanga.live/shaman_warrior")] | ||
[TestCase("https://readmanga.live/the_magician_s_bride")] | ||
[NonParallelizable] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters