From ed8d64c022fd15075487b94b74e4e53f87b1740c Mon Sep 17 00:00:00 2001 From: Philipp Wolfer Date: Tue, 7 Jun 2022 15:13:38 +0200 Subject: [PATCH] happidev_lyrics: Fixed delay being specified as float causing Picard crashes --- plugins/happidev_lyrics/happidev_lyrics.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/happidev_lyrics/happidev_lyrics.py b/plugins/happidev_lyrics/happidev_lyrics.py index 25d4491f..afd5c767 100644 --- a/plugins/happidev_lyrics/happidev_lyrics.py +++ b/plugins/happidev_lyrics/happidev_lyrics.py @@ -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.

' \ 'In order to use Happi.dev you need to get a free API key at happi.dev' -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' @@ -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__()