Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F54901523
D731.id1834.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D731.id1834.diff
View Options
diff --git a/pages/index.dat b/pages/index.dat
--- a/pages/index.dat
+++ b/pages/index.dat
@@ -13,6 +13,7 @@
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
diff --git a/pages/liberation.php b/pages/liberation.php
--- a/pages/liberation.php
+++ b/pages/liberation.php
@@ -10,13 +10,14 @@
// 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
Details
Attached
Mime Type
text/plain
Expires
Sun, Oct 25, 19:27 (12 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4218532
Default Alt Text
D731.id1834.diff (1 KB)
Attached To
Mode
D731: Analyze next.liberation.fr
Attached
Detach File
Event Timeline
Log In to Comment