Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement downloadFiles in NativeShell #842

Merged

Conversation

nielsvanvelzen
Copy link
Member

Jellyfin 10.9 will add a new function to the NativeShell: downloadFiles. This is the same as downloadFile but can request multiple files at once.

This PR adds a basic implementation for it, internally it splits the request. In the future we can use a queue or something to download the files more efficiently.

Changes

  • Implement downloadFiles in NativeShell
  • Add NativeInterface.downloadFiles
  • Remove NativeInterface.downloadFile

Issues

jellyfin-web pull request: jellyfin/jellyfin-web#4016

@nielsvanvelzen nielsvanvelzen added the enhancement New feature or request label Oct 16, 2022
@nielsvanvelzen nielsvanvelzen added this to the v2.5.0 milestone Oct 16, 2022
@nielsvanvelzen
Copy link
Member Author

It'd good to mention that even without this PR everything will keep working. jellyfin-web automatically falls back to using multiple downloadFile calls when downloadFiles is not implemented.

@nielsvanvelzen nielsvanvelzen force-pushed the nativeshell-download-multiple-files branch from 25a8031 to 757b774 Compare October 16, 2022 12:35
@Maxr1998 Maxr1998 merged commit eeb4f1d into jellyfin:master Oct 16, 2022
@nielsvanvelzen nielsvanvelzen deleted the nativeshell-download-multiple-files branch October 16, 2022 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants