Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
207fd26f50 | ||
|
|
aa357725e8 | ||
|
|
759f64ea22 |
@@ -99,6 +99,7 @@ readonly class DownloadMediaHandler implements HandlerInterface
|
||||
|
||||
$badFileLocations = [
|
||||
'https://torrentio.strem.fun/videos/failed_infringement_v2.mp4' => 'Removed for Copyright Infringement.',
|
||||
'https://torrentio.strem.fun/videos/downloading_v2.mp4' => 'Your torrent is downloading to your debrid provider.'
|
||||
];
|
||||
|
||||
$headers = get_headers($downloadUrl, true);
|
||||
|
||||
@@ -71,6 +71,7 @@ readonly class DownloadSeasonHandler implements HandlerInterface
|
||||
$this->logger->info('> [DownloadTvSeasonHandler] ......Found 1 matching result');
|
||||
$this->logger->info('> [DownloadTvSeasonHandler] ......Dispatching DownloadMediaCommand for "' . $series->title . '" season ' . $command->season . ' episode ' . $episode->episodeNumber);
|
||||
$download = $this->createDownload($command, $result->url, $series->title, $result->filename, $episode->episodeNumber);
|
||||
$this->logger->info('> [DownloadTvSeasonHandler] ......Created Download entity with id ' . $download->getId());
|
||||
$downloadCommand = new DownloadMediaCommand(
|
||||
$download->getUrl(),
|
||||
$download->getTitle(),
|
||||
@@ -105,6 +106,7 @@ readonly class DownloadSeasonHandler implements HandlerInterface
|
||||
$download->setEpisodeId($this->getEpisodeNumber($command->season, $episodeNumber));
|
||||
$download->setUser($this->userRepository->find($command->userId));
|
||||
$this->downloadRepository->getEntityManager()->persist($download);
|
||||
$this->downloadRepository->getEntityManager()->flush();
|
||||
return $download;
|
||||
}
|
||||
|
||||
|
||||
@@ -89,6 +89,7 @@ class DownloadOptionEvaluator
|
||||
{
|
||||
$badFileLocations = [
|
||||
'https://torrentio.strem.fun/videos/failed_infringement_v2.mp4' => 'Removed for Copyright Infringement.',
|
||||
'https://torrentio.strem.fun/videos/downloading_v2.mp4' => 'Your torrent is downloading to your debrid provider.'
|
||||
];
|
||||
|
||||
$headers = get_headers($downloadUrl, true);
|
||||
|
||||
Reference in New Issue
Block a user