mirror of
				https://github.com/RicterZ/nhentai.git
				synced 2025-11-04 02:50:55 +01:00 
			
		
		
		
	fix
This commit is contained in:
		@@ -4,8 +4,9 @@ os:
 | 
				
			|||||||
language: python
 | 
					language: python
 | 
				
			||||||
python:
 | 
					python:
 | 
				
			||||||
    - 2.7
 | 
					    - 2.7
 | 
				
			||||||
    - 2.6
 | 
					 | 
				
			||||||
    - 3.6
 | 
					    - 3.6
 | 
				
			||||||
 | 
					    - 3.5
 | 
				
			||||||
 | 
					    - 3.4
 | 
				
			||||||
 | 
					
 | 
				
			||||||
install:
 | 
					install:
 | 
				
			||||||
    - python setup.py install
 | 
					    - python setup.py install
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -44,7 +44,7 @@ def generate_html(output_dir='.', doujinshi_obj=None):
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    if doujinshi_obj is not None:
 | 
					    if doujinshi_obj is not None:
 | 
				
			||||||
        doujinshi_dir = os.path.join(output_dir, format_filename('%s-%s' % (doujinshi_obj.id,
 | 
					        doujinshi_dir = os.path.join(output_dir, format_filename('%s-%s' % (doujinshi_obj.id,
 | 
				
			||||||
                                                                            str(doujinshi_obj.name[:200]))))
 | 
					                                                                            doujinshi_obj.name)))
 | 
				
			||||||
    else:
 | 
					    else:
 | 
				
			||||||
        doujinshi_dir = '.'
 | 
					        doujinshi_dir = '.'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -64,6 +64,8 @@ def generate_html(output_dir='.', doujinshi_obj=None):
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    if doujinshi_obj is not None:
 | 
					    if doujinshi_obj is not None:
 | 
				
			||||||
        title = doujinshi_obj.name
 | 
					        title = doujinshi_obj.name
 | 
				
			||||||
 | 
					        if sys.version_info < (3, 0):
 | 
				
			||||||
 | 
					            title = title.encode('utf-8')
 | 
				
			||||||
    else:
 | 
					    else:
 | 
				
			||||||
        title = 'nHentai HTML Viewer'
 | 
					        title = 'nHentai HTML Viewer'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user