Ver código fonte

fixed PORTAL_URL

A 3 anos atrás
pai
commit
a0b069afb0
1 arquivos alterados com 2 adições e 2 exclusões
  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")