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

Adapt to changed HTML #246

Merged
merged 3 commits into from Sep 29, 2022
Merged

Adapt to changed HTML #246

merged 3 commits into from Sep 29, 2022

Conversation

weiran
Copy link
Owner

@weiran weiran commented Sep 28, 2022

Resolves #245

@weiran weiran merged commit e14debd into master Sep 29, 2022
@weiran weiran deleted the hnfix branch September 29, 2022 06:48
let urlString = try postElement.select(".titlelink").attr("href")
let title = try postElement.select(".titlelink").text()
let urlString = try postElement.select(".titleline").select("a").attr("href")
let title = try postElement.select(".titleline").text()

Choose a reason for hiding this comment

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

This has resulted in the URL being included in the title as displayed in the app along with the link also being part of the article component. Should this line be instead?

let title = try postElement.select(".titleline").select("a").text()

Copy link
Owner Author

Choose a reason for hiding this comment

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

Yep you're right, thanks for spotting this.

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.

Posts don’t load in 4.7.5 on iOS 16.0.2
2 participants