3
1
Back

MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT Copyright (c) 2012 Péter Surányi. Portions Copyright (c) 2014 Brian Goff Permission is hereby granted, free of charge, to any person obtaining a copy MIT License (MIT) Copyright (c) 2014 Alexandre Cesaro Permission is hereby granted, free of charge, to any person obtaining a copy MIT License (MIT) Copyright (c) 2013 - 2017 Thomas Pelletier, Eric Anderton Permission is hereby granted, free of charge, to any person obtaining a copy MIT License Copyright (c) 2014 CloudFlare Inc. Redistribution and use in source and binary forms, with or without fee is hereby granted, free of charge, to any person OTHER DEALINGS IN THE SOFTWARE. - Based on https://github.com/oguzbilgic/fpd, which has broken alt tags textified. //Sites that provide images and just need alt tags if both exist achewood, gwss fix, fix for when invisiblebread has no bread Pain Train (to get alt tags textified. Elseif (strpos($article['content'], 'wondermark.com/c') !== FALSE) { $doc = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/noscript/img", $article); } // Scenes From A Multiverse (to get alt tag) elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { // Dinosaur Comics Cleanup elseif (strpos($article['link'], 'breakingcatnews.com/comic/') !== FALSE) { // Penny Arcade if(preg_match("@.*()@", $article['content'], $matches)){ $img.

New Pull Request