Open thibautsergent opened 4 years ago
Apparently is a problem either detecting or replacing the video extension. I successfully could download an entire course by doing this:
youtube-dl \ --username YOUR@MAIL.com --password PASSWORD \ -o '%(playlist_title)s/Lesson %(chapter_number)02d - %(chapter)s/%(playlist_index)s - %(title)s.%(ext)s.mp4' --verbose --add-metadata --write-sub --limit-rate 2M --min-sleep-interval 5 --max-sleep-interval 10 \ "https://www.linkedin.com/learning/learning-amazon-web-services-aws-for-developers-2/"
@Telematica
It's solving the files extensions but downloading is still not working :
PS C:\yt> .\youtube-dl.exe --cookie .\cookies.txt -o '%(playlist_title)s/Lesson %(chapter_number)02d - %(chapter)s/%(playlist_index)s - %(title)s.%(ext)s.mp4' --verbose --add-metadata --write-sub --limit-rate 2M --min-sleep-interval 5 --max-sleep-interval 10 "https://www.linkedin.com/learning/l-essentiel-d-ansible/"
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--cookie', '.\\cookies.txt', '-o', '%(playlist_title)s/Lesson %(chapter_number)02d - %(chapter)s/%(playlist_index)s - %(title)s.%(ext)s.mp4', '--verbose', '--add-metadata', '--write-sub', '--limit-rate', '2M', '--min-sleep-interval', '5', '--max-sleep-interval', '10', 'https://www.linkedin.com/learning/l-essentiel-d-ansible/']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2020.11.12
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.19041
[debug] exe versions: ffmpeg 2020-11-14-git-46e362b765-full_build-www.gyan.dev, ffprobe 2020-11-14-git-46e362b765-full_build-www.gyan.dev
[debug] Proxy map: {}
[linkedin:learning:course] Downloading JSON metadata
[download] Downloading playlist: L'essentiel d'Ansible
[linkedin:learning:course] playlist L'essentiel d'Ansible: Collected 38 video ids (downloading 38 of them)
[download] Downloading video 1 of 38
[linkedin:learning] bienvenue-dans-l-essentiel-d-ansible: Downloading 360p JSON metadata
[linkedin:learning] bienvenue-dans-l-essentiel-d-ansible: Downloading 540p JSON metadata
[linkedin:learning] bienvenue-dans-l-essentiel-d-ansible: Downloading 720p JSON metadata
[linkedin:learning] bienvenue-dans-l-essentiel-d-ansible: Downloading m3u8 information
[debug] Default format spec: bestvideo+bestaudio/best
[debug] Invoking downloader on 'https://dms.licdn.com/playlist/C560DAQE0_QsXZsIIZQ/learning-original-video-vbr-720/0?e=1605780000&v=beta&t=Z4iidDiQNg18NG7_RDZmuZFaW6AM2zasPoYGGgYHgTo#.mp4'
[download] L'essentiel d'Ansible\Lesson 01 - Introduction\01 - Bienvenue dans « L'essentiel d'Ansible ».unknown_video.mp4 has already been downloaded
[download] 100% of 7.39MiB
[ffmpeg] Adding metadata to 'L'essentiel d'Ansible\Lesson 01 - Introduction\01 - Bienvenue dans « L'essentiel d'Ansible ».unknown_video.mp4'
[debug] ffmpeg command line: ffmpeg -y -loglevel "repeat+info" -i "file:L'essentiel d'Ansible\Lesson 01 - Introduction\01 - Bienvenue dans « L'essentiel d'Ansible ».unknown_video.mp4" -c copy -metadata "date=19700101" -metadata "title=Bienvenue dans « L'essentiel d'Ansible »" -metadata "purl=https://www.linkedin.com/learning/l-essentiel-d-ansible/bienvenue-dans-l-essentiel-d-ansible" "file:L'essentiel d'Ansible\Lesson 01 - Introduction\01 - Bienvenue dans « L'essentiel d'Ansible ».unknown_video.temp.mp4"
[download] Downloading video 2 of 38
[linkedin:learning] decouvrir-ansible: Downloading 360p JSON metadata
[linkedin:learning] decouvrir-ansible: Downloading 540p JSON metadata
[linkedin:learning] decouvrir-ansible: Downloading 720p JSON metadata
ERROR: No video formats found; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpwrmvn5tt\build\youtube_dl\YoutubeDL.py", line 797, in extract_info
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpwrmvn5tt\build\youtube_dl\extractor\common.py", line 532, in extract
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpwrmvn5tt\build\youtube_dl\extractor\linkedin.py", line 127, in _real_extract
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpwrmvn5tt\build\youtube_dl\extractor\common.py", line 1359, in _sort_formats
Maybe this can help, yt-dl is only able to download free video of courses and not the video tagged as subscribed.
Screenshot of json returned by https://www.linkedin.com/learning-api/courses{...} :
I hit the same problem even with subscriptions. I simply rename it to mp4
.
for /R %x in (*.unknown_video) do ren "%x" *.mp4
Checklist
Verbose log
Description
Downloading recent courses isn't working. The first video of the playlist is downloaded but the others isn't.
For older courses, like the one in the source code is working :
And for both case, the files downloaded successfully isn't properly named :
Files ext should be " .mp4 " instead of " .unknown_video " (files are playable).
Thank you 👍