Skip to content

Commit

Permalink
[#16] when topN setting was "0", skip max checking too
Browse files Browse the repository at this point in the history
  • Loading branch information
sk1418 committed Oct 23, 2015
1 parent 4a87c84 commit bbf74df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion zhuaxia/netease.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def init_topsong(self):
song.post_set()
self.songs.append(song)
#check config for top X
if config.DOWNLOAD_TOP_SONG>=0 and len(self.songs) >= config.DOWNLOAD_TOP_SONG:
if config.DOWNLOAD_TOP_SONG>0 and len(self.songs) >= config.DOWNLOAD_TOP_SONG:
break

if len(self.songs):
Expand Down
2 changes: 1 addition & 1 deletion zhuaxia/xiami.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ def init_topsong(self):
song.post_set()
self.songs.append(song)
#check config for top X
if config.DOWNLOAD_TOP_SONG>=0 and len(self.songs) >= config.DOWNLOAD_TOP_SONG:
if config.DOWNLOAD_TOP_SONG>0 and len(self.songs) >= config.DOWNLOAD_TOP_SONG:
break

if len(self.songs):
Expand Down

0 comments on commit bbf74df

Please sign in to comment.