mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2025-02-02 10:36:45 +01:00
Use Song::SourceFromURL in SongLoader::AddAsRawStream
This commit is contained in:
parent
c33f2a1d27
commit
cdb3729a88
@ -398,12 +398,14 @@ void SongLoader::LoadLocalDirectory(const QString &filename) {
|
||||
}
|
||||
|
||||
void SongLoader::AddAsRawStream() {
|
||||
Song song(Song::Source_Stream);
|
||||
|
||||
Song song(Song::SourceFromURL(url_));
|
||||
song.set_valid(true);
|
||||
song.set_filetype(Song::FileType_Stream);
|
||||
song.set_url(url_);
|
||||
song.set_title(url_.toString());
|
||||
songs_ << song;
|
||||
|
||||
}
|
||||
|
||||
void SongLoader::Timeout() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user