WIP: working move/tv show download

This commit is contained in:
Brock H Caldwell
2026-03-21 23:22:41 -05:00
parent 9e2c5410ba
commit e39cb6e9bd
17 changed files with 325 additions and 132 deletions

View File

@@ -16,6 +16,7 @@ export default class extends Controller {
}
download() {
console.log(new FormData(document.querySelector('[name="user_media_preferences_form"]')).values());
fetch('/api/download', {
method: 'POST',
headers: {
@@ -28,7 +29,8 @@ export default class extends Controller {
filename: this.filenameValue,
mediaType: this.mediaTypeValue,
imdbId: this.imdbIdValue,
episodeId: this.episodeIdValue
episodeId: this.episodeIdValue,
filter: new FormData(document.querySelector('[name="user_media_preferences_form"]')).values()
})
})
.then(res => res.json())