diff options
| author | 2018-09-23 10:23:12 +0100 | |
|---|---|---|
| committer | 2018-09-23 10:23:12 +0100 | |
| commit | 8b8c59ee213a4c006f90767fe379030d4a1e1524 (patch) | |
| tree | cc8eaf27162cc8b9556fd872cf205075fb0d5284 /modules/youtube.py | |
| parent | Remove superfluous function. (diff) | |
| signature | ||
Rename the functions to be more generic.
Diffstat (limited to 'modules/youtube.py')
| -rw-r--r-- | modules/youtube.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/youtube.py b/modules/youtube.py index 20dc072b..c70e9ef8 100644 --- a/modules/youtube.py +++ b/modules/youtube.py @@ -24,7 +24,7 @@ class Module(object): help="Find a video on youtube", usage="[query]") events.on("received.message.channel").hook(self.channel_message) - events.on("get.youtubefromlastfm").hook(self.get_yt_from_lastfm) + events.on("get.searchyoutube").hook(self.search_video) exports.add("channelset", {"setting": "auto-youtube", "help": "Disable/Enable automatically getting info from " @@ -65,7 +65,7 @@ class Module(object): video_title, video_duration, video_uploader, "{:,}".format( int(video_views)), video_opinions, URL_YOUTUBESHORT % video_id) - def get_yt_from_lastfm(self, event): + def search_video(self, event): search = event["query"] video_id = "" |
