Fc2: don't mark valid blog page sources as bad_source
This commit is contained in:
@@ -14,6 +14,12 @@ class Source::URL::Fc2 < Source::URL
|
|||||||
def parse
|
def parse
|
||||||
case [*host.split("."), *path_segments]
|
case [*host.split("."), *path_segments]
|
||||||
|
|
||||||
|
# http://hosystem.blog36.fc2.com/blog-entry-37.html
|
||||||
|
in username, /^blog\d*$/, "fc2", "com", /^blog-entry-(\d+)\.html$/ => blog_path
|
||||||
|
@username = username
|
||||||
|
@profile_url = "http://#{username}.blog.fc2.com"
|
||||||
|
@page_url = "http://#{username}.blog.fc2.com/#{blog_path}"
|
||||||
|
|
||||||
# http://silencexs.blog.fc2.com
|
# http://silencexs.blog.fc2.com
|
||||||
# http://silencexs.blog106.fc2.com
|
# http://silencexs.blog106.fc2.com
|
||||||
# http://onidocoro.blog14.fc2.com/file/20071003061150.png
|
# http://onidocoro.blog14.fc2.com/file/20071003061150.png
|
||||||
|
|||||||
Reference in New Issue
Block a user