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

Downloading all lectures in Windows #54

Open
Kenan-Kamel opened this issue Dec 20, 2021 · 4 comments
Open

Downloading all lectures in Windows #54

Kenan-Kamel opened this issue Dec 20, 2021 · 4 comments

Comments

@Kenan-Kamel
Copy link

When I try to download the entire lecture for a given course, I receive the following errors

Traceback (most recent call last):
  File "echo360.py", line 7, in <module>
    sys.exit(main())
  File "C:\Users\Super\Desktop\echo360-master (1)\echo360-master\echo360\main.py", line 365, in main
    downloader.download_all()
  File "C:\Users\Super\Desktop\echo360-master (1)\echo360-master\echo360\downloader.py", line 259, in download_all
    if video.download(self._output_dir, filename):
  File "C:\Users\Super\Desktop\echo360-master (1)\echo360-master\echo360\videos.py", line 291, in download
    result = self.download_single(
  File "C:\Users\Super\Desktop\echo360-master (1)\echo360-master\echo360\videos.py", line 332, in download_single
    audio_file = self._download_url_to_dir(
  File "C:\Users\Super\Desktop\echo360-master (1)\echo360-master\echo360\videos.py", line 167, in _download_url_to_dir
    os.rename(os.path.join(echo360_downloader.result_file_name), result_full_path)
FileExistsError: [WinError 183] Cannot create a file when that file already exists: 'default_out_path\\[[UNTITLED]]\\s0q1_all.m4s' -> 'default_out_path\\[[UNTITLED]]\\2021-12-02 - Lecture 56 [CS 342-37162]_audio.m4s

Even after changing the output file to a different file, I still face the same issue.
The line that I run are :

python echo360.py URL --output FILENAME
@Kenan-Kamel Kenan-Kamel changed the title Downgliding all lectures in Windows Downloading all lectures in Windows Dec 20, 2021
@soraxas
Copy link
Owner

soraxas commented Dec 20, 2021

Are you re-downloading the same course?

@Kenan-Kamel
Copy link
Author

No, when I tried to download a course, the scripts stopped and the folder where the output was empty, so I tried a few times, but will no results.

@soraxas
Copy link
Owner

soraxas commented Dec 20, 2021

No, when I tried to download a course, the scripts stopped and the folder where the output was empty, so I tried a few times, but will no results.

What does stopped mean? Did it finish successfully but without output? Did it hang? Did it spit out error messages (and if it did what does it says)?

@Kenan-Kamel
Copy link
Author

It means it just stopped with a list of errors and no output

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants