Coder Social home page Coder Social logo

stefansundin / media-resolver Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 98 KB

Because VLC can't POST ๐Ÿคฆโ€โ™‚๏ธ (work in progress!)

Home Page: https://media-resolver.fly.dev/

License: GNU Affero General Public License v3.0

Dockerfile 3.68% Rust 94.37% Shell 1.96%
playlist-parser vlc-media-player twitch

media-resolver's Introduction

VLC Playlist Parser Proxy... because VLC can't POST ๐Ÿคฆโ€โ™‚๏ธ

Run locally:

# first edit media-resolver.toml
cargo run

Resolve a URL to a media endpoint:

$ curl -v http://localhost:8080/resolve?url=https://www.twitch.tv/videos/113837699

[...]

< HTTP/1.1 307 Temporary Redirect
< location: https://usher.ttvnw.net/vod/113837699.m3u8?[.......]

Return the data in JSON:

$ curl -sSf 'http://localhost:8080/resolve?url=https://www.twitch.tv/videos/113837699&output=json' | jq
[
  {
    "path": "https://usher.ttvnw.net/vod/113837699.m3u8?[.......]",
    "name": "AGDQ 2017 benefitting the Prevent Cancer Foundation - Mickey's Dangerous Chase",
    "description": null,
    "language": "en",
    "artist": "GamesDoneQuick",
    "genre": "System Shock 2",
    "date": "2017-01-10 20:10:16",
    "duration": 118070
  }
]

The keys were chosen based on what VLC supports. More may be added or removed in future versions.

media-resolver's People

Contributors

stefansundin avatar

Stargazers

 avatar  avatar

Watchers

 avatar

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.