Merge pull request #443 from vincode-io/issue-386

Fixed issue where a feed: url in the body of a page wouldn't be retri…
This commit is contained in:
Brent Simmons 2018-09-06 19:10:57 -07:00 committed by GitHub
commit 981a0baa57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -34,7 +34,8 @@ class HTMLFeedFinder {
for oneBodyLink in bodyLinks { for oneBodyLink in bodyLinks {
if linkMightBeFeed(oneBodyLink) { if linkMightBeFeed(oneBodyLink) {
let oneFeedSpecifier = FeedSpecifier(title: oneBodyLink.text, urlString: oneBodyLink.urlString!, source: .HTMLLink) let normalizedURL = oneBodyLink.urlString.rs_normalizedURL()
let oneFeedSpecifier = FeedSpecifier(title: oneBodyLink.text, urlString: normalizedURL, source: .HTMLLink)
addFeedSpecifier(oneFeedSpecifier) addFeedSpecifier(oneFeedSpecifier)
} }
} }