mirror of
https://github.com/oddluck/limnoria-plugins.git
synced 2025-05-02 00:11:08 -05:00
YouTube/IMDb: remove unneeded imports
This commit is contained in:
parent
702922efd7
commit
e0266f6987
@ -28,7 +28,6 @@
|
|||||||
# POSSIBILITY OF SUCH DAMAGE.
|
# POSSIBILITY OF SUCH DAMAGE.
|
||||||
###
|
###
|
||||||
|
|
||||||
import sys
|
|
||||||
import supybot.utils as utils
|
import supybot.utils as utils
|
||||||
from supybot.commands import *
|
from supybot.commands import *
|
||||||
import supybot.plugins as plugins
|
import supybot.plugins as plugins
|
||||||
@ -101,8 +100,6 @@ class IMDb(callbacks.Plugin):
|
|||||||
meta = None
|
meta = None
|
||||||
tomato = None
|
tomato = None
|
||||||
imdb_template = self.registryValue("template")
|
imdb_template = self.registryValue("template")
|
||||||
if sys.version_info[0] < 3:
|
|
||||||
imdb_template = imdb_template.decode("utf-8")
|
|
||||||
imdb_template = imdb_template.replace("$title", response["Title"])
|
imdb_template = imdb_template.replace("$title", response["Title"])
|
||||||
imdb_template = imdb_template.replace("$year", response["Year"])
|
imdb_template = imdb_template.replace("$year", response["Year"])
|
||||||
imdb_template = imdb_template.replace("$country", response["Country"])
|
imdb_template = imdb_template.replace("$country", response["Country"])
|
||||||
|
@ -28,7 +28,6 @@
|
|||||||
# POSSIBILITY OF SUCH DAMAGE.
|
# POSSIBILITY OF SUCH DAMAGE.
|
||||||
###
|
###
|
||||||
|
|
||||||
import sys
|
|
||||||
import supybot.utils as utils
|
import supybot.utils as utils
|
||||||
from supybot.commands import *
|
from supybot.commands import *
|
||||||
import supybot.plugins as plugins
|
import supybot.plugins as plugins
|
||||||
@ -38,7 +37,6 @@ import supybot.callbacks as callbacks
|
|||||||
import supybot.log as log
|
import supybot.log as log
|
||||||
import requests
|
import requests
|
||||||
import pendulum
|
import pendulum
|
||||||
import re
|
|
||||||
from jinja2 import Template
|
from jinja2 import Template
|
||||||
from fake_useragent import UserAgent
|
from fake_useragent import UserAgent
|
||||||
from bs4 import BeautifulSoup
|
from bs4 import BeautifulSoup
|
||||||
|
Loading…
x
Reference in New Issue
Block a user