{"action":"created","issue":{"url":"https://api.github.com/repos/pyload/pyload/issues/1187","labels_url":"https://api.github.com/repos/pyload/pyload/issues/1187/labels{/name}","comments_url":"https://api.github.com/repos/pyload/pyload/issues/1187/comments","events_url":"https://api.github.com/repos/pyload/pyload/issues/1187/events","html_url":"https://github.com/pyload/pyload/issues/1187","id":57882349,"number":1187,"title":"Zippyshare checksum","user":{"login":"gaberad","id":1579155,"avatar_url":"https://avatars.githubusercontent.com/u/1579155?v=3","gravatar_id":"","url":"https://api.github.com/users/gaberad","html_url":"https://github.com/gaberad","followers_url":"https://api.github.com/users/gaberad/followers","following_url":"https://api.github.com/users/gaberad/following{/other_user}","gists_url":"https://api.github.com/users/gaberad/gists{/gist_id}","starred_url":"https://api.github.com/users/gaberad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaberad/subscriptions","organizations_url":"https://api.github.com/users/gaberad/orgs","repos_url":"https://api.github.com/users/gaberad/repos","events_url":"https://api.github.com/users/gaberad/events{/privacy}","received_events_url":"https://api.github.com/users/gaberad/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pyload/pyload/labels/plugin%20enhancement","name":"plugin enhancement","color":"0052cc"},{"url":"https://api.github.com/repos/pyload/pyload/labels/rejected","name":"rejected","color":"000000"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-02-17T04:30:59Z","updated_at":"2015-02-19T13:45:33Z","closed_at":"2015-02-18T23:42:53Z","body":"Looks like zippyshare seem to be changing their checksum on almost a daily basis, so I modified it to go back to using the JSEngine.\r\n\r\nObviously it would be better not to have to use the JSEngine, but if the checksum is constantly being changed then I'm not really sure what other options there are?\r\n\r\nAdded the get_url method and set self.link to its output:\r\n\r\n```\r\n    def handleFree(self, pyfile):\r\n        recaptcha   = ReCaptcha(self)\r\n        captcha_key = recaptcha.detect_key()\r\n\r\n        if captcha_key:\r\n            try:\r\n                self.link = re.search(self.LINK_PREMIUM_PATTERN, self.html)\r\n                recaptcha.challenge()\r\n\r\n            except Exception, e:\r\n                self.error(e)\r\n\r\n        else:\r\n            #self.link = '/'.join((\"d\", self.info['pattern']['KEY'], str(self.get_checksum()), self.pyfile.name))\r\n            self.link = self.get_url()\r\n\r\n    def get_url(self):\r\n        try:\r\n            matches = re.compile(\"<script type=\\\"text/javascript\\\">(.*?)</script>\", re.DOTALL).findall(self.html)\r\n            for match in matches:\r\n                if match.find('dlbutton') != -1:\r\n                    js = match.replace(\"document.getElementById('dlbutton').href\", \"dlbutton\")\r\n                    js = js.replace(\"document.getElementById('fimage').href\", \"fimage\")\r\n                    js = js.replace(\"document.getElementById('fimage')\", \"false\")\r\n                    js = js + \"\\ndlbutton\"\r\n                    result = self.js.eval(js)\r\n                \r\n        except Exception, e:\r\n            self.error(_(\"Unable to get url\"))\r\n\r\n        else:\r\n            return result\r\n```\r\n\r\nProbably a better way to go about it, but it has been working for me so far."},"comment":{"url":"https://api.github.com/repos/pyload/pyload/issues/comments/75053702","html_url":"https://github.com/pyload/pyload/issues/1187#issuecomment-75053702","issue_url":"https://api.github.com/repos/pyload/pyload/issues/1187","id":75053702,"user":{"login":"stickell","id":335415,"avatar_url":"https://avatars.githubusercontent.com/u/335415?v=3","gravatar_id":"","url":"https://api.github.com/users/stickell","html_url":"https://github.com/stickell","followers_url":"https://api.github.com/users/stickell/followers","following_url":"https://api.github.com/users/stickell/following{/other_user}","gists_url":"https://api.github.com/users/stickell/gists{/gist_id}","starred_url":"https://api.github.com/users/stickell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stickell/subscriptions","organizations_url":"https://api.github.com/users/stickell/orgs","repos_url":"https://api.github.com/users/stickell/repos","events_url":"https://api.github.com/users/stickell/events{/privacy}","received_events_url":"https://api.github.com/users/stickell/received_events","type":"User","site_admin":false},"created_at":"2015-02-19T13:45:33Z","updated_at":"2015-02-19T13:45:33Z","body":"See #1191"}}