fix: don't try to update youtube data if disabled in settings (#32588)

fix: cast value from db

[skip ci]
This commit is contained in:
Raffael Meyer 2022-10-13 08:23:52 +02:00 committed by GitHub
parent d6c28aa64d
commit e543dca6a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -59,7 +59,7 @@ def update_youtube_data():
"Video Settings", "Video Settings", ["enable_youtube_tracking", "frequency"]
)
if not enable_youtube_tracking:
if not cint(enable_youtube_tracking):
return
frequency = get_frequency(frequency)