Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to download pluralsight video with subtitle from playlist? #9681

Closed
Kriptonium opened this issue Jun 3, 2016 · 31 comments
Closed

How to download pluralsight video with subtitle from playlist? #9681

Kriptonium opened this issue Jun 3, 2016 · 31 comments
Labels

Comments

@Kriptonium
Copy link

@Kriptonium Kriptonium commented Jun 3, 2016

What is the purpose of your issue?

  • Feature request (request for a new functionality)
  • Question

Hi there! Great work and thank you youtube-dl developer. May I ask, Can I download video from pluralsight with subtitle ?

$ youtube-dl --version
2016.05.16

I able to grab video via playlist:
$ youtube-dl --username user@email.com --password password --list-subs "https://app.pluralsight.com/library/courses/play-by-play-laravel-5-getting-started"

It tried with --embed-subsand --write-sub parameter but no subtitle was found.

@dstftw dstftw added the subtitles label Jun 3, 2016
@jhuyvu
Copy link

@jhuyvu jhuyvu commented Jun 4, 2016

I have same problem with download video subtitles from Pluralsight.

@Kriptonium
Copy link
Author

@Kriptonium Kriptonium commented Jun 5, 2016

@0x25101994 does mean you can download subtitle before then?

@jhuyvu
Copy link

@jhuyvu jhuyvu commented Jun 5, 2016

I have just try it yesterday, but it's can't download subtitle.

@jmvtrinidad
Copy link

@jmvtrinidad jmvtrinidad commented Jun 23, 2016

Its seems the code for Pluralsight is not getting the substitles.
Please update.

@hlrd93
Copy link

@hlrd93 hlrd93 commented Aug 9, 2016

I have the same issue!

@jmvtrinidad
Copy link

@jmvtrinidad jmvtrinidad commented Aug 17, 2016

Hope someone here found this helpful.
I use this snippet to extract srt content.

var subtitleAsSRT = o.map(function(sub, i) {
    function time(ms) {
       return new Date(ms).toISOString().slice(11, -1).replace('.',',');
    }
    var nextIndex = i + 1 == o.length ? o.length - 1 : i + 1;
    return (i + 1) + "\r\n" + time(sub.displayTimeOffset* 1000) + " --> " + time(o[nextIndex ].time * 1000) + "\r\n" + sub.text;
}).join("\r\n\r\n");

Where o is the caption key in json file.
subtitleAsSRT contains the srt content.

@lrushl
Copy link

@lrushl lrushl commented Aug 23, 2016

@jmvtrinidad, thank you for the nice and useful snippet.

I would like to note that original snipped contains a small typo (there should be 'time(o[nextIndex ].displayTimeOffset * 1000)' instead of 'time(o[nextIndex ].time * 1000)').

Please find updated code here

@dstftw dstftw closed this in 8c3e35d Aug 24, 2016
@jmvtrinidad
Copy link

@jmvtrinidad jmvtrinidad commented Aug 24, 2016

Hi @dstftw, Is this included in current exe for windows? Thanks

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Aug 24, 2016

Not included.

@jmvtrinidad
Copy link

@jmvtrinidad jmvtrinidad commented Aug 24, 2016

Thanks, will wait for exe update.

@Kriptonium
Copy link
Author

@Kriptonium Kriptonium commented Aug 24, 2016

I be waiting for exe update too!

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Aug 24, 2016

Here you go then.

@wkk5
Copy link

@wkk5 wkk5 commented Sep 3, 2016

Is there a way to only download the subtitles without doing the videos? If so, would someone mind sharing the method for doing so with the exe? Thanks!

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Sep 3, 2016

@wkk5 --skip-download.

@wkk5
Copy link

@wkk5 wkk5 commented Sep 3, 2016

@dstftw Thx!

@hossameldinmi
Copy link

@hossameldinmi hossameldinmi commented Dec 4, 2016

how can i do that?

@Rainyroad
Copy link

@Rainyroad Rainyroad commented Feb 8, 2017

