{"action":"created","issue":{"url":"https://api.github.com/repos/cadejscroggins/omgcatz/issues/26","labels_url":"https://api.github.com/repos/cadejscroggins/omgcatz/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/cadejscroggins/omgcatz/issues/26/comments","events_url":"https://api.github.com/repos/cadejscroggins/omgcatz/issues/26/events","html_url":"https://github.com/cadejscroggins/omgcatz/issues/26","id":105102378,"number":26,"title":"Zip download","user":{"login":"MimiEsca","id":14128538,"avatar_url":"https://avatars.githubusercontent.com/u/14128538?v=3","gravatar_id":"","url":"https://api.github.com/users/MimiEsca","html_url":"https://github.com/MimiEsca","followers_url":"https://api.github.com/users/MimiEsca/followers","following_url":"https://api.github.com/users/MimiEsca/following{/other_user}","gists_url":"https://api.github.com/users/MimiEsca/gists{/gist_id}","starred_url":"https://api.github.com/users/MimiEsca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MimiEsca/subscriptions","organizations_url":"https://api.github.com/users/MimiEsca/orgs","repos_url":"https://api.github.com/users/MimiEsca/repos","events_url":"https://api.github.com/users/MimiEsca/events{/privacy}","received_events_url":"https://api.github.com/users/MimiEsca/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-06T16:19:05Z","updated_at":"2015-09-22T18:28:37Z","closed_at":null,"body":"Hello!\r\nThe instructions are super easy for someone like me, so I could install it easely enough! Thank you!\r\nBut I have a problem downloading the whole package. If I get the songs one by one, they are downloaded perfectly fine, but when I chose the option of downloading it all, the .zip is 0kb, as if the downloading was a failure.\r\nCould it be my problem, or is it general?\r\nThank you so much anyway."},"comment":{"url":"https://api.github.com/repos/cadejscroggins/omgcatz/issues/comments/142373267","html_url":"https://github.com/cadejscroggins/omgcatz/issues/26#issuecomment-142373267","issue_url":"https://api.github.com/repos/cadejscroggins/omgcatz/issues/26","id":142373267,"user":{"login":"brofar","id":5051187,"avatar_url":"https://avatars.githubusercontent.com/u/5051187?v=3","gravatar_id":"","url":"https://api.github.com/users/brofar","html_url":"https://github.com/brofar","followers_url":"https://api.github.com/users/brofar/followers","following_url":"https://api.github.com/users/brofar/following{/other_user}","gists_url":"https://api.github.com/users/brofar/gists{/gist_id}","starred_url":"https://api.github.com/users/brofar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brofar/subscriptions","organizations_url":"https://api.github.com/users/brofar/orgs","repos_url":"https://api.github.com/users/brofar/repos","events_url":"https://api.github.com/users/brofar/events{/privacy}","received_events_url":"https://api.github.com/users/brofar/received_events","type":"User","site_admin":false},"created_at":"2015-09-22T18:28:37Z","updated_at":"2015-09-22T18:28:37Z","body":"Okay, I've been working at this for like, 2 hours or so and I think I've made some progress.  Note that these are what worked for me.  It may not work for you.\r\n\r\n1. If you haven't already, make sure you launch the vagrant machine with admin privileges. I found that the download.sh script could not create symbolic links without admin privileges.\r\n  a) click start\r\n  b) search for cmd\r\n  c) right click cmd.exe and click \"run as administrator\"\r\n  d) navigate to your omgcatz folder\r\n  e) send the vagrant up command\r\n\r\n2. There was an error in the php code in download.php:\r\na) open app/api/stuff/download/download.php\r\nb) Change echo shell_exec(\"./download.sh \" . json_encode($_POST, JSON_UNESCAPED_SLASHES, JSON_UNESCAPED_UNICODE));\r\n\tto \r\n\techo shell_exec(\"./download.sh \" . json_encode($_POST, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE));\r\n\r\n3. download.sh isn't tagging things properly.  Don't know why but my VM didn't like the \"./\" before all the calls to external programs\r\n  a) open app\\api\\stuff\\download\\download.sh\r\n  b) find/replace all \"./\" with \"\"\r\n\r\n4. code issue in archive.php\r\n  a) open open app\\api\\stuff\\download\\archive.php\r\n  b) change shell_exec(\"cd $path && ../../../find . \\! -name *.zip -exec ../../../zip -0 -D -r $fileName * \\; -delete\");\r\n  to\r\n  shell_exec(\"cd \".$path.\" && find . \\! -name *.zip -exec zip -0 -D -r \".$fileName.\" * \\; -delete\");\r\n\r\n\r\nThese 4 steps solved the issue for me completely and I can download the zip files with everything tagged properly."}}