Use more cookies to allow processing of the NYT feed

Conflicts:

	include/Scrape.php
This commit is contained in:
Matthew Exon 2016-01-25 03:34:53 +01:00
parent 09622ad593
commit 4007876b84
2 changed files with 9 additions and 3 deletions

View file

@ -335,7 +335,9 @@ function onepoll_run(&$argv, &$argc){
if($contact['rel'] == CONTACT_IS_FOLLOWER || $contact['blocked'] || $contact['readonly'])
return;
$xml = fetch_url($contact['poll']);
$cookiejar = tempnam('/tmp', 'cookiejar-onepoll-');
$xml = fetch_url($contact['poll'], false, $redirects, 0, Null, $cookiejar);
unlink($cookiejar);
}
elseif($contact['network'] === NETWORK_MAIL || $contact['network'] === NETWORK_MAIL2) {