Downloading files, calculating video size.

This commit is contained in:
Krzysztof Płaczek committed 2022-11-17 11:38:20 +01:00
1 parent 2c62880282
commit 55c104629f
9 files changed
+77 -23

No files matched your search

+3 -1
View File
@@ -10,7 +10,9 @@ class ChapterController extends Controller
public function index(Chapter $chapter, SymfonyCastDlService $symfonyCastDlService)
{
$symfonyCastDlService->videoSize($chapter);
$symfonyCastDlService->downloadFile($chapter);
if($chapter->sync_offline){
$symfonyCastDlService->downloadFile($chapter);
}
return view('chapter.index', compact('chapter'));
}
}