$handle = fopen($this->filepath, 'r');
while (false !== ($data = fgetcsv($handle, 10240))) {
if ('URL' === $data[0]) {
- break;
+ continue;
}
// last element in the csv is the folder where the content belong
return false;
}
+ // most recent articles are first, which means we should create them at the end so they will show up first
+ // as Instapaper doesn't export the creation date of the article
+ $entries = array_reverse($entries);
+
if ($this->producer) {
$this->parseEntriesForProducer($entries);