diff --git a/process_podcast.py b/process_podcast.py index 23627e2..cd68170 100755 --- a/process_podcast.py +++ b/process_podcast.py @@ -21,8 +21,6 @@ file = input[0] stream = None if (len(input) == 1) else input[1] setattr(namespace, self.dest, file) - setattr(namespace, 'audio_stream_number', None) - setattr(namespace, 'video_stream_number', None) if (option_string in ["--audio", "-a"]): setattr(namespace, 'audio_stream_number', stream) elif (option_string in ["--video", "-v"]): @@ -46,6 +44,8 @@ "can differ, but all input streams must have the same the total " "length.") + parser.set_defaults(audio_stream_number=None, video_stream_number=None) + parser.add_argument( "output", help="name of the output file (note: .mov is best)")