Skip to content

Commit 646760c

Browse files
got the second format issue
1 parent 1ccbd36 commit 646760c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

database_functions/functions.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3155,7 +3155,9 @@ def download_podcast(cnx, database_type, episode_id, user_id, task_id=None, prog
31553155
}
31563156

31573157
date_format_str = date_format_map.get(date_format, "%Y-%m-%d")
3158-
pub_date_str = pub_date.strftime(date_format_str)
3158+
filename_date_format_str = date_format_str.replace('/', '-').replace('\\', '-')
3159+
pub_date_str = pub_date.strftime(filename_date_format_str)
3160+
31593161

31603162
# Clean filenames of invalid characters
31613163
podcast_name = "".join(c for c in podcast_name if c.isalnum() or c in (' ', '-', '_')).strip()

0 commit comments

Comments
 (0)