Changed empty field

This commit is contained in:
zeldaroot 2021-02-02 07:22:22 +02:00
parent 6f9b93f624
commit 12f51f2edb

View file

@ -2448,25 +2448,26 @@ function saveData(collection, movies, callback) {
} }
if ( if (
typeof rt.translate === 'undefined' || typeof rt.translate === 'undefined' ||
!rt.translate || (typeof rt.translate === 'string' &&
rt.translate.toString().toLowerCase() === 'null' || (rt.translate.toString().toLowerCase() === 'null' ||
rt.translate.toString().toLowerCase() === 'undefined' || rt.translate.toString().toLowerCase() ===
rt.translate.toString().toLowerCase() === 'false' || 'undefined' ||
rt.translate.toString().toLowerCase() === 'none' || rt.translate.toString().toLowerCase() === 'false' ||
rt.translate.toString().toLowerCase() === 'nan' || rt.translate.toString().toLowerCase() === 'none' ||
rt.translate.toString().toLowerCase() === 'n/a' rt.translate.toString().toLowerCase() === 'nan' ||
rt.translate.toString().toLowerCase() === 'n/a'))
) { ) {
rt.translate = ''; rt.translate = '';
} }
if ( if (
typeof rt.quality === 'undefined' || typeof rt.quality === 'undefined' ||
!rt.quality || (typeof rt.quality === 'string' &&
rt.quality.toString().toLowerCase() === 'null' || (rt.quality.toString().toLowerCase() === 'null' ||
rt.quality.toString().toLowerCase() === 'undefined' || rt.quality.toString().toLowerCase() === 'undefined' ||
rt.quality.toString().toLowerCase() === 'false' || rt.quality.toString().toLowerCase() === 'false' ||
rt.quality.toString().toLowerCase() === 'none' || rt.quality.toString().toLowerCase() === 'none' ||
rt.quality.toString().toLowerCase() === 'nan' || rt.quality.toString().toLowerCase() === 'nan' ||
rt.quality.toString().toLowerCase() === 'n/a' rt.quality.toString().toLowerCase() === 'n/a'))
) { ) {
rt.quality = ''; rt.quality = '';
} }