Code Monkey home page Code Monkey logo

Comments (3)

KiraLT avatar KiraLT commented on June 9, 2024

The issue with the first link is that you probably wrongly escaped the magnet link. In the first link magnet can't have ? symbol.

Ideally, you shouldn't generate links manually - use UI and copy links from UI.

from torrent-stream-server.

omgbox avatar omgbox commented on June 9, 2024

The issue with the first link is that you probably wrongly escaped the magnet link. In the first link magnet can't have ? symbol.

Ideally, you shouldn't generate links manually - use UI and copy links from UI.

tested it again, it seems to be working the same. i'm currently only using it through the terminal.

i tried it again, like this , this is working.

mpv "http://example.com/stream?torrent=magnet:?xt=urn:btih:E5A04AF69BE755F3578214D020B9D94FCF1B0C3F"
(+) Video --vid=1 () (h264 1280x720 29.970fps)
(+) Audio --aid=1 (
) (aac 2ch 48000Hz)
AO: [wasapi] 48000Hz stereo 2ch float
VO: [gpu] 1280x720 yuv420p
AV: 00:00:03 / 01:53:09 (0%) A-V: 0.000 Dropped: 5 Cache: 49s/19MB

and using it like this gets parse torrent error .

https://example.com/stream/magnet:?xt=urn:btih:DEFC39C97728D03DE03407DE8B1EB1B92D3D6DFB

{"error":"Cannot parse torrent: Invalid torrent identifier, link: magnet:"}

and using only the hash, it works but using the magnet:?xt=urn:btih: gives off parse error.

mpv "https://example.com/stream/DEFC39C97728D03DE03407DE8B1EB1B92D3D6DFB"
(+) Video --vid=1 () (h264 1280x720 29.970fps)
(+) Audio --aid=1 (
) (aac 2ch 48000Hz)
AO: [wasapi] 48000Hz stereo 2ch float
VO: [gpu] 1280x720 yuv420p
AV: 00:00:02 / 01:22:22 (0%) A-V: 0.000 Dropped: 2 Cache: 30s/11MB

it's not a big deal for i'm able to use the hash.

from torrent-stream-server.

KiraLT avatar KiraLT commented on June 9, 2024

That is the issue when trying to manually construct a URL. Try something like https://www.freeformatter.com/url-parser-query-string-splitter.html:

Screenshot from 2020-11-16 13-26-44

As you can see parsed URL has:

Path: /stream/magnet:

How the correct URL should look:

Screenshot from 2020-11-16 13-29-52

from torrent-stream-server.

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.