- Refactor MangaScraperService (not used everywhere now)
- Added JavascriptScraper.php
- Added alternatives slugs in Manga.php
- Improvement in manga edit form
This commit is contained in:
Jérémy Guillot
2024-07-21 19:08:46 +02:00
parent ff59aa5d77
commit fafff5014c
21 changed files with 1180 additions and 28 deletions

View File

@@ -33,6 +33,9 @@ class ContentSource
#[ORM\Column(length: 255)]
private ?string $scrapingType = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $ChapterSelector = null;
public function getId(): ?int
{
return $this->id;
@@ -103,4 +106,16 @@ class ContentSource
return $this;
}
public function getChapterSelector(): ?string
{
return $this->ChapterSelector;
}
public function setChapterSelector(?string $ChapterSelector): static
{
$this->ChapterSelector = $ChapterSelector;
return $this;
}
}

View File

@@ -59,6 +59,9 @@ class Manga
#[ORM\Column]
private ?bool $monitored = null;
#[ORM\Column(type: Types::JSON, nullable: true)]
private ?array $AlternativeSlugs = null;
public function __construct()
{
$this->chapters = new ArrayCollection();
@@ -265,4 +268,16 @@ class Manga
return $this;
}
public function getAlternativeSlugs(): ?array
{
return $this->AlternativeSlugs;
}
public function setAlternativeSlugs(?array $AlternativeSlugs): static
{
$this->AlternativeSlugs = $AlternativeSlugs;
return $this;
}
}