Added:
- 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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user