mirror of
				https://github.com/RicterZ/nhentai.git
				synced 2025-11-04 02:50:55 +01:00 
			
		
		
		
	remove debug print
This commit is contained in:
		@@ -71,7 +71,7 @@ def cmd_parser():
 | 
				
			|||||||
                      help='all search results')
 | 
					                      help='all search results')
 | 
				
			||||||
    parser.add_option('--page', '--page-range', type='string', dest='page', action='store', default='',
 | 
					    parser.add_option('--page', '--page-range', type='string', dest='page', action='store', default='',
 | 
				
			||||||
                      help='page number of search results. e.g. 1,2-5,14')
 | 
					                      help='page number of search results. e.g. 1,2-5,14')
 | 
				
			||||||
    parser.add_option('--sorting', dest='sorting', action='store', default='date',
 | 
					    parser.add_option('--sorting', dest='sorting', action='store', default='popular',
 | 
				
			||||||
                      help='sorting of doujinshi (recent / popular / popular-[today|week])',
 | 
					                      help='sorting of doujinshi (recent / popular / popular-[today|week])',
 | 
				
			||||||
                      choices=['recent', 'popular', 'popular-today', 'popular-week', 'date'])
 | 
					                      choices=['recent', 'popular', 'popular-today', 'popular-week', 'date'])
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -218,7 +218,6 @@ def search_parser(keyword, sorting, page, is_page_all=False):
 | 
				
			|||||||
            try:
 | 
					            try:
 | 
				
			||||||
                url = request('get', url=constant.SEARCH_URL, params={'query': keyword,
 | 
					                url = request('get', url=constant.SEARCH_URL, params={'query': keyword,
 | 
				
			||||||
                                                                      'page': p, 'sort': sorting}).url
 | 
					                                                                      'page': p, 'sort': sorting}).url
 | 
				
			||||||
                print(url)
 | 
					 | 
				
			||||||
                response = request('get', url.replace('%2B', '+')).json()
 | 
					                response = request('get', url.replace('%2B', '+')).json()
 | 
				
			||||||
            except Exception as e:
 | 
					            except Exception as e:
 | 
				
			||||||
                logger.critical(str(e))
 | 
					                logger.critical(str(e))
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user