From d0f769e11d485ca472a65f73187ded738614fb34 Mon Sep 17 00:00:00 2001 From: Marcel Korpel Date: Sat, 2 Jan 2021 02:25:54 +0100 Subject: [PATCH 1/2] Set default input of URL to first part of MUBI URL --- addon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: From 7c998cd96e8e4cf941a27e080dfa28af25d3a766 Mon Sep 17 00:00:00 2001 From: Marcel Korpel Date: Sat, 2 Jan 2021 17:16:17 +0100 Subject: [PATCH 2/2] Remove superfluous html import --- resources/lib/mubi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = {