Skip to content
This repository has been archived by the owner on Aug 1, 2021. It is now read-only.

Commit

Permalink
fixed issue #315
Browse files Browse the repository at this point in the history
  • Loading branch information
r0oth3x49 committed Dec 9, 2018
1 parent 953ccb7 commit f5623f1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion udemy-dl.py
Expand Up @@ -945,6 +945,9 @@ def main():
help="Download course but skip captions/subtitle.")

options = parser.parse_args()
if options.names_only:
options.save = True

if options.cookies:
f_in = open(options.cookies)
cookies = '\n'.join([line for line in (l.strip() for l in f_in) if line])
Expand Down Expand Up @@ -1098,7 +1101,6 @@ def main():

udemy.course_download(path=options.output, quality=options.quality, unsafe=options.unsafe)


if not options.cookies:
if not options.username and not options.password:
username = fc + sd + "[" + fm + sb + "*" + fc + sd + "] : " + fg + sd + "Username : " + fg + sb
Expand Down

0 comments on commit f5623f1

Please sign in to comment.