Page MenuHomeDevCentral

D736.id1848.diff
No OneTemporary

D736.id1848.diff

diff --git a/pages/crunchyroll.php b/pages/crunchyroll.php
new file mode 100644
--- /dev/null
+++ b/pages/crunchyroll.php
@@ -0,0 +1,20 @@
+<?php
+
+/**
+ * Represents a page from the http://www.crunchyroll.com/ site.
+ */
+class CrunchyRollPage extends Page {
+ /**
+ * Analyses the page and extracts metadata
+ */
+ function analyse () {
+ parent::analyse();
+
+ $authorElement = self::between('<div class="byline">', '</div>');
+ $this->author = self::grab($authorElement, '">', '</a>');
+
+ $this->extractYYYYMMDDDateFromURL();
+
+ $this->site = "[[Crunchyroll]]";
+ }
+}
diff --git a/pages/index.dat b/pages/index.dat
--- a/pages/index.dat
+++ b/pages/index.dat
@@ -4,6 +4,7 @@
http://rue89.nouvelobs.com/ Rue89
http://www.animenewsnetwork.com/ AnimeNewsNetwork
http://www.chroniquesautomatiques.com/ LesChroniquesAutomatiques
+http://www.crunchyroll.com/ CrunchyRoll
http://www.erudit.org/ Erudit
http://www.footofeminin.fr/ FootOFeminin
http://www.formula1.com/ Formula1

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 24, 02:47 (19 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2259002
Default Alt Text
D736.id1848.diff (1 KB)

Event Timeline