Closed lizhuoq closed 8 months ago
I apologize for the mistake in my previous modification. The export function in your original code encounters an error when handling audio files stored in Google Drive, as shown below.
SameFileError Traceback (most recent call last)
[<ipython-input-6-b0b35f220bef>](https://localhost:8080/#) in <cell line: 102>()
137 exportTranscriptFile(ext)
138 else:
--> 139 exportTranscriptFile("." + output_format)
2 frames
[/usr/lib/python3.10/shutil.py](https://localhost:8080/#) in copyfile(src, dst, follow_symlinks)
232
233 if _samefile(src, dst):
--> 234 raise SameFileError("{!r} and {!r} are the same file".format(src, dst))
235
236 file_size = 0
SameFileError: PosixPath('/content/Lecture 1 Probability and Counting Statistics 110.srt') and PosixPath('/content/Lecture 1 Probability and Counting Statistics 110.srt') are the same file
Therefore, I made a minor modification to the export function, as reflected in my latest pull request. Everything is working fine now. Please review.
Thanks for raising this issue. I just pushed a fix.
I get the following error with your modification: