Crashed when add transcript
Describe the bug
Can't add transcript
Steps to reproduce
- Init env using docker-compose
- Upload mp3 file to a new episode
- Add transcript to this new episode. test.srt
I used the docker-compose.yml in official doc(just update the password and domain part)
Expected behavior
Add transcript successfully.
Actual behavior
Crashed.
Relevant logs and/or screenshots
stack trace here.
ErrorException: Undefined array key 1 in /opt/castopod/app/Libraries/TranscriptParser.php:72
Stack trace:
#0 /opt/castopod/app/Libraries/TranscriptParser.php(72): CodeIgniter\Debug\Exceptions->errorHandler(2, 'Undefined array...', '/opt/castopod/a...', 72)
#1 /opt/castopod/app/Entities/Media/Transcript.php(53): App\Libraries\TranscriptParser->parseSrt()
#2 /opt/castopod/app/Entities/Episode.php(283): App\Entities\Media\Transcript->setFile(Object(CodeIgniter\HTTP\Files\UploadedFile))
#3 /opt/castopod/modules/Admin/Controllers/EpisodeController.php(329): App\Entities\Episode->setTranscript(Object(CodeIgniter\HTTP\Files\UploadedFile))
#4 /opt/castopod/modules/Admin/Controllers/EpisodeController.php(61): Modules\Admin\Controllers\EpisodeController->attemptEdit()
#5 /opt/castopod/vendor/codeigniter4/framework/system/CodeIgniter.php(901): Modules\Admin\Controllers\EpisodeController->_remap('attemptEdit', '1', '1')
#6 /opt/castopod/vendor/codeigniter4/framework/system/CodeIgniter.php(457): CodeIgniter\CodeIgniter->runController(Object(Modules\Admin\Controllers\EpisodeController))
#7 /opt/castopod/vendor/codeigniter4/framework/system/CodeIgniter.php(340): CodeIgniter\CodeIgniter->handleRequest(NULL, Object(Config\Cache), false)
#8 /opt/castopod/public/index.php(73): CodeIgniter\CodeIgniter->run()
#9 {main}
Context
- Castopod: 1.1.2
- OS: Ubuntu 20.04.5 LTS
- Browser: Edge 110.0.1587.50
- Web server: NGINX 1.21.6
Possible fixes
[If you can, link to the line of code that might be responsible for the problem]
Edited by JUNZHANG