Skip to content

Commit

Permalink
Added docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
p0psicles committed May 31, 2016
1 parent 350b9fd commit b0c2435
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion sickbeard/providers/bithdtv.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@


class BithdtvProvider(TorrentProvider): # pylint: disable=too-many-instance-attributes

"""BIT-HDTV Torrent provider"""
def __init__(self):

# Provider Init
Expand All @@ -54,6 +54,7 @@ def __init__(self):
self.cache = tvcache.TVCache(self, min_time=10) # Only poll BitHDTV every 10 minutes max

def login(self):
"""Login method used for logging in before doing search and torrent downloads"""
if any(dict_from_cookiejar(self.session.cookies).values()):
return True

Expand All @@ -76,6 +77,13 @@ def login(self):
return True

def search(self, search_strings, age=0, ep_obj=None): # pylint: disable=too-many-locals, too-many-branches
"""BIT HDTV login method
@param search_string: A dict with mode (key) and the search value (value)
@param age: Not used
@param ep_obj: Not used
@return: A list of search results (structure)
"""
results = []
if not self.login():
return results
Expand Down

0 comments on commit b0c2435

Please sign in to comment.