@HossamEldinMahmoud

OK bro.
Go and download youtube-dl.exe
Now use CMD and go to a folder that contains youtube-dl.exe file.
Just Copy one of the below lines in CMD!

• If you want to download video+subtitle, use this code and replace XXXX with your video's URL :

youtube-dl --username Username --password password all-subs "XXXX"

• If you want to download subtitles only, use this code and replace XXXX with your video's URL :

youtube-dl --username Username --password password all-subs "XXXX" --skip-download

Note : In both condition, you must enter your pluralsight's Username & Password instead of Bolded words!

Any question? No problem, You have me! 💃

@PhanDuc
Copy link

@PhanDuc PhanDuc commented Mar 10, 2017

Hi,
My friend use idm to download pluralsight video but pluralsight block his account.
Did i get block if i used youtube-dl to download video from pluralsight ?
Many thanks !

@Rainyroad
Copy link

@Rainyroad Rainyroad commented Mar 14, 2017

@PhanDuc
Yeah, you can download pluralsight courses using yt-dl easily without any problem. Personally I have downloaded over 15 javascript courses since 2 month ago and I sure that you have no problem.

@hailuavitinh
Copy link

@hailuavitinh hailuavitinh commented Mar 31, 2017

Hi @Rainyroad ,

I use your guide, but I don't see any file . please see my image

cap yt

@hossameldinmi
Copy link

@hossameldinmi hossameldinmi commented Apr 29, 2017

@Rainyroad I have tried this, but it gave me

ERROR: 'all-subs' is not a valid URL. Set --default-search "ytsearch" (or run youtube-dl "ytsearch:all-subs" ) to search YouTube

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Apr 29, 2017

There's an option --all-subs. I guess it's a typo.

@rubgithub
Copy link

@rubgithub rubgithub commented May 3, 2017

How to change subtitle language?

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented May 3, 2017

@rubgithub --list-subs and --sub-lang are useful here

@rubgithub
Copy link

@rubgithub rubgithub commented May 3, 2017

@yan12125 Fist option --list-subs

Language formats
en srt, json
[download]

What does this mean? Only english avaiable?

After download no files in default folder of yddl
[download] Finished downloading playlist: xxx

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented May 3, 2017

Only english avaiable?

Yep. If there are more languages but youtube-dl miss them, feel free to open a new issue for that. Don't forget to attach an example URL.

@hossameldinmi
Copy link

@hossameldinmi hossameldinmi commented Sep 18, 2017

@Rainyroad I did these steps and finally should download it, but I couldn't find the files in the directory
screenshot 2

@bitsnaps
Copy link

@bitsnaps bitsnaps commented Sep 20, 2017

@HossamEldinMahmoud to actually download subs files use --all-subs because --list-subs will only list (show) them in console. --all-subs works with me (v2017.09.15).

@hossameldinmi
Copy link

@hossameldinmi hossameldinmi commented Sep 21, 2017

@bitsnaps @Rainyroad Thanks, it works,
but another message that appeared after many downloads

WARNING: Unable to download captions JSON: HTTP Error 429: Too Many Requests

How to resume the downloads?

@bitsnaps
Copy link

@bitsnaps bitsnaps commented Sep 21, 2017

@hossameldinmi looks like you're using multiple account from the same machine, or you're viewing videos and downloading meanwhile, there are some restrictions from such usage. No idea how to resume downloads, I'm not sure even if downloads are resumable! you may need to include " --sleep-interval 10" to mimic video watching.

@Perinban
Copy link

@Perinban Perinban commented Jan 16, 2018

@Rainyroad Can we download all the subs at one time?

@ytdl-org ytdl-org deleted a comment from mshwf Apr 28, 2018
@ytdl-org ytdl-org locked as resolved and limited conversation to collaborators Apr 28, 2018
@ytdl-org ytdl-org deleted a comment from dhiaelhak47 Apr 28, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
16 participants
You can’t perform that action at this time.