Page MenuHomeDevCentral

No OneTemporary

diff --git a/pages/index.dat b/pages/index.dat
index b364ffc..4f162e9 100644
--- a/pages/index.dat
+++ b/pages/index.dat
@@ -1,20 +1,21 @@
http://archives.lesoir.be/ ArchivesLeSoir
http://onlinelibrary.wiley.com/ Wiley
http://rue89.nouvelobs.com/ Rue89
http://www.chroniquesautomatiques.com/ LesChroniquesAutomatiques
http://www.erudit.org/ Erudit
http://www.footofeminin.fr/ FootOFeminin
http://www.formula1.com/ Formula1
http://www.huffingtonpost.fr/ HuffingtonPostFrance
http://www.jstor.org/ JSTOR
http://www.lalibre.be/ LaLibreBelgique
http://www.latimes.com/ LosAngelesTimes
http://www.lefigaro.fr/ LeFigaro
http://www.lemonde.fr/ LeMonde
http://www.leparisien.fr/ LeParisien
http://www.lesoir.be/ LeSoir
+http://next.liberation.fr/ Liberation
http://www.liberation.fr/ Liberation
http://www.nytimes.com/ NewYorkTimes
http://www.persee.fr/ Persee
http://www.tandfonline.com TaylorAndFrancis
http://www.worldcat.org/ WorldCat
diff --git a/pages/liberation.php b/pages/liberation.php
index 4d9082a..3f92b91 100644
--- a/pages/liberation.php
+++ b/pages/liberation.php
@@ -1,22 +1,23 @@
<?php
class LiberationPage extends Page {
function analyse () {
parent::analyse();
// Hardcoded known info
$this->site = "[[Libération (journal)|Libération]]";
$this->paywall = true;
// Gets date
// e.g. http://www.liberation.fr/france/2016/06/02/affiches...
- $pos = strpos($this->url, "/20");
- $this->yyyy = substr($this->url, $pos + 1, 4);
- $this->mm = substr($this->url, $pos + 6, 2);
- $this->dd = substr($this->url, $pos + 9, 2);
+ $this->extractYYYYMMDDDateFromURL();
// Extracts author
$author = self::between('<span class="author">', '</span>');
$this->author = self::grab($author, '<span>'); // cleans URL
+ if ($this->author === false) {
+ $this->author = self::grab($author, '">', '</a>'); // link
+ }
+ $this->author = trim($this->author);
}
}

File Metadata

Mime Type
text/x-diff
Expires
Wed, Mar 18, 10:49 (7 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3539451
Default Alt Text
(1 KB)

Event Timeline