Skip to content

Commit

Permalink
Fixed docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
p0psicles committed Jun 9, 2016
1 parent cdb1589 commit 0e052d4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
7 changes: 3 additions & 4 deletions sickbeard/providers/anizb.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@


class Anizb(NZBProvider): # pylint: disable=too-many-instance-attributes
'''Nzb Provider using the open api of anizb.org for daily (rss) and backlog/forced searches'''
"""Nzb Provider using the open api of anizb.org for daily (rss) and backlog/forced searches"""
def __init__(self):

# Provider Init
Expand All @@ -52,11 +52,11 @@ def __init__(self):
self.cache = tvcache.TVCache(self)

def _get_size(self, item):
'''Override the default _get_size to prevent it from extracting using it the default tags'''
"""Override the default _get_size to prevent it from extracting using it the default tags"""
return try_int(item.get('size'))

def search(self, search_strings, age=0, ep_obj=None): # pylint: disable=too-many-locals
'''Start searching for anime using the provided search_strings. Used for backlog and daily'''
"""Start searching for anime using the provided search_strings. Used for backlog and daily"""
results = []

if self.show and not self.show.is_anime:
Expand Down Expand Up @@ -109,5 +109,4 @@ def search(self, search_strings, age=0, ep_obj=None): # pylint: disable=too-man

return results


provider = Anizb()
4 changes: 2 additions & 2 deletions sickbeard/providers/elitetorrent.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def search(self, search_strings, age=0, ep_obj=None): # pylint: disable=too-man
results = []
lang_info = '' if not ep_obj or not ep_obj.show else ep_obj.show.lang

'''
"""
Search query:
http://www.elitetorrent.net/torrents.php?cat=4&modo=listado&orden=fecha&pag=1&buscar=fringe
Expand All @@ -59,7 +59,7 @@ def search(self, search_strings, age=0, ep_obj=None): # pylint: disable=too-man
orden = fecha => order
buscar => Search show
pag = 1 => page number
'''
"""

search_params = {
'cat': 4,
Expand Down
4 changes: 2 additions & 2 deletions sickbeard/providers/tntvillage.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,9 @@ def _reverseQuality(quality):

@staticmethod
def _episodeQuality(torrent_rows): # pylint: disable=too-many-return-statements, too-many-branches
'''
"""
Return The quality from the scene episode HTML row.
'''
"""
file_quality = ''

img_all = (torrent_rows('td'))[1]('img')
Expand Down

0 comments on commit 0e052d4

Please sign in to comment.