Skip to content

Commit

Permalink
Add a filter to make it easier to disable downloading content for Ins…
Browse files Browse the repository at this point in the history
…tapaper articles.
  • Loading branch information
Beau Lebens committed Jan 22, 2017
1 parent 7e5aee9 commit 3688223
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion importers/keyring-importer-instapaper.php
Expand Up @@ -205,8 +205,12 @@ function insert_posts() {
return array( 'imported' => $imported, 'skipped' => $skipped ); return array( 'imported' => $imported, 'skipped' => $skipped );
} }


// Download article content in batches, and store in post-meta/custom fields // Download article content in batches, and store in post-meta/custom field
function download_article_texts() { function download_article_texts() {
if ( ! apply_filters( 'keyring_instapaper_download_article_texts', true ) ) {
return;
}

// Returns the specified bookmark's processed text-view HTML, which is always text/html encoded as UTF-8. // Returns the specified bookmark's processed text-view HTML, which is always text/html encoded as UTF-8.
$endpoint = 'https://www.instapaper.com/api/1/bookmarks/get_text'; $endpoint = 'https://www.instapaper.com/api/1/bookmarks/get_text';


Expand Down

0 comments on commit 3688223

Please sign in to comment.