diff --git a/python/dev/execute.py b/python/dev/execute.py index 57083cdd..8962f332 100644 --- a/python/dev/execute.py +++ b/python/dev/execute.py @@ -132,7 +132,8 @@ def determine_file_name(): return file_name.strip('.csv').strip('.txt').strip('.md') else: channel_name = driver.find_element_by_xpath("//yt-formatted-string[@class='style-scope ytd-channel-name']").text.replace(' ', '') - return f'{channel_name}_videos_list' + suffix = 'reverse_chronological' if reverse_chronological else 'chronological' + return f'{channel_name}_videos_list_{suffix}' def show_user_how_to_set_up_selenium(): diff --git a/python/yt_videos_list/execute.py b/python/yt_videos_list/execute.py index 654ea52a..4a2149f1 100644 --- a/python/yt_videos_list/execute.py +++ b/python/yt_videos_list/execute.py @@ -100,7 +100,8 @@ def determine_file_name(): return file_name.strip('.csv').strip('.txt').strip('.md') else: channel_name = driver.find_element_by_xpath("//yt-formatted-string[@class='style-scope ytd-channel-name']").text.replace(' ', '') - return f'{channel_name}_videos_list' + suffix = 'reverse_chronological' if reverse_chronological else 'chronological' + return f'{channel_name}_videos_list_{suffix}' def show_user_how_to_set_up_selenium(): if user_driver != 'safari': common_message.tell_user_to_download_driver(user_driver)