mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2026-01-08 09:03:21 +01:00
potionsandsnitches.net doesn't require login. Indeed, it doesn't even have the same login URL.
This commit is contained in:
parent
4e53481d7d
commit
25cbab225c
1 changed files with 6 additions and 2 deletions
|
|
@ -28,7 +28,11 @@ class Twilighted(FanfictionSiteAdapter):
|
|||
|
||||
|
||||
def requiresLogin(self, url = None):
|
||||
return True
|
||||
# potionsandsnitches.net doesn't require login.
|
||||
if self.host == 'potionsandsnitches.net':
|
||||
return False
|
||||
else:
|
||||
return True
|
||||
|
||||
def performLogin(self, url = None):
|
||||
data = {}
|
||||
|
|
@ -135,4 +139,4 @@ class Twilighted_UnitTests(unittest.TestCase):
|
|||
self.assertEquals(32, len(Twilighted(url).extractIndividualUrls()))
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
unittest.main()
|
||||
|
|
|
|||
Loading…
Reference in a new issue