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

Running in shell renamethemsubs.py, 2nd part fails at string ? #7

Open
scriber10 opened this issue Jan 31, 2021 · 0 comments
Open

Running in shell renamethemsubs.py, 2nd part fails at string ? #7

scriber10 opened this issue Jan 31, 2021 · 0 comments

Comments

@scriber10
Copy link

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

--------------------
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`

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

1 participant