Added:
- fix progressbar
- {slug} {chapterNumber} in Url
- activity toolbar
This commit is contained in:
@@ -3,11 +3,16 @@
|
||||
namespace App\Entity;
|
||||
|
||||
use App\Repository\ContentSourceRepository;
|
||||
use App\Service\ChapterUrlGenerator;
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
|
||||
#[ORM\Entity(repositoryClass: ContentSourceRepository::class)]
|
||||
class ContentSource
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
}
|
||||
|
||||
#[ORM\Id]
|
||||
#[ORM\GeneratedValue]
|
||||
#[ORM\Column]
|
||||
@@ -83,7 +88,8 @@ class ContentSource
|
||||
|
||||
public function getChapterUrl(string $mangaTitle, float $chapterNumber): string
|
||||
{
|
||||
return sprintf($this->chapterUrlFormat, $mangaTitle, $chapterNumber);
|
||||
$urlGenerator = new ChapterUrlGenerator($this->chapterUrlFormat);
|
||||
return $urlGenerator->getChapterUrl($mangaTitle, $chapterNumber);
|
||||
}
|
||||
|
||||
public function getScrapingType(): ?string
|
||||
|
||||
Reference in New Issue
Block a user