JohnDoee / deluge-streaming

Streaming plugin for deluge, making it possible to read torrents and download required parts on-demand.
Other
139 stars 15 forks source link

Open directly with vlc #12

Closed cirelli94 closed 4 years ago

cirelli94 commented 8 years ago

Is it possible to add an option to start it directly in VLC?

JohnDoee commented 8 years ago

What OS ?

cirelli94 commented 8 years ago

Ubuntu 16.10 http://i.imgur.com/1jxELhn.png This is wonderful if I run deluge-web, but have an option to run VLC would be great!

nwgat commented 7 years ago

implement something like Right Click > Play in $player player="mpv.exe $url"

also auto copy to clipboard? option

joaoeudes7 commented 7 years ago

please '-'

JohnDoee commented 7 years ago

I made a fix for Windows, linux version is still pending. You can see it https://github.com/JohnDoee/deluge-streaming under "Open directly in your video player"

sojusnik commented 7 years ago

Can't wait for the linux version!

avncharlie commented 7 years ago

Is it possible for this to be implemented on Mac?

JohnDoee commented 7 years ago

@avncharlie In theory it is, the problem is that I don't have access to a Mac to develop it on. A quick Google search does not reveal any easy way for me to build and package it without one.

If you have any knowledge regarding OSX development without a Mac, feel free to share it.

The Linux version just needs a bit of UI and packaging, so OSX will be the only one left in the cold :slightly_smiling_face:

avncharlie commented 7 years ago

I don't have any experience like that sorry. But if you wanted me to try or run anything on my Mac, I'd be more than happy too. Thanks for your work on this plugin.

HaleTom commented 7 years ago

Is there any equivalent of StreamProtocol for Linux?

LeoUfimtsev commented 5 years ago

I'd be happy to test things on linux. Would like to have this feature. I can compile stuff.

alvitawa commented 5 years ago

I figured out how to directly open the streams on vlc on linux (takes a little bit of work):

Make file vlc_open_stream.py and put it in ~/bin/ with the following content:

#!/usr/bin/env python3

# Called by ~/.local/share/applications/stream_scheme_handler.desktop
# which is added to mimeapps.list with `xdg-mime default stream_scheme_handler.desktop x-scheme-handler/stream+http`

import sys
import os

arg = sys.argv[1]

url = arg.split(':', 1)[1]

os.system('vlc http:' + url)

Make file stream_scheme_handler.desktop and put it in ~/.local/share/applications with content:

[Desktop Entry]
Type=Application
Name=Stream Scheme Handler
Exec=~/bin/vlc_open_stream.py %u
StartupNotify=false
MimeType=x-scheme-handler/stream+http;

Run command:

xdg-mime default stream_scheme_handler.desktop x-scheme-handler/stream+http

Now it should work. This configures xdg-open to understand stream+http:%url. You can put the python script somewhere other than ~/bin if you want, just make sure to alter the path in the desktop file as well.

Edit: Make sure to enable use stream protocol urls and Auto-open stream protocol url in plugin settings.