diff --git a/addon.py b/addon.py index 920bdae..4cd6803 100644 --- a/addon.py +++ b/addon.py @@ -78,7 +78,7 @@ def play_film(identifier): @plugin.route('/enter_url/') def enter_url(): - mubi_url = xbmcgui.Dialog().input("Enter URL") + mubi_url = xbmcgui.Dialog().input("Enter URL", "https://mubi.com/films/") film = mubi.get_film_id_by_web_url(mubi_url) reel_id = -1 if "reels" in film and len(film["reels"]) > 0: diff --git a/resources/lib/mubi.py b/resources/lib/mubi.py index 782fa7c..877363c 100644 --- a/resources/lib/mubi.py +++ b/resources/lib/mubi.py @@ -207,7 +207,7 @@ def get_default_reel_id_is_drm(self, film_id): # function to obtain the film id from the web version of MUBI (not the API) def get_film_id_by_web_url(self, mubi_url): - import re, html + import re r = self._session.get( mubi_url, headers = {