diff options
| author | 2018-10-03 13:22:37 +0100 | |
|---|---|---|
| committer | 2018-10-03 13:22:37 +0100 | |
| commit | 69d58eede2e9bf83aa1ed1d8fcf956efde494726 (patch) | |
| tree | 11aa30f2a357f3be23ad97315dae3df051455cbe /modules/imdb.py | |
| parent | Add a way to not add a user automatically in IRCServer.get_user (diff) | |
| signature | ||
Move src/Utils.py in to src/utils/, splitting functionality out in to modules of
related functionality
Diffstat (limited to 'modules/imdb.py')
| -rw-r--r-- | modules/imdb.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/imdb.py b/modules/imdb.py index a584a9e4..667a26f2 100644 --- a/modules/imdb.py +++ b/modules/imdb.py @@ -1,7 +1,7 @@ #--require-config omdbapi-api-key import json -from src import ModuleManager, Utils +from src import ModuleManager, utils URL_OMDB = "http://www.omdbapi.com/" URL_IMDBTITLE = "http://imdb.com/title/%s" @@ -9,13 +9,13 @@ URL_IMDBTITLE = "http://imdb.com/title/%s" class Module(ModuleManager.BaseModule): _name = "IMDb" - @Utils.hook("received.command.imdb", min_args=1) + @utils.hook("received.command.imdb", min_args=1) def imdb(self, event): """ :help: Search for a given title on IMDb :usage: <movie/tv title> """ - page = Utils.get_url(URL_OMDB, get_params={ + page = utils.http.get_url(URL_OMDB, get_params={ "t": event["args"], "apikey": self.bot.config["omdbapi-api-key"]}, json=True) |
