Skip to content

Linux13524/YoutubeDecipher

Repository files navigation

Build Status Travis Build Status AppVeyor

Conan package recipe for youtube_decipher

Library to decipher youtube signatures

The packages generated with this conanfile can be found on Bintray.

For Users

Basic setup

$ conan install youtube_decipher/1.0.1@linux13524/testing

Project setup

If you handle multiple dependencies in your project is better to add a conanfile.txt

[requires]
youtube_decipher/1.0.1@linux13524/testing

[generators]
cmake

Complete the installation of requirements for your project running:

$ mkdir build && cd build && conan install ..

Note: It is recommended that you run conan install from a build directory and not the root of the project directory. This is because conan generates conanbuildinfo files specific to a single build configuration which by default comes from an autodetected default profile located in ~/.conan/profiles/default . If you pass different build configuration options to conan install, it will generate different conanbuildinfo files. Thus, they should not be added to the root of the project, nor committed to git.

Build and package

The following command both runs all the steps of the conan file, and publishes the package to the local system cache. This includes downloading dependencies from "build_requires" and "requires" , and then running the build() method.

$ conan create . linux13524/testing

Available Options

Option Default Possible Values
shared False [True, False]
fPIC True [True, False]

Add Remote

$ conan remote add linux13524 "https://api.bintray.com/conan/linux13524/conan"

Usage

  • Include the decipher.h into your code

  • call Youtube::Decipher::instance(videoHtml).DecipherSignature(signature)

    videoHtml:

    • Any Youtube video HTML (used to extract the ytplayer.js)

      It is not necessary to provide the whole html due to simple regexing (see section "How does it work?")

    signature:

    • The signature you want to decipher

Dependencies:

boost/1.69.0@conan/stable, cpr/1.3.0@linux13524/stable

How does it work?

See the wiki

License

MIT