diff --git a/requirements.txt b/requirements.txt index da20ba5..0559158 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,2 @@ -sopel>=7.0,<8 +sopel>=7.1,<8 google-api-python-client>=1.5.5,<1.8 diff --git a/sopel_modules/youtube/youtube.py b/sopel_modules/youtube/youtube.py index 874b5d1..a35caae 100644 --- a/sopel_modules/youtube/youtube.py +++ b/sopel_modules/youtube/youtube.py @@ -12,6 +12,7 @@ import googleapiclient.errors from sopel.config.types import ( + BooleanAttribute, ListAttribute, StaticSection, ValidatedAttribute, @@ -93,7 +94,7 @@ class YoutubeSection(StaticSection): Available: uploader, date, length, views, comments, and votes_color or votes """ - playlist_watch = ValidatedAttribute('playlist_watch', bool, default=True) + playlist_watch = BooleanAttribute('playlist_watch', default=True) """ Whether to show playlist info if the list ID is embedded in a video watch link. """