Explorar el Código

fixed PORTAL_URL

A hace 3 años
padre
commit
a0b069afb0
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      src/consts.py

+ 2 - 2
src/consts.py

@@ -237,11 +237,11 @@ def read_settings():
     if not PORTAL_URL or not len(PORTAL_URL):
         PORTAL_URL = "vnext.to"
 
-    API_URL = "http://api.%s" % PORTAL_URL
-
     if not ("://" in PORTAL_URL):
         PORTAL_URL = "http://%s" % PORTAL_URL
 
+    API_URL = "http://api.%s" % PORTAL_URL
+
     DEVICE_IDENTIFER = PLUGIN.get_setting("deviceidentifier")
 
     WATCHLIST_ID = PLUGIN.get_setting("watchlistid")