Skip to content

Commit

Permalink
Merge pull request #41 from sopel-irc/use-BooleanAttribute
Browse files Browse the repository at this point in the history
Use `BooleanAttribute` setting type (requires Sopel 7.1+)
  • Loading branch information
dgw authored Jan 20, 2022
2 parents b5987ae + a06a4bb commit 8c674ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
sopel>=7.0,<8
sopel>=7.1,<8
google-api-python-client>=1.5.5,<1.8
3 changes: 2 additions & 1 deletion sopel_modules/youtube/youtube.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import googleapiclient.errors

from sopel.config.types import (
BooleanAttribute,
ListAttribute,
StaticSection,
ValidatedAttribute,
Expand Down Expand Up @@ -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.
"""
Expand Down

0 comments on commit 8c674ab

Please sign in to comment.