Skip to content

Commit

Permalink
Append (reverse_)?chronological to file name
Browse files Browse the repository at this point in the history
  • Loading branch information
shailshouryya committed Nov 23, 2020
1 parent d0f76e2 commit 8cf2e15
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion python/dev/execute.py
Expand Up @@ -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():
Expand Down
3 changes: 2 additions & 1 deletion python/yt_videos_list/execute.py
Expand Up @@ -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)
Expand Down

0 comments on commit 8cf2e15

Please sign in to comment.