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

Pluralsight Course video file name becomes too long and can't download anymore #12506

Closed
ghost opened this issue Mar 20, 2017 · 0 comments
Closed

Comments

@ghost
Copy link

@ghost ghost commented Mar 20, 2017


  • I've verified and I assure that I'm running youtube-dl 2017.03.20

Before submitting an issue make sure you have:

  • At least skimmed through README and most notably FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', '-o', 'C:\\Users\\xxx\\Downloads\\Pluralsight.com\\%(playlist)s/%(chapter_number)s - %(chapter)s/%(playlist_index)s - %(title)s.%(ext)s', '--sleep-interval', '31', '--rate-limit', '900k', '-u', 'PRIVATE', '-p', 'PRIVATE', 'https://www.pluralsight.com/courses/persuasive-imagery-through-photo-manipulation-photoshop-1569']
[debug] Encodings: locale cp1256, fs mbcs, out cp1256, pref cp1256
[debug] youtube-dl version 2017.03.20
[debug] Python version 3.4.4 - Windows-10-10.0.14393
[debug] exe versions: none
[debug] Proxy map: {}
[pluralsight:course] persuasive-imagery-through-photo-manipulation-photoshop-1569: Downloading course JSON
[download] Downloading playlist: Creating Persuasive Imagery Through Photo-manipulation in Photoshop
[pluralsight:course] playlist Creating Persuasive Imagery Through Photo-manipulation in Photoshop: Collected 16 video ids (downloading 16 of them)
[download] Downloading video 1 of 16
[pluralsight] Downloading login page
[pluralsight] Logging in as ha-da99
[pluralsight] persuasive-imagery-through-photo-manipulation-photoshop-1569-m1-0: Downloading JSON metadata
[pluralsight] persuasive-imagery-through-photo-manipulation-photoshop-1569-m1-0: Downloading mp4-high-widescreen viewclip JSON
[pluralsight] persuasive-imagery-through-photo-manipulation-photoshop-1569-m1-0: Waiting for 5 seconds to avoid throttling
[debug] Invoking downloader on 'http://vid20.pluralsight.com/clip-videos/kurt-jones/persuasive-imagery-through-photo-manipulation-photoshop-1569-m1/persuasive-imagery-1569-m1-1-hq/1280x720mp4/20150512135214.mp4?ZDnRG3jetNKkoL6wGeI36kVv5116D9MGoayTtsBNRMC5WxclLQoXi3A9GYXdSD68d4beZz3g-FIemHwoLEc-VspVuTVJ01UB5R_wO1MxMnaIldHFwijRI_HASxXCyvL8Y4PCPfMphER3Ek7eNwJlTZAG5dKcbA1YRgppFU6Gb6sHMgXxKfuGaOeywlB-FMbDGaeJPzSkscfcm5wMhNK5ZBT3k6y4qGNxju0WnCQlp5FL0yMaMsmnydX2bgG53faNQEfsMz8FiK-ZZZTv6mqVDgYHBV0'
[download] C:\Users\xxx\Downloads\Pluralsight.com\Creating Persuasive Imagery Through Photo-manipulation in Photoshop\1 - Introduction and Project Overview\01 - Introduction and Project Overview - Introduction and Project Overview.mp4 has already been downloaded

[download] 100% of 6.41MiB
[download] Downloading video 2 of 16
[pluralsight] persuasive-imagery-through-photo-manipulation-photoshop-1569-m2-0: Downloading JSON metadata
[pluralsight] persuasive-imagery-through-photo-manipulation-photoshop-1569-m2-0: Downloading mp4-high-widescreen viewclip JSON
[pluralsight] persuasive-imagery-through-photo-manipulation-photoshop-1569-m2-0: Waiting for 4 seconds to avoid throttling
[debug] Invoking downloader on 'http://vid20.pluralsight.com/clip-videos/kurt-jones/persuasive-imagery-through-photo-manipulation-photoshop-1569-m2/persuasive-imagery-1569-m2-2-hq/1280x720mp4/20150512135214.mp4?11bdpwyhmPXOD-ZvWMTqPNBa6tialxVJQZ66D9sr5rNsvBtlKPV38t1SO-qkAVrReU3PHAwuss4zKhDP-LFfpbtyHVD2NGBa_vrWPmGrJdS9iJGAqyokLQKPOdaGyAbpAvaFQeaoiHpBIGRl7KY4Ee04ZRxQTLvaSWMfhy5RVcbRvceb1_L25j9pgQxcl5T19E0LsyEBP0OxOfTa_U4FeQRAVQq1pG_Upz1ACWCyGxhh4ZUNSHz8ttBP7Yn74OGDTYxygaRkUqSIgorEGU31WpFLLkc'
[download] Sleeping 31 seconds...

ERROR: unable to open for writing: [Errno 2] No such file or directory: 'C:\\Users\\xxx\\Downloads\\Pluralsight.com\\Creating Persuasive Imagery Through Photo-manipulation in Photoshop\\2 - Creating Persuasive Imagery Through Photo-manipulation in Photoshop\\02 - Creating Persuasive Imagery Through Photo-manipulation in Photoshop - Conceptual Parameters and Visual Ideas.mp4.part'
Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpz9nbl0md\build\youtube_dl\downloader\http.py", line 175, in real_download File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpz9nbl0md\build\youtube_dl\utils.py", line 448, insanitize_open
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\xxx\\Downloads\\Pluralsight.com\\Creating Persuasive Imagery Through Photo-manipulation in Photoshop\\2 - Creating Persuasive Imagery Through Photo-manipulation in Photoshop\\02 - Creating Persuasive Imagery Through Photo-manipulation in Photoshop - Conceptual Parameters and Visual Ideas.mp4.part'

Hallo,

i want to know what is the problem when i download something else i don't get any error,
but know when i try to download some of these courses i get this error and i'am sure it is because of the file name that is generated by youtube-dl, the name of the downloaded videos always contains the name of its chapter then " - " then the title.

Example:

name of the course is : "Creating Persuasive Imagery Through Photomanipulation in Photoshop",
i use "%(playlist)s" to create a folder for it

there are 2 chapters : the second on is : "Creating Persuasive Imagery Through Photomanipulation in Photoshop" (for this course the name is the same as the second chapter)
i use "(chapter_number)s - %(chapter)s" to create a folder for each chapter with their number

then there are the videos : on of them is the second in this course : "Conceptual Parameters and Visual Ideas"
i use "%(playlist_index)s - %(title)s.%(ext)s"

so the output should be :
C:\Users\xxx\Downloads\Pluralsight.com\Creating Persuasive Imagery Through Photomanipulation in Photoshop\2 - Creating Persuasive Imagery Through Photomanipulation in Photoshop\2 - Conceptual Parameters and Visual Ideas.mp4

instead i get this output file:
C:\Users\xxx\Downloads\Pluralsight.com\Creating Persuasive Imagery Through Photomanipulation in Photoshop\2 - Creating Persuasive Imagery Through Photomanipulation in Photoshop\2 - Creating Persuasive Imagery Through Photomanipulation in Photoshop - Conceptual Parameters and Visual Ideas.mp4

see the difference youtube-dl appends the name of the chapter to the title of the video just with
"%(title)s" which makes the file name too long

can anyone help me ?

@dstftw dstftw closed this in 8e5a7c5 Mar 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

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