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

a minor fix and storage optimization #96

Open
isg32 opened this issue Jan 5, 2023 · 1 comment
Open

a minor fix and storage optimization #96

isg32 opened this issue Jan 5, 2023 · 1 comment

Comments

@isg32
Copy link

isg32 commented Jan 5, 2023

#!/bin/sh

cd

sudo rm -fr /tmp/torrent-stream/*

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)

peerflix $magnet -k

@isg32
Copy link
Author

isg32 commented Jan 5, 2023

peer flix moved [OPTIONS] to the back, added new url and clean the tmp dir

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