diff options
Diffstat (limited to 'apps/menus/playlist_menu.c')
-rw-r--r-- | apps/menus/playlist_menu.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/apps/menus/playlist_menu.c b/apps/menus/playlist_menu.c index 9db87aa7a5..0983f9c338 100644 --- a/apps/menus/playlist_menu.c +++ b/apps/menus/playlist_menu.c | |||
@@ -65,18 +65,10 @@ int save_playlist_screen(struct playlist_info* playlist) | |||
65 | strlcat(temp, DEFAULT_DYNAMIC_PLAYLIST_NAME, sizeof(temp)); | 65 | strlcat(temp, DEFAULT_DYNAMIC_PLAYLIST_NAME, sizeof(temp)); |
66 | } | 66 | } |
67 | 67 | ||
68 | dot = strrchr(temp, '.'); | 68 | if (catalog_pick_new_playlist_name(temp, sizeof(temp), |
69 | if (dot) /* remove extension */ | 69 | playlist ? playlist->filename : |
70 | *dot = '\0'; | 70 | playlist_get_current()->filename)) |
71 | |||
72 | if (!kbd_input(temp, sizeof(temp), NULL)) | ||
73 | { | 71 | { |
74 | len = strlen(temp); | ||
75 | if(len > 4 && !strcasecmp(&temp[len-4], ".m3u")) | ||
76 | strlcat(temp, "8", sizeof(temp)); | ||
77 | else if(len <= 5 || strcasecmp(&temp[len-5], ".m3u8")) | ||
78 | strlcat(temp, ".m3u8", sizeof(temp)); | ||
79 | |||
80 | playlist_save(playlist, temp, NULL, 0); | 72 | playlist_save(playlist, temp, NULL, 0); |
81 | 73 | ||
82 | /* reload in case playlist was saved to cwd */ | 74 | /* reload in case playlist was saved to cwd */ |