always show whole address when dealing with links
This commit is contained in:
@@ -494,8 +494,11 @@ void MPD::Song::SetHashAndSlash()
|
||||
{
|
||||
if (!itsSong->file)
|
||||
return;
|
||||
const char *tmp = strrchr(itsSong->file, '/');
|
||||
itsSlash = tmp && *(tmp-1) != '/' /* no http:// */ ? tmp-itsSong->file : std::string::npos;
|
||||
if (!isStream())
|
||||
{
|
||||
const char *tmp = strrchr(itsSong->file, '/');
|
||||
itsSlash = tmp && *(tmp-1) != '/' /* no http:// */ ? tmp-itsSong->file : std::string::npos;
|
||||
}
|
||||
itsHash = calc_hash(itsSong->file);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user