uses the pirate bay instead#85
Open
ricky-aufvaa wants to merge 2 commits intobugswriter:masterfrom
ricky-aufvaa:the-notflix-bay
Open
uses the pirate bay instead#85ricky-aufvaa wants to merge 2 commits intobugswriter:masterfrom ricky-aufvaa:the-notflix-bay
ricky-aufvaa wants to merge 2 commits intobugswriter:masterfrom
ricky-aufvaa:the-notflix-bay
Conversation
thamognya
approved these changes
Feb 14, 2022
thamognya
left a comment
There was a problem hiding this comment.
It is overall a better idea to use the pirate bay over 1337x.wtf. Just remove the tab from magnet=$(cat url.html|grep -E 'magnet\:\?'|sed 's/href\=/ /g'|awk '{print $2}'|sed 's/"/ /g'| head -n 1|sed 's/ //g') line and it is perfect.
thamognya
suggested changes
Feb 19, 2022
There was a problem hiding this comment.
Take this as an example which uses lesser lines and does not require to download url.html which is not required and can be replaced with a variable.
#!/bin/bash
QUERY=$(printf '%s' "$*" | sed 's/ /\%20/g')
MAGNET=$(curl -s "https://thepiratebay.party/search/$QUERY/1/99/0" -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:91.0) Gecko/20100101 Firefox/91.0' | grep -Eo "magnet\:\?[a-zA-Z0-9]{2}=[a-zA-Z0-9]{3}:[a-zA-Z0-9]{4}:[a-zA-Z0-9?%-' '=.+;-]*"| head -n 1)
peerflix -l -k $MAGNET
Author
Thank you! This is very useful. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This uses less lines of code(less than 4 hahah) and also uses the pirate bay.