Fall back on "<no album tag>" if the file is in the root of the player and doesn't have an album tag...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6338 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
50b656ff0c
commit
e327cc8be3
1 changed files with 2 additions and 0 deletions
|
@ -181,6 +181,8 @@ sub dodir {
|
|||
# Fall back on the directory name (not full path dirname),
|
||||
# if no album tag
|
||||
$$id3{'ALBUM'} = (split m[/], $dir)[-1] if ($$id3{'ALBUM'} eq "");
|
||||
#if that doesn't work, fall back.
|
||||
$$id3{'ALBUM'} = "<no album tag>" if ($$id3{'ALBUM'} eq "");
|
||||
# fall back on basename of the file if no title tag.
|
||||
my $base;
|
||||
($base = $f) =~ s/\.\w+$//;
|
||||
|
|
Loading…
Reference in a new issue