{"action":"closed","issue":{"url":"https://api.github.com/repos/Nandaka/PixivUtil2/issues/327","repository_url":"https://api.github.com/repos/Nandaka/PixivUtil2","labels_url":"https://api.github.com/repos/Nandaka/PixivUtil2/issues/327/labels{/name}","comments_url":"https://api.github.com/repos/Nandaka/PixivUtil2/issues/327/comments","events_url":"https://api.github.com/repos/Nandaka/PixivUtil2/issues/327/events","html_url":"https://github.com/Nandaka/PixivUtil2/issues/327","id":300019792,"number":327,"title":"Error at process_image, related to member_token","user":{"login":"hm8940","id":23115663,"avatar_url":"https://avatars0.githubusercontent.com/u/23115663?v=4","gravatar_id":"","url":"https://api.github.com/users/hm8940","html_url":"https://github.com/hm8940","followers_url":"https://api.github.com/users/hm8940/followers","following_url":"https://api.github.com/users/hm8940/following{/other_user}","gists_url":"https://api.github.com/users/hm8940/gists{/gist_id}","starred_url":"https://api.github.com/users/hm8940/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hm8940/subscriptions","organizations_url":"https://api.github.com/users/hm8940/orgs","repos_url":"https://api.github.com/users/hm8940/repos","events_url":"https://api.github.com/users/hm8940/events{/privacy}","received_events_url":"https://api.github.com/users/hm8940/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-02-25T11:52:00Z","updated_at":"2018-02-25T12:08:25Z","closed_at":"2018-02-25T12:08:25Z","author_association":"NONE","body":"Processing Image Id: 67445994\r\nTitle: 初投稿 \r\nTags : オリジナル, 中性的, 筆ペン \r\nDate : 2018-02-24 22:29:00 \r\nMode : bigNew\r\nImage URL : https://i.pximg.net/img-original/img/2018/02/24/22/29/39/67445994_p0.jpg\r\nTraceback (most recent call last):\r\n  File \"PixivUtil2.py\", line 674, in process_image\r\n    filename = PixivHelper.makeFilename(filename_format, image, tagsSeparator=__config__.tagsSeparator, tagsLimit=__config__.tagsLimit, fileUrl=url, bookmark=bookmark, searchTags=search_tags)\r\n  File \"/home/user/Documents/PixivUtil2-master/PixivHelper.py\", line 149, in makeFilename\r\n    nameFormat = nameFormat.replace('%member_token%', artistInfo.artistToken)\r\nTypeError: coercing to Unicode: need string or buffer, NoneType found\r\nError at process_image(): (<type 'exceptions.TypeError'>, TypeError('coercing to Unicode: need string or buffer, NoneType found',), <traceback object at 0x7fc804113b90>) \r\nDumping html to: Error medium page for image 67445994.html \r\nTraceback (most recent call last):\r\n  File \"PixivUtil2.py\", line 1913, in main\r\n    np_is_valid, op_is_valid, selection = main_loop(ewd, mode, op_is_valid, selection, np_is_valid, args)\r\n  File \"PixivUtil2.py\", line 1684, in main_loop\r\n    menu_download_by_image_id(mode, op_is_valid, args)\r\n  File \"PixivUtil2.py\", line 1361, in menu_download_by_image_id\r\n    process_image(mode, None, int(image_id))\r\n  File \"PixivUtil2.py\", line 674, in process_image\r\n    filename = PixivHelper.makeFilename(filename_format, image, tagsSeparator=__config__.tagsSeparator, tagsLimit=__config__.tagsLimit, fileUrl=url, bookmark=bookmark, searchTags=search_tags)\r\n  File \"/home/user/Documents/PixivUtil2-master/PixivHelper.py\", line 149, in makeFilename\r\n    nameFormat = nameFormat.replace('%member_token%', artistInfo.artistToken)\r\nTypeError: coercing to Unicode: need string or buffer, NoneType found\r\npress enter to exit.\r\n\r\nI tried to download some images today(about one and a half week spent from last use, which had worked properly) but faced this error. I just commented out\r\n    **nameFormat = nameFormat.replace('%member_token%', artistInfo.artistToken)** \r\npart from PixivHelper.py, and than same error occured from \r\n    **nameFormat.replace('%original_member_token%',imageInfo.originalArtist.artistToken)**\r\npart. So I commented out all codes doing something about member_token(3 lines in total), which finally led my download succeed.\r\n\r\nI don't know why such an error occurs suddenly, maybe my python got some problems. However I just wanted to notice you and some other guy who may suffer from similar problem about my experience. "}}
{"actor":{"display_login":"hm8940"}}