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

[UI][Common] Wrap torrent comment and tracker status URLs in HTML (clickable) #460

Closed

Conversation

zakkarry
Copy link
Contributor

This PR adds a function to common.py that uses a re.sub function to wrap supported URLs (taken from the is_url function) with HTML.

With this function, the torrent comments in details_tab and tracker status in trackers_tab will now display these URLs as clickable hyperlinks.

This was previously only supported where the comment itself was only a URL. It will now support links within the comment. Also for tracker errors that give a link, in the case of removal and replacement for a new torrent on a tracker, the link reported in the status is now clickable too.

@zakkarry zakkarry force-pushed the parse-links-to-html branch 4 times, most recently from 4f1f7e8 to 466a4da Compare August 26, 2024 13:58
Copy link
Member

@cas-- cas-- left a comment

Choose a reason for hiding this comment

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

This is a nice addition, just a few small changes

.gitignore Outdated Show resolved Hide resolved
deluge/common.py Outdated Show resolved Hide resolved
deluge/common.py Outdated Show resolved Hide resolved
deluge/common.py Outdated Show resolved Hide resolved
@zakkarry zakkarry force-pushed the parse-links-to-html branch 6 times, most recently from 4120ebb to d3af3b6 Compare August 26, 2024 20:14
@zakkarry zakkarry requested a review from cas-- August 26, 2024 20:17
@zakkarry zakkarry force-pushed the parse-links-to-html branch 2 times, most recently from 25a61a5 to 5c85405 Compare August 26, 2024 20:49
@zakkarry
Copy link
Contributor Author

zakkarry commented Aug 26, 2024

rebased.

@zakkarry zakkarry force-pushed the parse-links-to-html branch from 5c85405 to 7d40560 Compare August 26, 2024 21:05
@cas-- cas-- closed this in 3bceb4b Sep 8, 2024
@zakkarry zakkarry deleted the parse-links-to-html branch September 8, 2024 13:56
doadin pushed a commit to doadin/deluge that referenced this pull request Sep 21, 2024
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.

2 participants