mirror of
https://github.com/moparisthebest/wallabag
synced 2025-02-07 02:30:12 -05:00
Merge pull request #349 from JasonGhent/master
Stackoverflow parsing and subdomain failover fix.
This commit is contained in:
commit
13991e5288
@ -114,7 +114,7 @@ class SiteConfig
|
|||||||
$split = explode('.', $host);
|
$split = explode('.', $host);
|
||||||
if (count($split) > 1) {
|
if (count($split) > 1) {
|
||||||
array_shift($split);
|
array_shift($split);
|
||||||
$try[] = '.'.implode('.', $split);
|
$try[] = implode('.', $split);
|
||||||
}
|
}
|
||||||
foreach ($try as $h) {
|
foreach ($try as $h) {
|
||||||
if (array_key_exists($h, self::$config_cache)) {
|
if (array_key_exists($h, self::$config_cache)) {
|
||||||
|
4
inc/3rdparty/site_config/custom/stackexchange.com.txt
vendored
Executable file
4
inc/3rdparty/site_config/custom/stackexchange.com.txt
vendored
Executable file
@ -0,0 +1,4 @@
|
|||||||
|
title: //title
|
||||||
|
body: //div[@id='question']//div[contains(@class,'post-text')] | //div[@id='answers-header']//h2 | //div[contains(@class,'accepted-answer')]//div[contains(@class,'post-text')]
|
||||||
|
|
||||||
|
test_url: http://cstheory.stackexchange.com/questions/14811/what-is-the-enlightenment-im-supposed-to-attain-after-studying-finite-automata/14818#14818
|
4
inc/3rdparty/site_config/custom/stackoverflow.com.txt
vendored
Executable file
4
inc/3rdparty/site_config/custom/stackoverflow.com.txt
vendored
Executable file
@ -0,0 +1,4 @@
|
|||||||
|
title: //title
|
||||||
|
body: //div[@id='question']//div[contains(@class,'post-text')] | //div[@id='answers-header']//h2 | //div[contains(@class,'accepted-answer')]//div[contains(@class,'post-text')]
|
||||||
|
|
||||||
|
test_url: http://stackoverflow.com/questions/20302422/calling-a-function-from-a-javascript-object
|
Loading…
Reference in New Issue
Block a user