-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Support add BT-magnet hash code URI directly #468
base: master
Are you sure you want to change the base?
Conversation
Support add BT-magnet hash code URI directly, such as '24B971DF922333C66E674E0F1F4248240C4A6F08' If you search some resource from THE PIRATE BAY, this feature is usefull.
Update modal.js
Support add BT-magnet hash code URI directly |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to reverse the if statement, good otherwise
js/ctrls/modal.js
Outdated
|
||
if(t.startsWith("HTTP")||t.startsWith("MAGNET")||t.startsWith("FTP")){ | ||
return u | ||
}else{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@xckai can you reverse the if statement? As many un known urls now will become magnet url
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only add magnet protocol's head when uri is a 32-bit BASE32 encoding string or 40-bit HEX encoding string.
Support add BT-magnet hash code URI directly, such as '24B971DF922333C66E674E0F1F4248240C4A6F08'
If you search some resource from THE PIRATE BAY, this feature is usefull.