summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--split_album.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/split_album.py b/split_album.py
index a2ca0ab..141b4f6 100644
--- a/split_album.py
+++ b/split_album.py
@@ -74,7 +74,7 @@ def iterate_clip(input_list, multimedia_file):
         )
 
 
-def parse_input(input_file, multimedia_file):
+def parse_input(input_txt_file, multimedia_file):
     """
     parse a text input file containing timestamps and song titles
     return a list of lists.
@@ -89,7 +89,7 @@ def parse_input(input_file, multimedia_file):
     07:02  Chernikovskaya Hata - Владимирский централ
     ---- end file ----
     """
-    with open(input_file) as open_file:
+    with open(input_txt_file) as open_file:
         timestamp_title = [
             [item.strip() for item in line.split('  ')] for line in open_file
         ]
@@ -124,8 +124,9 @@ def main():
     )
     args = arg_parser.parse_args()
     album = args.multimedia_file
+    txt = args.input_txt
     title_range = parse_input(
-        input_file=args.input_txt,
+        input_txt_file=txt,
         multimedia_file=album
     )
     iterate_clip(title_range, album)