Skip to content

Commit

Permalink
Doesn't work after update 12.1 #590
Browse files Browse the repository at this point in the history
  • Loading branch information
vdesabou committed Nov 27, 2022
1 parent 9e8fae5 commit 13252db
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spotify-mini-player/info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17306,7 +17306,7 @@ Example: https://open.spotify.com/track/6hxgHNJjadmCHAJPXw6AYL</string>
<key>config</key>
<dict>
<key>default</key>
<string></string>
<string>0</string>
<key>placeholder</key>
<string></string>
<key>required</key>
Expand Down Expand Up @@ -17527,7 +17527,7 @@ Example: https://open.spotify.com/track/6hxgHNJjadmCHAJPXw6AYL</string>
</dict>
</array>
<key>version</key>
<string>12.2</string>
<string>12.3</string>
<key>webaddress</key>
<string>https://alfred-spotify-mini-player.com</string>
</dict>
Expand Down
3 changes: 3 additions & 0 deletions spotify-mini-player/src/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -7751,6 +7751,9 @@ function startsWithNumber($str) {
*/
function checkForUpdate($w, $last_check_update_time, $download = false)
{
if ($last_check_update_time == '') {
$last_check_update_time = 0;
}
if (time() - $last_check_update_time > 172800 || $download == true) {
// update last_check_update_time
$ret = updateSetting($w, 'last_check_update_time', time());
Expand Down

0 comments on commit 13252db

Please sign in to comment.