mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-16 02:35:54 -07:00
Pepper fix (#301)
* Check title is string * Fix lint and brackets * Add more checks
This commit is contained in:
parent
764afced49
commit
ba2dbf4470
1 changed files with 2 additions and 2 deletions
|
|
@ -71,11 +71,11 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {
|
||||||
let lang = '';
|
let lang = '';
|
||||||
let title = 'none';
|
let title = 'none';
|
||||||
|
|
||||||
if (subStream.tags) {
|
if (subStream && subStream.tags && subStream.tags.language) {
|
||||||
lang = subStream.tags.language;
|
lang = subStream.tags.language;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (subStream.tags.title) {
|
if (subStream && subStream.tags && subStream.tags.title) {
|
||||||
title = subStream.tags.title;
|
title = subStream.tags.title;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue