forked from XBMCil/service.subtitles.torec
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support login to torec, if no login or login has failed - failing bac…
…k to guest user (XBMCil#53) * Support login to torec, if no login or login has failed - failing back to guest user * Saving cookie on login. Chekcing if cookie exists, if yes, try to use it * fix cookie permissions on non root Kodi run * 1.4.2 - login to seperated function on get_download_link * 1.4.* -> consolidate to 1.4.0
- Loading branch information
Showing
6 changed files
with
98 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,22 @@ | ||
class Addon(object): | ||
def getAddonInfo(self, type): | ||
pass | ||
def __init__(self, id=None): | ||
pass | ||
|
||
def getAddonInfo(self, type): | ||
if type == "id": | ||
return "Torec" | ||
pass | ||
|
||
def openSetting(self): | ||
""" Can simulate openSettings xbmc call """ | ||
print "Settings" | ||
|
||
def getSetting(self, kind): | ||
""" For unittest - you can return real user credentials | ||
to check user login. | ||
returning Nano or empty string will skip login | ||
""" | ||
if kind == "username": | ||
return "A" | ||
elif kind == "password": | ||
return "X" |