ytdl-org / youtube-dl

Command-line program to download videos from YouTube.com and other video sites
http://ytdl-org.github.io/youtube-dl/
The Unlicense
131.89k stars 10k forks source link

udemy error #10704

Closed jaan143 closed 8 years ago

jaan143 commented 8 years ago

Please follow the guide below


Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2016.09.19. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.


The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue


If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:

Add -v flag to your command line you run youtube-dl with, copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):

$ youtube-dl -v <your command line>
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-v', u'http://www.youtube.com/watch?v=BaW_jenozKcj']
[debug] Encodings: locale cp1251, fs mbcs, out cp866, pref cp1251
[debug] youtube-dl version 2016.09.19
[debug] Python version 2.7.11 - Windows-2003Server-5.2.3790-SP2
[debug] exe versions: ffmpeg N-75573-g1d0487f, ffprobe N-75573-g1d0487f, rtmpdump 2.4
[debug] Proxy map: {}
...
<end of log>

If the purpose of this issue is a site support request please provide all kinds of example URLs support for which should be included (replace following example URLs by yours):


Description of your issue, suggested solution and other information

i am getting error with udemy course downloading

PS C:\Users\HDNLUF037.WIN-IPDLDV1QL5B> youtube-dl --verbose -u xxx -p xxx -o '~/MyVideos/%(playli st)s/%(chapter_number)s - %(chapter)s/%(title)s.%(ext)s' https://www.udemy.com/coursemarketing1/ [debug] System config: [] [debug] User config: [] [debug] Command-line args: ['--verbose', '-u', 'PRIVATE', '-p', 'PRIVATE', '-o', '~/MyVideos/%(playlist)s/%(chapter_numb er)s - %(chapter)s/%(title)s.%(ext)s', 'https://www.udemy.com/coursemarketing1/'] [debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252 [debug] youtube-dl version 2016.09.19 [debug] Python version 3.4.3 - Windows-2012Server-6.2.9200 [debug] exe versions: none [debug] Proxy map: {} [udemy:course] Downloading login popup [udemy:course] Logging in as xxx [udemy:course] coursemarketing1: Downloading webpage [udemy:course] 912544: Downloading course curriculum [download] Downloading playlist: Online Course Marketing #1: Start Getting More Sales Today [udemy:course] playlist Online Course Marketing #1: Start Getting More Sales Today: Collected 9 video ids (downloading 9 of them) [download] Downloading video 1 of 9 [udemy] Downloading login popup [udemy] 5471890: Downloading webpage [udemy] 5471890: Downloading lecture JSON [udemy] 6463828: Downloading m3u8 information WARNING: "id" field is not a string - forcing string conversion [debug] Invoking downloader on 'https://udemy-adaptive-streaming-prod.udemy.com/912544/6463828/2016-07-25_17-22-43-8285b c3343cfe400cf883f27615fa314/hls/hls_1080_5800/4b20ef13af2408671ba444ad289664f8.m3u8?mign=EEsICBhKCVJee1NbH0wUJQU2CBUZDRF ZWX1UXwFZQXBcX1BeGQFUDTc9GhtWTEliGBweIxkJXQoOLBAfEUJRIRgaGQgrAVdBUn9XXQBWQXhHSwkPERpsCgxrWVoCWkF0U1pMUFYLXBYaOgY0WgpRelJ YTklAXE4%3D' [hlsnative] Downloading m3u8 manifest [hlsnative] Total fragments: 15 [download] Destination: C:\Users\HDNLUF037.WIN-IPDLDV1QL5B\MyVideos\Online Course Marketing #1 - Start Getting More Sale s Today\1 - Course Introduction & Course Benefits - How I Will Help You Market Your Courses!\Introduction - Start Gettin g More Premium Enrollments To Your Online Course Today.mp4 ERROR: unable to download video data: [Errno 2] No such file or directory: 'C:\Users\HDNLUF037.WIN-IPDLDV1QL5B\MyVide os\Online Course Marketing #1 - Start Getting More Sales Today\1 - Course Introduction & Course Benefits - How I Will Help You Market Your Courses!\Introduction - Start Getting More Premium Enrollments To Your Online Course Today.mp4.par t' Traceback (most recent call last): File "C:\Python34\lib\site-packages\youtube_dl\YoutubeDL.py", line 1699, in process_info success = dl(filename, info_dict) File "C:\Python34\lib\site-packages\youtube_dl\YoutubeDL.py", line 1641, in dl return fd.download(name, info) File "C:\Python34\lib\site-packages\youtube_dl\downloader\common.py", line 354, in download return self.real_download(filename, info_dict) File "C:\Python34\lib\site-packages\youtube_dl\downloader\hls.py", line 85, in real_download self._prepare_and_start_frag_download(ctx) File "C:\Python34\lib\site-packages\youtube_dl\downloader\fragment.py", line 41, in _prepare_and_start_frag_download self._prepare_frag_download(ctx) File "C:\Python34\lib\site-packages\youtube_dl\downloader\fragment.py", line 63, in _prepare_frag_download dest_stream, tmpfilename = sanitize_open(tmpfilename, 'wb') File "C:\Python34\lib\site-packages\youtube_dl\utils.py", line 418, in sanitize_open stream = open(encodeFilename(filename), open_mode) FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\HDNLUF037.WIN-IPDLDV1QL5B\MyVideos\Online Course M arketing #1 - Start Getting More Sales Today\1 - Course Introduction & Course Benefits - How I Will Help You Market You r Courses!\Introduction - Start Getting More Premium Enrollments To Your Online Course Today.mp4.part'

PS C:\Users\HDNLUF037.WIN-IPDLDV1QL5B>

jaan143 commented 8 years ago

hello i figure out when i use this command then i got error youtube-dl --verbose -u xxx -p xxx -o '~/MyVideos/%(playlist)s/%(chapter_number)s - %(chapter)s/%(title)s.%(ext)s' https://www.udemy.com/coursemarketing1/

but when i am using this command then its working fine youtube-dl --verbose -u xxx -p xxx https://www.udemy.com/coursemarketing1/

but with second command all videos not saving in section folders

dstftw commented 8 years ago

C:\Users\HDNLUF037.WIN-IPDLDV1QL5B\MyVideos\Online Course Marketing #1 - Start Getting More Sales Today\1 - Course Introduction & Course Benefits - How I Will Help You Market Your Courses!\Introduction - Start Getting More Premium Enrollments To Your Online Course Today.mp4.part exceeds ~260 characters limit.

jaan143 commented 8 years ago

then how can i short lecture names or any command which is auto short lecture names if its exceeds limit ?

dstftw commented 8 years ago

Skip some placeholders in output template or use \\?\ prefix to workaround the limit.