diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2019-07-01 21:23:53 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2019-07-01 21:23:53 +0000 |
| commit | 7e2066ba76299dbb8e51493740b6507fe949958a (patch) | |
| tree | e304bc9403e38a60e5f22824efea74158a94fd01 /src/plugins/General/scrobbler/scrobbler.h | |
| parent | 17cadbfb95e9211e8685aed3466d4c22df732e92 (diff) | |
| download | qmmp-7e2066ba76299dbb8e51493740b6507fe949958a.tar.gz qmmp-7e2066ba76299dbb8e51493740b6507fe949958a.tar.bz2 qmmp-7e2066ba76299dbb8e51493740b6507fe949958a.zip | |
scrobbler: using TrackInfo for cached song
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@8979 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/General/scrobbler/scrobbler.h')
| -rw-r--r-- | src/plugins/General/scrobbler/scrobbler.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/General/scrobbler/scrobbler.h b/src/plugins/General/scrobbler/scrobbler.h index caab70bf6..ad3e1d56e 100644 --- a/src/plugins/General/scrobbler/scrobbler.h +++ b/src/plugins/General/scrobbler/scrobbler.h @@ -67,22 +67,22 @@ private slots: void submit(); private: - enum { MIN_SONG_LENGTH = 30 }; + enum { MIN_SONG_LENGTH = 30000 }; void sendNotification(const SongInfo &info); SongInfo m_song; QList <SongInfo> m_cachedSongs; QByteArray m_ua; - int m_submitedSongs; + int m_submitedSongs = 0; QString m_session; QNetworkAccessManager *m_http; SoundCore *m_core; - QNetworkReply *m_submitReply, *m_notificationReply; + QNetworkReply *m_submitReply = nullptr, *m_notificationReply = nullptr; QElapsedTimer *m_time; ScrobblerCache *m_cache; QString m_scrobblerUrl, m_name; - Qmmp::State m_previousState; - int m_elapsed; + Qmmp::State m_previousState = Qmmp::Stopped; + qint64 m_elapsed = 0; }; /** |
