Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using btplay (of btfs) instead of peerflix #92

Open
pitsi opened this issue Jul 7, 2022 · 0 comments
Open

Using btplay (of btfs) instead of peerflix #92

pitsi opened this issue Jul 7, 2022 · 0 comments

Comments

@pitsi
Copy link

pitsi commented Jul 7, 2022

As the title suggests, I modded notflix just a little bit so as to use btplay and I can report it works just fine.

#!/bin/sh
query=$(printf '%s' "$*" | tr ' ' '+' )
movie=$(curl -s https://1337x.to/search/$query/1/ | grep -Eo "torrent\/[0-9]{7}\/[a-zA-Z0-9?%-]*/" | head -n 1)
magnet=$(curl -s https://1337x.to/$movie | grep -Po "magnet:\?xt=urn:btih:[a-zA-Z0-9]*" | head -n 1)
btplay -p mpv $magnet

Btplay is part of btfs
https://github.com/johang/btfs

---edit on Monday 9th of January 2023
6 months later I discovered that the .wtf domain is no longer available, so I changed it to the .to one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant