mirror of
https://github.com/wallabag/wallabag.git
synced 2024-12-16 10:22:14 +01: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);
|
||||
if (count($split) > 1) {
|
||||
array_shift($split);
|
||||
$try[] = '.'.implode('.', $split);
|
||||
$try[] = implode('.', $split);
|
||||
}
|
||||
foreach ($try as $h) {
|
||||
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