Skip to content

Commit

Permalink
Edit (peerflix): list files before playing
Browse files Browse the repository at this point in the history
this is to handle torrents with multiple files like a whole series or somthg
adding the ability to choose the file to play instead of just playing the last one automatically
  • Loading branch information
massaynus committed Jan 29, 2022
1 parent d6e51e2 commit 50e3588
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notflix
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
query=$(printf '%s' "$*" | tr ' ' '+' )
movie=$(curl -s https://1337x.wtf/search/$query/1/ | grep -Eo "torrent\/[0-9]{7}\/[a-zA-Z0-9?%-]*/" | head -n 1)
magnet=$(curl -s https://1337x.wtf/$movie | grep -Po "magnet:\?xt=urn:btih:[a-zA-Z0-9]*" | head -n 1)
peerflix -k $magnet
peerflix -l -k $magnet

0 comments on commit 50e3588

Please sign in to comment.