audioplayer: add url to metadata

Origin commit data
------------------
Branch: ni/coolstream
Commit: eaabd0ca48
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-06-18 (Sun, 18 Jun 2017)

Origin message was:
------------------
- audioplayer: add url to metadata

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2017-06-18 23:00:12 +02:00
parent 7e214a917c
commit a37ea12a57
3 changed files with 6 additions and 2 deletions

View File

@@ -1024,7 +1024,6 @@ bool CAudioPlayerGui::shufflePlaylist(void)
void CAudioPlayerGui::addUrl2Playlist(const char *url, const char *name, const time_t bitrate)
{
CAudiofileExt mp3(url, CFile::STREAM_AUDIO);
//tmp = tmp.substr(0,tmp.length()-4); //remove .url
//printf("[addUrl2Playlist], name = %s, url = %s\n", name, url);
if (name != NULL)
{
@@ -1040,6 +1039,8 @@ void CAudioPlayerGui::addUrl2Playlist(const char *url, const char *name, const t
else
mp3.MetaData.total_time = 0;
mp3.MetaData.url = url;
if (url[0] != '#')
addToPlaylist(mp3);
}