1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-08 23:26:40 +02:00

Use URL as filename

This commit is contained in:
Uwe L. Korn
2014-06-10 16:02:24 +01:00
parent 19f3591de1
commit e47a0e7405
2 changed files with 3 additions and 4 deletions

View File

@@ -32,12 +32,11 @@ static const int kTaglibPrefixCacheBytes = 64 * 1024; // Should be enough.
static const int kTaglibSuffixCacheBytes = 8 * 1024;
}
CloudStream::CloudStream(const QUrl& url, const QString& filename,
CloudStream::CloudStream(const QUrl& url,
const long length, const QString& auth,
QNetworkAccessManager* network)
: url_(url),
filename_(filename),
encoded_filename_(filename_.toUtf8()),
encoded_filename_(url.fileName().toUtf8()),
length_(length),
auth_(auth),
cursor_(0),

View File

@@ -31,7 +31,7 @@ class QNetworkAccessManager;
class CloudStream : public QObject, public TagLib::IOStream {
Q_OBJECT
public:
CloudStream(const QUrl& url, const QString& filename, const long length,
CloudStream(const QUrl& url, const long length,
const QString& auth, QNetworkAccessManager* network);
// Taglib::IOStream