Closed raj6996 closed 2 years ago
@raj6996 any luck on this?
No man...
videogrep.py line 278 to 287
`for f in inputfile:
filename = f.split('.')
filename[-1] = 'srt'
srt = '.'.join(filename)
if os.path.isfile(srt):
srts.append(srt)
if len(srts) == 0:
print("[!] No subtitle files were found.")
return False
splitting by '.' change it to '/' or modify the above function to fetch sub titles automatically from the folder.
I had the same issue. This mostly comes when there are "." in the name of the file. An ugly workaround might be to always have the video and subtitle files at the source directory.
What I do is to change the working directory
MAIN_DIRECTORY = os.getcwd() #Save main directory
os.chdir(RESOURCES_DIRECTORY ) #Change directory
# YOUR CODE
os.chdir(MAIN_DIRECTORY) # Change back to main directory
Once the PR above is merged, you will not need this and you can use right away filenames like "./resources/my_filename.mp4"
this should now be fixed in the new beta
After long time fixing #57, I got this new error like this>
48
will any Windows Users fix this issue, it will be helpful for me. thanks.