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

make links in comments clickable, increase text size #2168

Merged
merged 5 commits into from
Mar 3, 2019

Conversation

yausername
Copy link
Contributor

@yausername yausername commented Mar 1, 2019

requires TeamNewPipe/NewPipeExtractor#144

Copy link
Member

@theScrabi theScrabi left a comment

Choose a reason for hiding this comment

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

We removed link clicking from commends once since it caused issues with links that point to timestamps in videos (as long as I can remember). Could you check if there are still issues with that?

@yausername
Copy link
Contributor Author

yausername commented Mar 1, 2019

@theScrabi I have added handling for timestamp links in comments

53672875-782f8d80-3caa-11e9-8963-24a4b64ef43c

@theScrabi theScrabi merged commit eb692de into TeamNewPipe:dev Mar 3, 2019
@TobiGr TobiGr mentioned this pull request Mar 9, 2019
3 tasks
This was referenced Apr 28, 2019
nyanpasu64 added a commit to nyanpasu64/NewPipeExtractor that referenced this pull request Aug 18, 2019
For some reason, comments were handled in NewPipeExtractor as text,
sent to NewPipe, and timestamps converted to hyperlinks using Linkify:
TeamNewPipe/NewPipe#2168

On the other hand,
video descriptions were handled in NewPipeExtractor as HTML.
There, timestamp links were previously mangled (and now properly parsed),
before being sent to NewPipe as HTML (where it's converted to Spanned).
nyanpasu64 added a commit to nyanpasu64/NewPipeExtractor that referenced this pull request Aug 18, 2019
For some reason, in NewPipeExtractor,
comments were loaded from JSON by YoutubeCommentsInfoItemExtractor as text,
sent via CommentsInfoItem#getCommentText to NewPipe,
where timestamps are converted to hyperlinks using Linkify:
TeamNewPipe/NewPipe#2168

On the other hand, video descriptions are handled in NewPipeExtractor
by scraping the watch-page HTML.
There, timestamp links were previously mangled (and now properly parsed),
before being sent as HTML via YoutubeStreamExtractor#getDescription
to NewPipe (where HTML gets converted to Spanned).

The logic introduced in this commit is different from the above PR,
since it operates in the extractor, and mutates the HTML DOM
rather than identifying via regex.
nyanpasu64 added a commit to nyanpasu64/NewPipeExtractor that referenced this pull request Aug 18, 2019
For some reason, in NewPipeExtractor,
comments were loaded from JSON by YoutubeCommentsInfoItemExtractor as text,
sent via CommentsInfoItem#getCommentText to NewPipe,
where timestamps are converted to hyperlinks using Linkify:
TeamNewPipe/NewPipe#2168

On the other hand, video descriptions are handled in NewPipeExtractor
by scraping the watch-page HTML.
There, timestamp links were previously mangled (and now properly parsed),
before being sent as HTML via YoutubeStreamExtractor#getDescription
to NewPipe (where HTML gets converted to Spanned).

The logic introduced in this commit is different from the above PR,
since it operates in the extractor, and mutates the HTML DOM
rather than identifying via regex.
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.

None yet

2 participants