Browse Source

enigma2 user/password salabots

Ivars 6 years ago
parent
commit
007f756ffc
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      sources/enigma2.py

+ 2
- 2
sources/enigma2.py View File

49
         self.options_read()
49
         self.options_read()
50
 
50
 
51
         if self.options["user"]:
51
         if self.options["user"]:
52
-            self.url = "http://%s/api/" % (self.options["host"])
53
-        else:
54
             self.url = "http://%s:%s@%s/api/" % (self.options["user"], self.options["password"],self.options["host"])
52
             self.url = "http://%s:%s@%s/api/" % (self.options["user"], self.options["password"],self.options["host"])
53
+        else:
54
+            self.url = "http://%s/api/" % (self.options["host"])
55
 
55
 
56
     ######### Entry point ########
56
     ######### Entry point ########
57
     def get_content(self, data):
57
     def get_content(self, data):