Skip to content

Commit

Permalink
Update srt_tr.py
Browse files Browse the repository at this point in the history
pylint fix
  • Loading branch information
fam007e authored Sep 20, 2024
1 parent c2e5bf0 commit 950625e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions srt_tr.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

def translate_srt(input_file, source_language, target_language):
"""Translate the subtitles in the input .srt file."""

translator = GoogleTranslator(source=source_language, target=target_language)

try:
Expand Down Expand Up @@ -54,8 +54,8 @@ def translate_srt(input_file, source_language, target_language):
'''
)
parser.add_argument('input_file', help='Input .srt file path')
parser.add_argument('source_language', help='Language code of the input file (e.g., en for English)')
parser.add_argument('target_language', help='Language code to translate to (e.g., bn for Bangla)')
parser.add_argument('source_language', help='Language code for input (e.g., en for English)')
parser.add_argument('target_language', help='Language code to output (e.g., bn for Bangla)')
args = parser.parse_args()

translate_srt(args.input_file, args.source_language, args.target_language)

0 comments on commit 950625e

Please sign in to comment.