WIP: working move/tv show download
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user