Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

[FR] - Support bulk/playlist download #108

Closed
untotren opened this issue May 2, 2017 · 6 comments
Closed

[FR] - Support bulk/playlist download #108

untotren opened this issue May 2, 2017 · 6 comments
Assignees

Comments

@untotren
Copy link

untotren commented May 2, 2017

when I put playlist right now, it generates many links. It would be nice to bulk download, perhaps even as a .zip.

@nodiscc
Copy link

nodiscc commented May 2, 2017

@untotren re: zip: currently the server never touches the actual stream/video/audio data, it just passes the actual stream URLs to your browser so that the user can download them. Zipping the audio/video data would require that the server downloads the actual data, before zipping it, and then uploading it to the user. This doubles the required bandwidth (most a/v data is already compressed and zipping only results in wasted CPU cycles) and is very far from how alltube currently works.

Re: bulk download: As far as I know it is not possible to download multiple files from a single HTML link. Your best bet would be using a bulk download manager or browser addon such as DownThemAll

Another possible solution would be assigning a class=downloadlink to all download links, and adding JavaScript that would simulate clicking on all those links: https://apple.stackexchange.com/questions/151742/download-all-linked-files-at-once-from-a-website-in-safari/176471#176471. Note that this 1. would require JavaScript 2. Could generate a large number of "Save as..." dialogs when the playlist has many items.

@Rudloff
Copy link
Owner

Rudloff commented May 2, 2017

I'm currently trying different approaches for this. This is not so far from options we already provide (MP3 conversion, remux) but it can potentially use a lot of resources so we probably won't enable it by default.

JavaScript becomes a nightmare with playlists that have a lot of videos so I'm looking for a server side solution.
We might use a library like ArchiveStream-php to stream tar data to the browser.

@Rudloff Rudloff self-assigned this May 2, 2017
@Rudloff
Copy link
Owner

Rudloff commented May 3, 2017

I tried two different libraries that could do this but they both have issues that are blocking me:

@Rudloff
Copy link
Owner

Rudloff commented May 4, 2017

I added experimental support for this on the develop branch (d3c6825).
You need to have stream: true in your config.yml file for it to work.
I have only tested it with Youtube playlists.

@Rudloff
Copy link
Owner

Rudloff commented May 15, 2017

Closing as the basic functionnality is there.
Please feel free to open new issues for bugs or enhancements.

@Rudloff Rudloff closed this as completed May 15, 2017
@untotren
Copy link
Author

@Rudloff Thank you sorry I am travelling for work I will try it out ASAP!!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants