Scrobbler: Use seconds instead of minutes for submit delay
This commit is contained in:
@@ -523,7 +523,7 @@ void ListenBrainzScrobbler::Scrobble(const Song &song) {
|
|||||||
Submit();
|
Submit();
|
||||||
}
|
}
|
||||||
else if (!timer_submit_.isActive()) {
|
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();
|
timer_submit_.start();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -535,7 +535,7 @@ void ListenBrainzScrobbler::DoSubmit() {
|
|||||||
if (!submitted_ && cache_->Count() > 0) {
|
if (!submitted_ && cache_->Count() > 0) {
|
||||||
submitted_ = true;
|
submitted_ = true;
|
||||||
if (!timer_submit_.isActive()) {
|
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();
|
timer_submit_.start();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -550,7 +550,7 @@ void ScrobblingAPI20::Scrobble(const Song &song) {
|
|||||||
Submit();
|
Submit();
|
||||||
}
|
}
|
||||||
else if (!timer_submit_.isActive()) {
|
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();
|
timer_submit_.start();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -562,7 +562,7 @@ void ScrobblingAPI20::DoSubmit() {
|
|||||||
if (!submitted_ && cache()->Count() > 0) {
|
if (!submitted_ && cache()->Count() > 0) {
|
||||||
submitted_ = true;
|
submitted_ = true;
|
||||||
if (!timer_submit_.isActive()) {
|
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();
|
timer_submit_.start();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ void SubsonicScrobbler::Scrobble(const Song &song) {
|
|||||||
Submit();
|
Submit();
|
||||||
}
|
}
|
||||||
else if (!timer_submit_.isActive()) {
|
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();
|
timer_submit_.start();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>460</width>
|
<width>460</width>
|
||||||
<height>1075</height>
|
<height>1103</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
@@ -70,11 +70,14 @@
|
|||||||
<item>
|
<item>
|
||||||
<widget class="QSpinBox" name="spinbox_submit">
|
<widget class="QSpinBox" name="spinbox_submit">
|
||||||
<property name="suffix">
|
<property name="suffix">
|
||||||
<string> minutes</string>
|
<string> seconds</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="prefix">
|
<property name="prefix">
|
||||||
<string/>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="maximum">
|
||||||
|
<number>900</number>
|
||||||
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
@@ -95,7 +98,7 @@
|
|||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="label_submit_info">
|
<widget class="QLabel" name="label_submit_info">
|
||||||
<property name="text">
|
<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>
|
||||||
<property name="wordWrap">
|
<property name="wordWrap">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
|
|||||||
Reference in New Issue
Block a user