Skip to content

Commit

Permalink
fix issue #114
Browse files Browse the repository at this point in the history
  • Loading branch information
Nandaka committed Apr 20, 2016
1 parent d429972 commit 7812367
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 1 addition & 3 deletions PixivBrowserFactory.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,6 @@ def loginUsingCookie(self, loginCookie=None):
def loginHttps(self, username, password):
try:
PixivHelper.printAndLog('info', 'Log in using secure form.')
#req = self._makeRequest(PixivConstant.PIXIV_URL_SSL)
#self.open(req)
self.open(PixivConstant.PIXIV_URL_SSL)

self.select_form(predicate=lambda f: f.attrs.get('action', None) == '/login.php')
Expand All @@ -186,7 +184,7 @@ def loginHttps(self, username, password):
response = self.submit()
return self.processLoginResult(response, )
except:
PixivHelper.printAndLog('error', 'Error at pixiv_login_ssl(): ' + str(sys.exc_info()))
PixivHelper.printAndLog('error', 'Error at loginHttps(): ' + str(sys.exc_info()))
raise

def processLoginResult(self, response):
Expand Down
2 changes: 1 addition & 1 deletion PixivConstant.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
PIXIVUTIL_VERSION = '20160415-beta2'
PIXIVUTIL_LINK = 'https://nandaka.wordpress.com/tag/pixiv-downloader/'
PIXIV_URL = 'http://www.pixiv.net'
PIXIV_URL_SSL = 'https://www.secure.pixiv.net/login.php'
PIXIV_URL_SSL = 'https://www.pixiv.net/login.php'
PIXIV_CSS_LIST_ID = 'display_works'
PIXIV_CSS_PROFILE_NAME_CLASS = 'f18b'
PIXIV_CSS_IMAGE_TITLE_CLASS = 'works_data'
Expand Down
3 changes: 2 additions & 1 deletion changelog.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
20160414-beta2
20160421
- Implement #108: enhance window titlebar to calculate the total images.
- Fix Issue #112: change the max page limit for option 8 from 100 to 5000 for premium user.
- Fix Issue #113: update filename sanitizer for windows.
- Fix Issue #114: change login url to https://www.pixiv.net/login.php.

20160319
- Fix unicode decode error when downloading image.
Expand Down

0 comments on commit 7812367

Please sign in to comment.