Switch between RSS content and Web page content (store both) #1999
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Please let me know what you think of this change.
It solves an issue that has irked me when using the interface, which is overwriting the original RSS content with the webpage content which sometimes is not as well formatted as the original RSS content or is empty/junk. It allows people to hit the
download
button just to see what the page looks like when it is downloaded, but still return to the RSS page to continue reading.The feature works like this:
Whenever an entry is loaded, if there is downloaded content available, that will be displayed and the
Download
button becomesShow RSS Content
.Otherwise the page loads like normal, showing the
Download
button and the RSS page content.If the
Show RSS Content
button is selected, the original RSS content is displayed and the button turns to the regularDownload
button.If this
Download
button is selected, the page is processed and saved like normal (re-downloading it even if it has been saved before).The
/fetch-content
API method now returns bothcontent
andweb_content
as JSON.