Skip to content

Commit

Permalink
happidev_lyrics: Fixed delay being specified as float causing Picard …
Browse files Browse the repository at this point in the history
…crashes
  • Loading branch information
phw committed Jun 7, 2022
1 parent 6da9d77 commit ed8d64c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/happidev_lyrics/happidev_lyrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
PLUGIN_DESCRIPTION = 'Fetch lyrics from Happi.dev Lyrics, which provides millions of lyrics from artist all around the world. ' \
'Lyrics provided are for educational purposes and personal use only. Commercial use is not allowed.<br /><br />' \
'In order to use Happi.dev you need to get a free API key at <a href="https://happi.dev">happi.dev</a>'
PLUGIN_VERSION = '2.1'
PLUGIN_VERSION = '2.1.1'
PLUGIN_API_VERSIONS = ['2.0', '2.1', '2.2', '2.3', '2.4', '2.5', '2.6']
PLUGIN_LICENSE = 'MIT'
PLUGIN_LICENSE_URL = 'https://opensource.org/licenses/MIT'
Expand All @@ -35,7 +35,7 @@ class HappidevLyricsMetadataProcessor:

happidev_host = 'api.happi.dev'
happidev_port = 443
happidev_delay = 60 * 1000 / 100 # 100 requests per minute
happidev_delay = int(60 * 1000 / 100) # 100 requests per minute

def __init__(self):
super().__init__()
Expand Down

0 comments on commit ed8d64c

Please sign in to comment.