Make search case-insensitive

This commit is contained in:
Ealhad 2018-11-09 17:08:37 +01:00
parent 7b4d0db96d
commit 65cf25e0ff
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ const searchByName = query => new Promise(async (resolve, reject) => {
.then(function(data) { .then(function(data) {
if (data.total > 0) { if (data.total > 0) {
const video = data.data[0] const video = data.data[0]
if (video.name === query) { if (_.toLower(video.name) === _.toLower(query)) {
resolve(video); resolve(video);
} }
} }