stanford-dl icon indicating copy to clipboard operation
stanford-dl copied to clipboard

Adding show-urls argument to display just the URLs

Open koldbyte opened this issue 7 years ago • 2 comments

Added a new boolean argument --show-urls with default value false.

When set to true, it will display the URLs only and not start any downloads.

This will be very helpful when anybody wants to download through a download manager.

koldbyte avatar Jan 28 '18 14:01 koldbyte

Hey. Instead of adding the if condition inside the loop, can you just shift it to line 167 after the URL has been determined? You can just place the condition after the line

courseURL := courseBaseURL + *courseName

coderick14 avatar Jan 28 '18 17:01 coderick14

This will print the course URLs not the actual download links.

A better position could be just before the Line: 217 after which bars and WaitGroup has been initialised. I need to print the baseURL + paths[i] so I will have to add a loop again.

koldbyte avatar Jan 28 '18 17:01 koldbyte