GithubHelp home page GithubHelp logo

YouTube Music Support about freyr-js HOT 11 OPEN

miraclx avatar miraclx commented on May 13, 2024
YouTube Music Support

from freyr-js.

Comments (11)

vladdenisov avatar vladdenisov commented on May 13, 2024 3

Hey, just now first time got by your awesome tool! Feel free to open issues in my repo with missing/incorrectly working functionality, that you need to get YTMusic working in freyr-js. I'll do my best to fix them ASAP :)

from freyr-js.

vladdenisov avatar vladdenisov commented on May 13, 2024 2

I've tried to make my library working without grabbing a cookie (search/track info), so I will soon try to integrate it into freyr-js.

from freyr-js.

miraclx avatar miraclx commented on May 13, 2024 1

Sounds to me like what you're talking about is off-topic for freyr. Or am I missing something?

from freyr-js.

EthanBnntt avatar EthanBnntt commented on May 13, 2024

I'd love to try to make a node.js library for querying data from YouTube.

from freyr-js.

miraclx avatar miraclx commented on May 13, 2024

@EthanBnntt, do you mean an API client like https://github.com/vladdenisov/ytmusic-api or a provider for freyr like https://github.com/miraclx/freyr-js/blob/master/src/services/spotify.js?

If the latter, the help would be much appreciated. I'd be happy to provide any useful insight on how to go about it.

from freyr-js.

EthanBnntt avatar EthanBnntt commented on May 13, 2024

I meant a library for pulling frontend data from YouTube. It would probably just query Invidious instances, as they provide a public API. Something more like https://github.com/vladdenisov/ytmusic-api. YouTube Music is just an alternative frontend to YouTube that only includes music.

from freyr-js.

EthanBnntt avatar EthanBnntt commented on May 13, 2024

Yes, I was talking about making a library separate from freyr and integrating it into freyr.

from freyr-js.

miraclx avatar miraclx commented on May 13, 2024

YouTube Music is just an alternative frontend to YouTube that only includes music.

@EthanBnntt, freyr is a music-downloading utility. Isn't YouTube Music all we need? Is there a benefit to supporting the full YouTube catalog?

from freyr-js.

 avatar commented on May 13, 2024

I haven't seen this documented anywhere but adding "?pbj=1" and appropriate headers to a YouTube (but not YouTube Music) URL returns JSON.


For Search:
curl --location --request GET 'https://www.youtube.com/search?q=laya&pbj=1' --header 'X-Youtube-Client-Version: 2.20221026.05.00' --header 'X-Youtube-Client-Name: 1'

For Video URL (kinda?):
curl --location --request GET 'https://www.youtube.com/watch?v=8foPUupIUi4&pbj=1' --header 'X-Youtube-Client-Version: 2.20221026.05.00' --header 'X-Youtube-Client-Name: 1'

from freyr-js.

quartztester avatar quartztester commented on May 13, 2024

What's stopping this project from utilizing this other repo?
https://github.com/th-ch/youtube-music/tree/master/plugins/downloader

I am not that adept at Javascript but it would be interesting to know what method they are using to pull their YouTube video downloads. This seems to a project that could be combined with this repo due to their utilization of only HTML/CSS apart from JavaScript.

from freyr-js.

miraclx avatar miraclx commented on May 13, 2024

@quartztester, it's the same strategy as freyr. Find the media ID, defer to youtube-dl to extract the feeds (freyr has a manual downloader, they may not), and encode with ffmpeg.

freyr does the extra step of embedding metadata with atomicparsley.

from freyr-js.

Related Issues (20)

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.