{"action":"created","issue":{"url":"https://api.github.com/repos/pyload/pyload/issues/2239","labels_url":"https://api.github.com/repos/pyload/pyload/issues/2239/labels{/name}","comments_url":"https://api.github.com/repos/pyload/pyload/issues/2239/comments","events_url":"https://api.github.com/repos/pyload/pyload/issues/2239/events","html_url":"https://github.com/pyload/pyload/issues/2239","id":124336389,"number":2239,"title":"Amelioration of misc.py ???","user":{"login":"Cseb87","id":16488213,"avatar_url":"https://avatars.githubusercontent.com/u/16488213?v=3","gravatar_id":"","url":"https://api.github.com/users/Cseb87","html_url":"https://github.com/Cseb87","followers_url":"https://api.github.com/users/Cseb87/followers","following_url":"https://api.github.com/users/Cseb87/following{/other_user}","gists_url":"https://api.github.com/users/Cseb87/gists{/gist_id}","starred_url":"https://api.github.com/users/Cseb87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cseb87/subscriptions","organizations_url":"https://api.github.com/users/Cseb87/orgs","repos_url":"https://api.github.com/users/Cseb87/repos","events_url":"https://api.github.com/users/Cseb87/events{/privacy}","received_events_url":"https://api.github.com/users/Cseb87/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-30T11:26:49Z","updated_at":"2015-12-30T12:27:23Z","closed_at":null,"body":"Hello\r\nHere is my problem\r\nAfter updating today (by downloading the zip on github)\r\nI have a problem with download folder\r\n\r\n[Errno 2] No such file or directory: '/volume1/.@plugins/AppCentral/pyload/config/volume1/.@plugins/AppCentral/pyload/config/volume1/Mes Documents / Download / stable.zip.chunk0'\r\n\r\n/volume1/.@plugins/AppCentral/pyload/config/\r\nand the config folder\r\n\r\n/volume1/Mes Documents/Download/\r\nand the download folder\r\n\r\nOr both address is added\r\n\r\nWhile the address must be:\r\n/volume1/Mes Documents/Download/stable.zip.chunk0\r\n\r\nI try to fix by deleting lines 468 to 490 to test the misc.py (module / plugins / internal)\r\nI can download but not in the correct folder\r\nBut the knowledges stops\r\n\r\nThis application may be an improvement in the safepath (value) in the misc.py?\r\n\r\nI use pyLoad nas server on AS6202T ASUSTOR\r\nI can test things if needs\r\nThank you\r\n\r\nsorry for my english I am french"},"comment":{"url":"https://api.github.com/repos/pyload/pyload/issues/comments/167989595","html_url":"https://github.com/pyload/pyload/issues/2239#issuecomment-167989595","issue_url":"https://api.github.com/repos/pyload/pyload/issues/2239","id":167989595,"user":{"login":"Cseb87","id":16488213,"avatar_url":"https://avatars.githubusercontent.com/u/16488213?v=3","gravatar_id":"","url":"https://api.github.com/users/Cseb87","html_url":"https://github.com/Cseb87","followers_url":"https://api.github.com/users/Cseb87/followers","following_url":"https://api.github.com/users/Cseb87/following{/other_user}","gists_url":"https://api.github.com/users/Cseb87/gists{/gist_id}","starred_url":"https://api.github.com/users/Cseb87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cseb87/subscriptions","organizations_url":"https://api.github.com/users/Cseb87/orgs","repos_url":"https://api.github.com/users/Cseb87/repos","events_url":"https://api.github.com/users/Cseb87/events{/privacy}","received_events_url":"https://api.github.com/users/Cseb87/received_events","type":"User","site_admin":false},"created_at":"2015-12-30T12:27:23Z","updated_at":"2015-12-30T12:27:23Z","body":"I found a solution but it is not valid for everyone I think\r\nhere's what I did\r\n\r\ndef safepath(value):\r\n    \"\"\"\r\n    Remove invalid characters and truncate the path if needed\r\n    \"\"\"\r\n    drive, filename = os.path.splitdrive(value)\r\n    path = os.path.abspath(filename)\r\n    return path"}}