mirror of
https://github.com/oddluck/limnoria-plugins.git
synced 2025-04-26 13:01:09 -05:00
YouTube: restore import
This commit is contained in:
parent
e86c8ebebb
commit
702922efd7
@ -44,6 +44,14 @@ from fake_useragent import UserAgent
|
|||||||
from bs4 import BeautifulSoup
|
from bs4 import BeautifulSoup
|
||||||
from urllib.parse import urlencode, urlparse, parse_qsl
|
from urllib.parse import urlencode, urlparse, parse_qsl
|
||||||
|
|
||||||
|
try:
|
||||||
|
from supybot.i18n import PluginInternationalization
|
||||||
|
_ = PluginInternationalization('YouTube')
|
||||||
|
except ImportError:
|
||||||
|
# Placeholder that allows to run the plugin on a bot
|
||||||
|
# without the i18n module
|
||||||
|
_ = lambda x: x
|
||||||
|
|
||||||
class YouTube(callbacks.Plugin):
|
class YouTube(callbacks.Plugin):
|
||||||
"""Queries OMDB database for information about YouTube titles"""
|
"""Queries OMDB database for information about YouTube titles"""
|
||||||
threaded = True
|
threaded = True
|
||||||
|
Loading…
x
Reference in New Issue
Block a user