Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3762246
D728.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
856 B
Referenced Files
None
Subscribers
None
D728.id.diff
View Options
diff --git a/pages/liberation.php b/pages/liberation.php
--- a/pages/liberation.php
+++ b/pages/liberation.php
@@ -4,14 +4,19 @@
function analyse () {
parent::analyse();
- //Hardcoded known info
+ // Hardcoded known info
$this->site = "[[Libération (journal)|Libération]]";
+ $this->paywall = true;
- //Gets date
+ // 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);
+
+ // Extracts author
+ $author = self::between('<span class="author">', '</span>');
+ $this->author = self::grab($author, '<span>'); // cleans URL
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 22, 08:33 (6 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2255858
Default Alt Text
D728.id.diff (856 B)
Attached To
Mode
D728: Improve Libération analyze
Attached
Detach File
Event Timeline
Log In to Comment