mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2026-04-27 17:38:19 +02:00
m.wuxiaworld.co == www.wuxiaworld.co
This commit is contained in:
parent
37aab6a4f5
commit
5c324fc5b6
1 changed files with 5 additions and 1 deletions
|
|
@ -56,12 +56,16 @@ class WuxiaWorldCoSiteAdapter(BaseSiteAdapter):
|
|||
def getSiteDomain():
|
||||
return 'www.wuxiaworld.co'
|
||||
|
||||
@classmethod
|
||||
def getAcceptDomains(cls):
|
||||
return ['www.wuxiaworld.co','m.wuxiaworld.co']
|
||||
|
||||
@classmethod
|
||||
def getSiteExampleURLs(cls):
|
||||
return 'http://%s/story-name' % cls.getSiteDomain()
|
||||
|
||||
def getSiteURLPattern(self):
|
||||
return r'https?://%s/(?P<id>[^/]+)(/)?' % re.escape(self.getSiteDomain())
|
||||
return r'https?://(www|m)\.wuxiaworld\.co/(?P<id>[^/]+)(/)?'
|
||||
|
||||
def use_pagecache(self):
|
||||
return True
|
||||
|
|
|
|||
Loading…
Reference in a new issue