asapach / peerflix-server

Streaming torrent client for Node.js with web ui.
MIT License
1.31k stars 586 forks source link

Download playlist m3u for mkv and avi files types #151

Closed Smax2k closed 6 years ago

Smax2k commented 6 years ago

Hello,

I had a little idea, it would be great to be able to download a playlist in m3u format for video formats that are not compatible with the internet browser.

I think for people who do not understand that you have to copy the link in vlc, they could open the playlist directly in vlc, just by clicking on it.

The playlist could have multiple files if the torrent has multiple files.

What do you think ?

asapach commented 6 years ago

I think it's already implemented, but not documented anywhere (other than in the REST API): you can use this URL http://localhost:9000/torrents/{hash}/files to get the M3U playlist. I haven't figured out where to put this link in the UI to make it user-friendly.

Smax2k commented 6 years ago

Ok is work good. For the ui user-friendly may be : https://i.imgur.com/igzAX1K.jpg (new img)

asapach commented 6 years ago

I've decided to add the "playlist" option next to the "archive" option in the new header: image

The header will appear when there are multiple files in the torrent.

Smax2k commented 6 years ago

Awesome, it is a very good idea!

Smax2k commented 6 years ago

Hello, i have update and fresh install of the vps but i don't see the new feature ? Thanks

asapach commented 6 years ago

@Smax2k, as I mentioned it only shows up when you have more than one file in the torrent. How many files do you have? And what version BTW?

Smax2k commented 6 years ago

Ok it's my fault, I misunderstood, i have one file. Thank you @asapach