Git Product home page Git Product logo

Comments (6)

squiter avatar squiter commented on May 30, 2024

I don't undertant exactly what you want to do.
Do you want to use ivy-youtube to find a video, but instead open the url on browser you pass it to youtube-dl?
Can you give me more details?

from ivy-youtube.

troublew avatar troublew commented on May 30, 2024

Do you want to use ivy-youtube to find a video, but instead open the url on browser you pass it to youtube-dl?

Exactly. And by talking about youtube-dl, I was talking about tools which directly play the video in my media player (currently mpv). Tools like mpsyt, livestreamer (mpv support this too, with the syntax "mpv https://www.youtube.com/watch?v=vid").
It would be amazing.
Thanks you for the extension.

from ivy-youtube.

squiter avatar squiter commented on May 30, 2024

@troublew it's a good idea! I'll try to do it. If you have more ideas feel free to share.

from ivy-youtube.

squiter avatar squiter commented on May 30, 2024

@troublew I opened a PR here that (I think) implements what you need. If you want to test you can download the code or read the new readme in https://github.com/squiter/ivy-youtube/tree/support-process

from ivy-youtube.

troublew avatar troublew commented on May 30, 2024

Works perfecty for me, with mpv.
I did a little modification, to make it accepts argument:

:command `(,@ivy-youtube-play-at ,video-url)))
(setq ivy-youtube-play-at '("/usr/bin/mpv" "--no-video" "--volume=60"))

It's ugly though, and situational ("--no-video" argument for music).

Anyway, thanks for the feature. It's very handy.

from ivy-youtube.

squiter avatar squiter commented on May 30, 2024

When I was thinking about the feature, my first idea was to create a variable that stores a lambda to make it more flexible... maybe I implement that in the future.
Anyway thanks for the idea.

from ivy-youtube.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.