You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using this on an Ubuntu shell session "renamethemsubs.py" it asks for extension of subtitle and I input srt or .srt and gives errors afterwards.
Should I use another string or way to fix this?
`$ python renamethemsubs.py MENU
--------------------
For subs and video files,
1. In same directory
2. In different directory
3. In current directory: /home/Test
--------------------
Enter choice(1-3): 3
Extension of subtitle files(ex: .sub, .srt, etc): .srt
Traceback (most recent call last):
File "renamethemsubs.py", line 94, in
main()
File "renamethemsubs.py", line 92, in main
for_current_dir()
File "renamethemsubs.py", line 60, in for_current_dir
sub_format = str(input("Extension of subtitle files(ex: .sub, .srt, etc): "))
File "", line 1
.srt
^
SyntaxError: invalid syntax
$ python renamethemsubs.py MENU
--------------------
For subs and video files,
1. In same directory
2. In different directory
3. In current directory: /home/Test
--------------------
Enter choice(1-3): 3
Extension of subtitle files(ex: .sub, .srt, etc): srt
Traceback (most recent call last):
File "renamethemsubs.py", line 94, in
main()
File "renamethemsubs.py", line 92, in main
for_current_dir()
File "renamethemsubs.py", line 60, in for_current_dir
sub_format = str(input("Extension of subtitle files(ex: .sub, .srt, etc): "))
File "", line 1, in
NameError: name 'srt' is not defined`
The text was updated successfully, but these errors were encountered:
Hello,
Thank you for creating this python script.
I am using this on an Ubuntu shell session "renamethemsubs.py" it asks for extension of subtitle and I input srt or .srt and gives errors afterwards.
Should I use another string or way to fix this?
`$ python renamethemsubs.py
MENU
Extension of subtitle files(ex: .sub, .srt, etc): .srt
Traceback (most recent call last):
File "renamethemsubs.py", line 94, in
main()
File "renamethemsubs.py", line 92, in main
for_current_dir()
File "renamethemsubs.py", line 60, in for_current_dir
sub_format = str(input("Extension of subtitle files(ex: .sub, .srt, etc): "))
File "", line 1
.srt
^
SyntaxError: invalid syntax
$ python renamethemsubs.py
MENU
Extension of subtitle files(ex: .sub, .srt, etc): srt
Traceback (most recent call last):
File "renamethemsubs.py", line 94, in
main()
File "renamethemsubs.py", line 92, in main
for_current_dir()
File "renamethemsubs.py", line 60, in for_current_dir
sub_format = str(input("Extension of subtitle files(ex: .sub, .srt, etc): "))
File "", line 1, in
NameError: name 'srt' is not defined`
The text was updated successfully, but these errors were encountered: