Scrobbler: Use seconds instead of minutes for submit delay
This commit is contained in:
parent
0da0e0a6db
commit
f38b33ee50
|
@ -523,7 +523,7 @@ void ListenBrainzScrobbler::Scrobble(const Song &song) {
|
|||
Submit();
|
||||
}
|
||||
else if (!timer_submit_.isActive()) {
|
||||
timer_submit_.setInterval(static_cast<int>(app_->scrobbler()->SubmitDelay() * 60 * kMsecPerSec));
|
||||
timer_submit_.setInterval(static_cast<int>(app_->scrobbler()->SubmitDelay() * kMsecPerSec));
|
||||
timer_submit_.start();
|
||||
}
|
||||
}
|
||||
|
@ -535,7 +535,7 @@ void ListenBrainzScrobbler::DoSubmit() {
|
|||
if (!submitted_ && cache_->Count() > 0) {
|
||||
submitted_ = true;
|
||||
if (!timer_submit_.isActive()) {
|
||||
timer_submit_.setInterval(static_cast<int>(app_->scrobbler()->SubmitDelay() * 60 * kMsecPerSec));
|
||||
timer_submit_.setInterval(static_cast<int>(app_->scrobbler()->SubmitDelay() * kMsecPerSec));
|
||||
timer_submit_.start();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -550,7 +550,7 @@ void ScrobblingAPI20::Scrobble(const Song &song) {
|
|||
Submit();
|
||||
}
|
||||
else if (!timer_submit_.isActive()) {
|
||||
timer_submit_.setInterval(static_cast<int>(app_->scrobbler()->SubmitDelay() * 60 * kMsecPerSec));
|
||||
timer_submit_.setInterval(static_cast<int>(app_->scrobbler()->SubmitDelay() * kMsecPerSec));
|
||||
timer_submit_.start();
|
||||
}
|
||||
}
|
||||
|
@ -562,7 +562,7 @@ void ScrobblingAPI20::DoSubmit() {
|
|||
if (!submitted_ && cache()->Count() > 0) {
|
||||
submitted_ = true;
|
||||
if (!timer_submit_.isActive()) {
|
||||
timer_submit_.setInterval(static_cast<int>(app_->scrobbler()->SubmitDelay() * 60 * kMsecPerSec));
|
||||
timer_submit_.setInterval(static_cast<int>(app_->scrobbler()->SubmitDelay() * kMsecPerSec));
|
||||
timer_submit_.start();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -94,7 +94,7 @@ void SubsonicScrobbler::Scrobble(const Song &song) {
|
|||
Submit();
|
||||
}
|
||||
else if (!timer_submit_.isActive()) {
|
||||
timer_submit_.setInterval(static_cast<int>(app_->scrobbler()->SubmitDelay() * 60 * kMsecPerSec));
|
||||
timer_submit_.setInterval(static_cast<int>(app_->scrobbler()->SubmitDelay() * kMsecPerSec));
|
||||
timer_submit_.start();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>460</width>
|
||||
<height>1075</height>
|
||||
<height>1103</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
|
@ -70,11 +70,14 @@
|
|||
<item>
|
||||
<widget class="QSpinBox" name="spinbox_submit">
|
||||
<property name="suffix">
|
||||
<string> minutes</string>
|
||||
<string> seconds</string>
|
||||
</property>
|
||||
<property name="prefix">
|
||||
<string/>
|
||||
</property>
|
||||
<property name="maximum">
|
||||
<number>900</number>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
|
@ -95,7 +98,7 @@
|
|||
<item>
|
||||
<widget class="QLabel" name="label_submit_info">
|
||||
<property name="text">
|
||||
<string>(This is the delay between when a song is scrobbled and when scrobbles are submitted to the server. Setting the time to 0 minutes will submit scrobbles immediately).</string>
|
||||
<string>(This is the delay between when a song is scrobbled and when scrobbles are submitted to the server. Setting the time to 0 seconds will submit scrobbles immediately).</string>
|
||||
</property>
|
||||
<property name="wordWrap">
|
||||
<bool>true</bool>
|
||||
|
|
Loading…
Reference in New Issue