diff options
author | Alexey Kulakov <panda75@bk.ru> | 2014-11-15 21:18:07 +0000 |
---|---|---|
committer | Alexey Kulakov <panda75@bk.ru> | 2014-11-15 21:18:07 +0000 |
commit | 8148930684c823e526ab8092b33c129a8b17db74 (patch) | |
tree | 9184d382e56ac1106e5b45e8514f1fd21e714973 /plugins/Watrack/players/pl_aimp.pas | |
parent | 62a14ba4730f52cce31b1b71565554691496df36 (diff) |
Watrack: cheat for AIMP processing if Artist/Title is empty (to avoid wrong result)
git-svn-id: http://svn.miranda-ng.org/main/trunk@10997 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Watrack/players/pl_aimp.pas')
-rw-r--r-- | plugins/Watrack/players/pl_aimp.pas | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/plugins/Watrack/players/pl_aimp.pas b/plugins/Watrack/players/pl_aimp.pas index 1711490e33..410a44d5f0 100644 --- a/plugins/Watrack/players/pl_aimp.pas +++ b/plugins/Watrack/players/pl_aimp.pas @@ -277,7 +277,9 @@ begin StrDupW(artist,
pWideChar(PAnsiChar(pStr)+SizeOf(TAIMP2FileInfo))+
nAlbumLen,nArtistLen);
- end;
+ end
+ else
+ artist:=StrEmpty();
if (album=nil) and (nAlbumLen>0) then
begin
StrDupW(album,
@@ -290,7 +292,9 @@ begin pWideChar(PAnsiChar(pStr)+SizeOf(TAIMP2FileInfo))+
nAlbumLen+nArtistLen+nDateLen+nFileNameLen+nGenreLen,
nTitleLen);
- end;
+ end
+ else
+ title:=StrEmpty();
if (year=nil) and (nDateLen>0) then
begin
StrDupW(year,
|