Skip to content

Commit

Permalink
Add: Ability to search in Live TV
Browse files Browse the repository at this point in the history
  • Loading branch information
JurajNyiri committed Sep 2, 2021
1 parent c2b109b commit b1a8f48
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion dist/plex-meets-homeassistant.js
Original file line number Diff line number Diff line change
Expand Up @@ -21416,7 +21416,9 @@ class PlexMeetsHomeAssistant extends HTMLElement {
}
else if (lodash.includes(lodash.toUpper(movieData.title), lodash.toUpper(this.searchValue)) ||
lodash.includes(lodash.toUpper(movieData.parentTitle), lodash.toUpper(this.searchValue)) ||
lodash.includes(lodash.toUpper(movieData.grandparentTitle), lodash.toUpper(this.searchValue))) {
lodash.includes(lodash.toUpper(movieData.grandparentTitle), lodash.toUpper(this.searchValue)) ||
lodash.includes(lodash.toUpper(movieData.tag), lodash.toUpper(this.searchValue)) ||
lodash.includes(lodash.toUpper(lodash.get(movieData, 'epg.title')), lodash.toUpper(this.searchValue))) {
shouldRender = true;
}
if (shouldRender) {
Expand Down
4 changes: 3 additions & 1 deletion src/plex-meets-homeassistant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,9 @@ class PlexMeetsHomeAssistant extends HTMLElement {
} else if (
_.includes(_.toUpper(movieData.title), _.toUpper(this.searchValue)) ||
_.includes(_.toUpper(movieData.parentTitle), _.toUpper(this.searchValue)) ||
_.includes(_.toUpper(movieData.grandparentTitle), _.toUpper(this.searchValue))
_.includes(_.toUpper(movieData.grandparentTitle), _.toUpper(this.searchValue)) ||
_.includes(_.toUpper(movieData.tag), _.toUpper(this.searchValue)) ||
_.includes(_.toUpper(_.get(movieData, 'epg.title')), _.toUpper(this.searchValue))
) {
shouldRender = true;
}
Expand Down

0 comments on commit b1a8f48

Please sign in to comment.