* Check title is string

* Fix lint and brackets

* Add more checks
make-only-subtitle-default
HaveAGitGat 4 years ago committed by GitHub
parent 764afced49
commit ba2dbf4470
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -71,11 +71,11 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {
let lang = '';
let title = 'none';
if (subStream.tags) {
if (subStream && subStream.tags && subStream.tags.language) {
lang = subStream.tags.language;
}
if (subStream.tags.title) {
if (subStream && subStream.tags && subStream.tags.title) {
title = subStream.tags.title;
}

Loading…
Cancel
Save