Skip to content

Commit

Permalink
remove debug print
Browse files Browse the repository at this point in the history
  • Loading branch information
w-e-w committed Feb 12, 2022
1 parent 9a2b3ad commit b1ac6a2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions book.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ def show_division_list(self):

def get_chapter_catalog_get_thread(self, division):
q_item = self.concurrent_download_queue.get()
print('s' + str(division['division_index']), end=',') # debug
response = HbookerAPI.Book.get_chapter_update(division['division_id'])
self.concurrent_download_queue.put(q_item)
if response.get('code') == '100000':
Expand All @@ -70,7 +69,6 @@ def get_chapter_catalog_get_thread(self, division):
self.get_chapter_catalog_mt_dl_lock.release()
else:
print(msg.m('failed_get_chap') + division['division_name'] + ": " + str(response) + '\n')
print('d' + str(division['division_index']), end=',') # debug

def get_chapter_catalog(self):
print(msg.m('get_chap'))
Expand All @@ -83,7 +81,6 @@ def get_chapter_catalog(self):
for get_thread in download_threads:
get_thread.join()
self.chapter_list.sort(key=lambda x: int(x['chapter_index']))
print() # debug
print("\r", end="")

def show_latest_chapter(self):
Expand Down
3 changes: 0 additions & 3 deletions run.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,8 @@ def shell_select_books(inputs):
return

print('《' + Vars.current_book.book_name + '》')
print('debug 0-1 ')
Vars.current_book.get_division_list()
print('debug 0-2 ')
Vars.current_book.get_chapter_catalog()
print('debug 0-3 ')
if len(inputs) < 3:
Vars.current_book.show_division_list()
Vars.current_book.show_latest_chapter()
Expand Down

0 comments on commit b1ac6a2

Please sign in to comment.