Allow anonymous surfing on nolifetv
This commit is contained in:
parent
92dfab4069
commit
dfaee052b9
2 changed files with 10 additions and 2 deletions
|
|
@ -46,7 +46,12 @@ class NolifeTVBackend(BaseBackend, ICapVideo, ICapCollection):
|
|||
default = '5' ))
|
||||
|
||||
def create_default_browser(self):
|
||||
return self.create_browser(self.config['username'].get(), self.config['password'].get())
|
||||
username = self.config['username'].get()
|
||||
if username:
|
||||
password = self.config['password'].get()
|
||||
else:
|
||||
password = None
|
||||
return self.create_browser(username, password)
|
||||
|
||||
def iter_resources(self, objs, split_path):
|
||||
with self.browser:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue