wip: working episode pagination, season switcher, monitor only new content

This commit is contained in:
2025-06-19 13:30:22 -05:00
parent 20d397589a
commit e070b95a36
20 changed files with 378 additions and 42 deletions

View File

@@ -29,7 +29,7 @@ export default class extends Controller {
}
async setOptions() {
if (true === this.activeValue && this.optionsLoaded === false) {
if (this.optionsLoaded === false) {
this.optionsLoaded = true;
await fetch(`/torrentio/tvshows/${this.tmdbIdValue}/${this.imdbIdValue}/${this.seasonValue}/${this.episodeValue}`)
.then(res => res.text())
@@ -56,7 +56,7 @@ export default class extends Controller {
async setActive() {
this.activeValue = true;
this.element.classList.remove('hidden');
// this.element.classList.remove('hidden');
if (false === this.optionsLoaded) {
await this.setOptions();
}
@@ -67,7 +67,7 @@ export default class extends Controller {
// if (true === this.hasEpisodeSelectorTarget()) {
this.episodeSelectorTarget.checked = false;
// }
this.element.classList.add('hidden');
// this.element.classList.add('hidden');
}
isActive() {