{"action":"created","issue":{"url":"https://api.github.com/repos/nishad/udemy-dl/issues/91","repository_url":"https://api.github.com/repos/nishad/udemy-dl","labels_url":"https://api.github.com/repos/nishad/udemy-dl/issues/91/labels{/name}","comments_url":"https://api.github.com/repos/nishad/udemy-dl/issues/91/comments","events_url":"https://api.github.com/repos/nishad/udemy-dl/issues/91/events","html_url":"https://github.com/nishad/udemy-dl/issues/91","id":147221621,"number":91,"title":"[BUG] TypeError trying to download","user":{"login":"mahdi87gh","id":4113297,"avatar_url":"https://avatars.githubusercontent.com/u/4113297?v=3","gravatar_id":"","url":"https://api.github.com/users/mahdi87gh","html_url":"https://github.com/mahdi87gh","followers_url":"https://api.github.com/users/mahdi87gh/followers","following_url":"https://api.github.com/users/mahdi87gh/following{/other_user}","gists_url":"https://api.github.com/users/mahdi87gh/gists{/gist_id}","starred_url":"https://api.github.com/users/mahdi87gh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mahdi87gh/subscriptions","organizations_url":"https://api.github.com/users/mahdi87gh/orgs","repos_url":"https://api.github.com/users/mahdi87gh/repos","events_url":"https://api.github.com/users/mahdi87gh/events{/privacy}","received_events_url":"https://api.github.com/users/mahdi87gh/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-04-10T12:34:04Z","updated_at":"2016-05-17T11:27:08Z","closed_at":"2016-04-10T13:09:17Z","body":"Please prefix your issue with one of the following: **[BUG]** **[PROPOSAL]** **[QUESTION]**.\r\n\r\n**In raising this issue, I confirm the following (please check boxes):**\r\n\r\n- [x] I have read and understood the [contributors guide](https://github.com/nishad/udemy-dl/blob/master/.github/CONTRIBUTING.md).\r\n- [x] I have checked that the bug-fix I am reporting can be replicated, or that the feature I am suggesting isn't already present.\r\n- [x] I have checked that the issue I'm posting isn't already reported.\r\n- [x] I have checked that the issue I'm porting isn't already solved and no duplicates exist in [closed issues](https://github.com/nishad/udemy-dl/issues?q=is%3Aissue+is%3Aclosed) and in [opened issues](https://github.com/nishad/udemy-dl/issues)\r\n- [x] I have checked the pull requests tab for existing solutions/implementations to my issue/suggestion.\r\n\r\n**My familiarity with the project is as follows (check one):**\r\n\r\n- [ ] I have never used the project.\r\n- [x] I have used the project briefly.\r\n- [ ] I have used the project extensively, but have not contributed previously.\r\n- [ ] I am an active contributor to the project.\r\n\r\n**If the project maintainer has any additional requirements, they will be listed here.**\r\n\r\n- No additional requirements.\r\n\r\n---\r\n\r\nHi,\r\nI just downloaded the tool and watched several youtube videos. After typing email and password I get this error:\r\n\r\n```\r\nTraceback (most recent call last):\r\nFile \"C:\\Users\\mahdi.ghorbanpour\\AppData\\Local\\Programs\\Python\\Python35-32\\lib\\runpy.py\", line 170, in run_module_as_main\r\n\"__main_\", mod_spec)\r\nFile \"C:\\Users\\mahdi.ghorbanpour\\AppData\\Local\\Programs\\Python\\Python35-32\\lib\\runpy.py\", line 85, in run_code\r\nexec(code, run_globals)\r\nFile \"C:\\Users\\mahdi.ghorbanpour\\AppData\\Local\\Programs\\Python\\Python35-32\\lib\\site-packages\\udemy_dl__main_.py\", line 5, in \r\nmain()\r\nFile \"C:\\Users\\mahdi.ghorbanpour\\AppData\\Local\\Programs\\Python\\Python35-32\\lib\\site-packages\\udemy_dl\\udemy_dl.py\", line 289, in main\r\nudemy_dl(username, password, link, lecture_start, lecture_end, output_dir, save_links)\r\nFile \"C:\\Users\\mahdi.ghorbanpour\\AppData\\Local\\Programs\\Python\\Python35-32\\lib\\site-packages\\udemy_dl\\udemy_dl.py\", line 209, in udemy_dl\r\nfor video in get_video_links(course_id, lecture_start, lecture_end):\r\nFile \"C:\\Users\\mahdi.ghorbanpour\\AppData\\Local\\Programs\\Python\\Python35-32\\lib\\site-packages\\udemy_dl\\udemy_dl.py\", line 135, in get_video_links\r\nif item['__class'] == 'chapter':\r\nTypeError: string indices must be integers\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/nishad/udemy-dl/issues/comments/219690735","html_url":"https://github.com/nishad/udemy-dl/issues/91#issuecomment-219690735","issue_url":"https://api.github.com/repos/nishad/udemy-dl/issues/91","id":219690735,"user":{"login":"morriesmena","id":19407560,"avatar_url":"https://avatars.githubusercontent.com/u/19407560?v=3","gravatar_id":"","url":"https://api.github.com/users/morriesmena","html_url":"https://github.com/morriesmena","followers_url":"https://api.github.com/users/morriesmena/followers","following_url":"https://api.github.com/users/morriesmena/following{/other_user}","gists_url":"https://api.github.com/users/morriesmena/gists{/gist_id}","starred_url":"https://api.github.com/users/morriesmena/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/morriesmena/subscriptions","organizations_url":"https://api.github.com/users/morriesmena/orgs","repos_url":"https://api.github.com/users/morriesmena/repos","events_url":"https://api.github.com/users/morriesmena/events{/privacy}","received_events_url":"https://api.github.com/users/morriesmena/received_events","type":"User","site_admin":false},"created_at":"2016-05-17T11:27:08Z","updated_at":"2016-05-17T11:27:08Z","body":"Hello I am trying to download this a course, but i have this error, Iam already updated and y aleady paid for it, I dowloaded athers of my courses but the error is just with this one:\r\n\r\nTraceback (most recent call last):\r\n  File \"C:\\Users\\Mauricio\\AppData\\Local\\Programs\\Python\\Python35-32\\lib\\site-packages\\udemy_dl\\download.py\", line 38, in download\r\n    aria2c_dl(link, filename)\r\n  File \"C:\\Users\\Mauricio\\AppData\\Local\\Programs\\Python\\Python35-32\\lib\\site-packages\\udemy_dl\\download.py\", line 86, in aria2c_dl\r\n    subprocess.call(command)\r\n  File \"C:\\Users\\Mauricio\\AppData\\Local\\Programs\\Python\\Python35-32\\lib\\subprocess.py\", line 560, in call\r\n    with Popen(*popenargs, **kwargs) as p:\r\n  File \"C:\\Users\\Mauricio\\AppData\\Local\\Programs\\Python\\Python35-32\\lib\\subprocess.py\", line 950, in __init__\r\n    restore_signals, start_new_session)\r\n  File \"C:\\Users\\Mauricio\\AppData\\Local\\Programs\\Python\\Python35-32\\lib\\subprocess.py\", line 1220, in _execute_child\r\n    startupinfo)\r\nFileNotFoundError: [WinError 2] El sistema no puede encontrar el archivo especificado\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"C:\\Users\\Mauricio\\AppData\\Local\\Programs\\Python\\Python35-32\\lib\\runpy.py\", line 170, in _run_module_as_main\r\n    \"__main__\", mod_spec)\r\n  File \"C:\\Users\\Mauricio\\AppData\\Local\\Programs\\Python\\Python35-32\\lib\\runpy.py\", line 85, in _run_code\r\n    exec(code, run_globals)\r\n  File \"C:\\Users\\Mauricio\\AppData\\Local\\Programs\\Python\\Python35-32\\lib\\site-packages\\udemy_dl\\__main__.py\", line 8, in <module>\r\n    main()\r\n  File \"C:\\Users\\Mauricio\\AppData\\Local\\Programs\\Python\\Python35-32\\lib\\site-packages\\udemy_dl\\udemy_dl.py\", line 837, in main\r\n    udemy_dl(username, password, link, lecture_start, lecture_end, save_links, safe_file_names, just_list, output_dest)\r\n  File \"C:\\Users\\Mauricio\\AppData\\Local\\Programs\\Python\\Python35-32\\lib\\site-packages\\udemy_dl\\udemy_dl.py\", line 706, in udemy_dl\r\n    get_data(directory, filename, data_url, data_type, attached_info, caption_list)\r\n  File \"C:\\Users\\Mauricio\\AppData\\Local\\Programs\\Python\\Python35-32\\lib\\site-packages\\udemy_dl\\udemy_dl.py\", line 624, in get_data\r\n    get_attached_file(file_dir, attached_info)\r\n  File \"C:\\Users\\Mauricio\\AppData\\Local\\Programs\\Python\\Python35-32\\lib\\site-packages\\udemy_dl\\udemy_dl.py\", line 525, in get_attached_file\r\n    check_downloaded(element['file'], dest_dir, downloader)\r\n  File \"C:\\Users\\Mauricio\\AppData\\Local\\Programs\\Python\\Python35-32\\lib\\site-packages\\udemy_dl\\udemy_dl.py\", line 582, in check_downloaded\r\n    download_status = download(link, tmp_file, update_progress, downloader_name)\r\n  File \"C:\\Users\\Mauricio\\AppData\\Local\\Programs\\Python\\Python35-32\\lib\\site-packages\\udemy_dl\\download.py\", line 52, in download\r\n    urlopen_dl(link, filename, update_progress)\r\n  File \"C:\\Users\\Mauricio\\AppData\\Local\\Programs\\Python\\Python35-32\\lib\\site-packages\\udemy_dl\\download.py\", line 115, in urlopen_dl\r\n    with open(filename, 'wb') as file:\r\nFileNotFoundError: [Errno 2] No such file or directory: '.\\\\attached_files\\\\021 Operadores de Comparación mayor que menor que...\\\\Ejercicio-6-2.pdf.tmp'\r\n\r\n"}}