Refactor and novel18 support (added cookie support in general to AbstractScraper.cs
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -37,7 +37,7 @@ namespace DBConnection.Migrations.PostgresSql
|
||||
b.ToTable("NovelTag");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.Author", b =>
|
||||
modelBuilder.Entity("Common.Models.DBDomain.Author", b =>
|
||||
{
|
||||
b.Property<string>("Url")
|
||||
.HasColumnType("text");
|
||||
@@ -57,7 +57,7 @@ namespace DBConnection.Migrations.PostgresSql
|
||||
b.ToTable("Authors");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.Chapter", b =>
|
||||
modelBuilder.Entity("Common.Models.DBDomain.Chapter", b =>
|
||||
{
|
||||
b.Property<string>("Url")
|
||||
.HasColumnType("text");
|
||||
@@ -101,7 +101,7 @@ namespace DBConnection.Migrations.PostgresSql
|
||||
b.ToTable("Chapters");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.Novel", b =>
|
||||
modelBuilder.Entity("Common.Models.DBDomain.Novel", b =>
|
||||
{
|
||||
b.Property<string>("Url")
|
||||
.HasColumnType("text");
|
||||
@@ -140,7 +140,7 @@ namespace DBConnection.Migrations.PostgresSql
|
||||
b.ToTable("Novels");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.Tag", b =>
|
||||
modelBuilder.Entity("Common.Models.DBDomain.Tag", b =>
|
||||
{
|
||||
b.Property<string>("TagValue")
|
||||
.HasColumnType("text");
|
||||
@@ -156,7 +156,7 @@ namespace DBConnection.Migrations.PostgresSql
|
||||
b.ToTable("Tags");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.User", b =>
|
||||
modelBuilder.Entity("Common.Models.DBDomain.User", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
@@ -181,7 +181,7 @@ namespace DBConnection.Migrations.PostgresSql
|
||||
b.ToTable("Users");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.UserNovel", b =>
|
||||
modelBuilder.Entity("Common.Models.DBDomain.UserNovel", b =>
|
||||
{
|
||||
b.Property<string>("NovelUrl")
|
||||
.HasColumnType("text");
|
||||
@@ -201,22 +201,22 @@ namespace DBConnection.Migrations.PostgresSql
|
||||
|
||||
modelBuilder.Entity("NovelTag", b =>
|
||||
{
|
||||
b.HasOne("Treestar.Shared.Models.DBDomain.Novel", null)
|
||||
b.HasOne("Common.Models.DBDomain.Novel", null)
|
||||
.WithMany()
|
||||
.HasForeignKey("NovelsUrl")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("Treestar.Shared.Models.DBDomain.Tag", null)
|
||||
b.HasOne("Common.Models.DBDomain.Tag", null)
|
||||
.WithMany()
|
||||
.HasForeignKey("TagsTagValue")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.Chapter", b =>
|
||||
modelBuilder.Entity("Common.Models.DBDomain.Chapter", b =>
|
||||
{
|
||||
b.HasOne("Treestar.Shared.Models.DBDomain.Novel", "Novel")
|
||||
b.HasOne("Common.Models.DBDomain.Novel", "Novel")
|
||||
.WithMany("Chapters")
|
||||
.HasForeignKey("NovelUrl")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
@@ -225,24 +225,24 @@ namespace DBConnection.Migrations.PostgresSql
|
||||
b.Navigation("Novel");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.Novel", b =>
|
||||
modelBuilder.Entity("Common.Models.DBDomain.Novel", b =>
|
||||
{
|
||||
b.HasOne("Treestar.Shared.Models.DBDomain.Author", "Author")
|
||||
b.HasOne("Common.Models.DBDomain.Author", "Author")
|
||||
.WithMany("Novels")
|
||||
.HasForeignKey("AuthorUrl");
|
||||
|
||||
b.Navigation("Author");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.UserNovel", b =>
|
||||
modelBuilder.Entity("Common.Models.DBDomain.UserNovel", b =>
|
||||
{
|
||||
b.HasOne("Treestar.Shared.Models.DBDomain.Novel", "Novel")
|
||||
b.HasOne("Common.Models.DBDomain.Novel", "Novel")
|
||||
.WithMany()
|
||||
.HasForeignKey("NovelUrl")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("Treestar.Shared.Models.DBDomain.User", "User")
|
||||
b.HasOne("Common.Models.DBDomain.User", "User")
|
||||
.WithMany("WatchedNovels")
|
||||
.HasForeignKey("UserId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
@@ -253,17 +253,17 @@ namespace DBConnection.Migrations.PostgresSql
|
||||
b.Navigation("User");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.Author", b =>
|
||||
modelBuilder.Entity("Common.Models.DBDomain.Author", b =>
|
||||
{
|
||||
b.Navigation("Novels");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.Novel", b =>
|
||||
modelBuilder.Entity("Common.Models.DBDomain.Novel", b =>
|
||||
{
|
||||
b.Navigation("Chapters");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.User", b =>
|
||||
modelBuilder.Entity("Common.Models.DBDomain.User", b =>
|
||||
{
|
||||
b.Navigation("WatchedNovels");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user