forked from len0rd/rockbox
Have "Create Playlist" always create playlist from all tracks
Change-Id: Ic04724139d03417f7cac55f3cfa5aed5610c9747
This commit is contained in:
parent
a77cb9dc77
commit
df7d68a6e2
3 changed files with 7 additions and 9 deletions
|
@ -348,13 +348,16 @@ static int add_to_playlist(const char* playlist, bool new_playlist,
|
||||||
else if (sel_attr & ATTR_DIRECTORY)
|
else if (sel_attr & ATTR_DIRECTORY)
|
||||||
{
|
{
|
||||||
/* search directory for tracks and append to playlist */
|
/* search directory for tracks and append to playlist */
|
||||||
bool recurse = false;
|
bool recurse;
|
||||||
const char *lines[] = {
|
const char *lines[] = {
|
||||||
ID2P(LANG_RECURSE_DIRECTORY_QUESTION), sel};
|
ID2P(LANG_RECURSE_DIRECTORY_QUESTION), sel};
|
||||||
const struct text_message message={lines, 2};
|
const struct text_message message={lines, 2};
|
||||||
struct add_track_context context;
|
struct add_track_context context;
|
||||||
|
|
||||||
if (global_settings.recursive_dir_insert != RECURSE_ASK)
|
|
||||||
|
if (sel[1] == '\0' && sel[0] == PATH_ROOTCHR)
|
||||||
|
recurse = true;
|
||||||
|
else if (global_settings.recursive_dir_insert != RECURSE_ASK)
|
||||||
recurse = (bool)global_settings.recursive_dir_insert;
|
recurse = (bool)global_settings.recursive_dir_insert;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -1070,7 +1070,7 @@ int create_playlist(void)
|
||||||
{
|
{
|
||||||
bool ret;
|
bool ret;
|
||||||
trigger_cpu_boost();
|
trigger_cpu_boost();
|
||||||
ret = catalog_add_to_a_playlist(tc.currdir, ATTR_DIRECTORY, true, NULL, NULL);
|
ret = catalog_add_to_a_playlist(PATH_ROOTSTR, ATTR_DIRECTORY, true, NULL, NULL);
|
||||||
cancel_cpu_boost();
|
cancel_cpu_boost();
|
||||||
|
|
||||||
return (ret) ? 1 : 0;
|
return (ret) ? 1 : 0;
|
||||||
|
|
|
@ -174,12 +174,7 @@ from the current playlist, so that bookmarks can be created
|
||||||
(see \reference{ref:createbookmark}).
|
(see \reference{ref:createbookmark}).
|
||||||
|
|
||||||
\item[Create Playlist:]
|
\item[Create Playlist:]
|
||||||
Rockbox will create a playlist with all tracks from the directory that is
|
Rockbox will create a playlist with all tracks from your player.
|
||||||
currently selected in the \setting{File Browser}.
|
|
||||||
If you have selected the root level, or your Playlist directory, Rockbox
|
|
||||||
will create a playlist with tracks from the root directory.
|
|
||||||
Sub-directories will be included, unless the option to recursively insert
|
|
||||||
directories has been turned off, see \reference{ref:PlaylistOptions}.
|
|
||||||
|
|
||||||
\item[Reset Playlist Catalogue Directory:]
|
\item[Reset Playlist Catalogue Directory:]
|
||||||
Will reset the default location for playlists to the \fname{/Playlists}
|
Will reset the default location for playlists to the \fname{/Playlists}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue