mirror of
				https://github.com/RicterZ/nhentai.git
				synced 2025-10-31 01:29:34 +01:00 
			
		
		
		
	add travis-ci test
This commit is contained in:
		| @@ -19,3 +19,4 @@ script: | |||||||
|     - NHENTAI=https://nhentai.net nhentai --tag lolicon |     - NHENTAI=https://nhentai.net nhentai --tag lolicon | ||||||
|     - NHENTAI=https://nhentai.net nhentai -F |     - NHENTAI=https://nhentai.net nhentai -F | ||||||
|     - NHENTAI=https://nhentai.net nhentai --file /tmp/test.txt |     - NHENTAI=https://nhentai.net nhentai --file /tmp/test.txt | ||||||
|  |     - nhentai --id=152503,146134 --gen-main --output=/tmp/ | ||||||
|   | |||||||
| @@ -138,7 +138,7 @@ def generate_main_html(output_dir='.'): | |||||||
|             with open('./main.html', 'wb') as f: |             with open('./main.html', 'wb') as f: | ||||||
|                 f.write(data.encode('utf-8')) |                 f.write(data.encode('utf-8')) | ||||||
|         logger.log( |         logger.log( | ||||||
|             15, 'Main Viewer has been write to \'{0}/main.html\''.format(output_dir)) |             15, 'Main Viewer has been write to \'{0}main.html\''.format(output_dir)) | ||||||
|     except Exception as e: |     except Exception as e: | ||||||
|         logger.warning('Writen Main Viewer failed ({})'.format(str(e))) |         logger.warning('Writen Main Viewer failed ({})'.format(str(e))) | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user