diff --git a/bridges/LWNprevBridge.php b/bridges/LWNprevBridge.php
index dc06a6d..6d71c9d 100644
--- a/bridges/LWNprevBridge.php
+++ b/bridges/LWNprevBridge.php
@@ -6,8 +6,10 @@ class LWNprevBridge extends BridgeAbstract{
const CACHE_TIMEOUT = 604800; // 1 week
const DESCRIPTION = 'LWN Free Weekly Edition available one week late';
+ private $editionTimeStamp;
+
function getURI(){
- return self::URI . 'free/bigpage';
+ return self::URI.'free/bigpage';
}
private function jumpToNextTag(&$node){
@@ -36,110 +38,228 @@ class LWNprevBridge extends BridgeAbstract{
$content = getContents($this->getURI())
or returnServerError('No results for LWNprev');
- libxml_use_internal_errors(true);
- $html = new DOMDocument();
- $html->loadHTML($content);
- libxml_clear_errors();
+ $contents = explode('Page editor', $content);
- $cat1 = '';
- $cat2 = '';
+ foreach($contents as $content) {
+ if(strpos($content, '') === false) {
+ $content = <<
+LWN{$content}
+EOD;
+ } else {
+ $content = $content.'