diff options
| author | 2019-02-09 13:14:45 +0000 | |
|---|---|---|
| committer | 2019-02-09 13:14:45 +0000 | |
| commit | 730a4e6b871659319d7031362800280ef08a8734 (patch) | |
| tree | d8a04ea7d5b7a51c7cb1b1fbcbb0b7684943a755 /modules/lastfm.py | |
| parent | 'username' -> 'nickname', update RESUME nickname when our nickname changes (r... (diff) | |
| signature | ||
Don't use the event system to get results from other modules - use exports
Diffstat (limited to 'modules/lastfm.py')
| -rw-r--r-- | modules/lastfm.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/modules/lastfm.py b/modules/lastfm.py index 6b16675d..1198b6f5 100644 --- a/modules/lastfm.py +++ b/modules/lastfm.py @@ -47,10 +47,7 @@ class Module(ModuleManager.BaseModule): ytquery = " - ".join([artist, track_name]) - short_url = self.events.on( - "get.searchyoutube").call_for_result( - query=ytquery) - + short_url = self.exports.get_one("search-youtube")(ytquery) short_url = " -- " + short_url if short_url else "" info_page = utils.http.request(URL_SCROBBLER, get_params={ |
