mirror of
				https://github.com/RicterZ/nhentai.git
				synced 2025-11-04 02:50:55 +01:00 
			
		
		
		
	忘记改了什么
This commit is contained in:
		@@ -1,6 +1,7 @@
 | 
			
		||||
#coding: utf-8
 | 
			
		||||
import os
 | 
			
		||||
import sys
 | 
			
		||||
import signal
 | 
			
		||||
import threading
 | 
			
		||||
import Queue
 | 
			
		||||
import requests
 | 
			
		||||
@@ -82,4 +83,5 @@ class Downloader(object):
 | 
			
		||||
        for thread in self.threads:
 | 
			
		||||
            thread.join()
 | 
			
		||||
 | 
			
		||||
        logger.log(15, u'🍺 All done, saved to \'%s\'!' % folder)
 | 
			
		||||
        logger.log(15, u'🍺 All done, saved to \'%s\'!' % folder)
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -14,7 +14,12 @@ def dojinshi_parser(id):
 | 
			
		||||
    dojinshi['id'] = id
 | 
			
		||||
    url = '%s/%d/' % (DETAIL_URL, id)
 | 
			
		||||
 | 
			
		||||
    response = requests.get(url).content
 | 
			
		||||
    try:
 | 
			
		||||
        response = requests.get(url).content
 | 
			
		||||
    except Exception, e:
 | 
			
		||||
        logger.critical('%s%s' % tuple(e.message))
 | 
			
		||||
        sys.exit()
 | 
			
		||||
 | 
			
		||||
    html = BeautifulSoup(response)
 | 
			
		||||
    dojinshi_info = html.find('div', attrs={'id': 'info'})
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user