Subversion Repositories cheapmusic

Rev

Rev 95 | Rev 99 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 95 Rev 97
Line 84... Line 84...
84
            $dom = new DOMDocument;
84
            $dom = new DOMDocument;
85
            $dom->loadHTML($html);
85
            $dom->loadHTML($html);
86
            $xpath = new DOMXPath($dom);
86
            $xpath = new DOMXPath($dom);
87
 
87
 
88
            $nodes = $xpath->query('//div[@id="olpProductImage"]//img');
88
            $nodes = $xpath->query('//div[@id="olpProductImage"]//img');
-
 
89
            $pic = "";
-
 
90
            if ($nodes->length > 0) {
89
            $pic = $nodes->item(0)->getAttribute("src");
91
                $pic = $nodes->item(0)->getAttribute("src");
-
 
92
            }
90
 
93
            
91
            $nodes = $xpath->query('//div[@id="olpProductDetails"]/h1');
94
            $nodes = $xpath->query('//div[@id="olpProductDetails"]/h1');
92
            $title = trim($nodes->item(0)->nodeValue);
95
            $title = trim($nodes->item(0)->nodeValue);
93
            $fullTitle = $title;
96
            $fullTitle = $title;
94
 
97
 
95
            $nodes = $xpath->query('//div[@id="olpProductByline"]');
98
            $nodes = $xpath->query('//div[@id="olpProductByline"]');