Skip to content

Conversation

@iagomussel
Copy link

I just revised the readme adding the missing steps, and updated the Regex, which wasn't picking up the torrents

movie=$(curl -s https://1337x.to/search/$query/1/ | grep -Eo "torrent\/[0-9]*\/[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 -l -k $magnet
peerflix -l -k $magnet --vlc
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is vlc hard coded?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, it's wrongly coded, it will open up both mpv and vlc. Remove -k if you only want vlc.

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

Successfully merging this pull request may close these issues.

4 participants