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:
@@ -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),
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user