soraxas / echo360

Commandline tool for automated downloads of echo360 videos hosted by university
https://cs.tinyiu.com/echo360
MIT License
280 stars 53 forks source link

Downloading all lectures in Windows #54

Open Kenan-Kamel opened 2 years ago

Kenan-Kamel commented 2 years ago

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
soraxas commented 2 years ago

Are you re-downloading the same course?

Kenan-Kamel commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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