wip-feat: language filter

This commit is contained in:
2025-04-22 18:49:24 -05:00
parent 88851169f9
commit f04c33f80e
3 changed files with 74 additions and 3 deletions

View File

@@ -19,9 +19,13 @@ export default class extends Controller {
options = []
connect() {
async connect() {
await this.setOptions();
}
async setOptions() {
if (true === this.activeValue) {
fetch(`/torrentio/tvshows/${this.tmdbIdValue}/${this.imdbIdValue}/${this.seasonValue}/${this.episodeValue}`)
await fetch(`/torrentio/tvshows/${this.tmdbIdValue}/${this.imdbIdValue}/${this.seasonValue}/${this.episodeValue}`)
.then(res => res.text())
.then(response => {
this.element.innerHTML = response;