Fixed naming error with civilian and girl. Also prints total found videos.
This commit is contained in:
		
							
								
								
									
										20
									
								
								src/core.py
									
									
									
									
									
								
							
							
						
						
									
										20
									
								
								src/core.py
									
									
									
									
									
								
							| @@ -287,21 +287,25 @@ def main(): | |||||||
|     videos = scan_folder(path) |     videos = scan_folder(path) | ||||||
|  |  | ||||||
|     scout = [] |     scout = [] | ||||||
|     civilan = [] |     civilian = [] | ||||||
|     for video in videos: |     for video in videos: | ||||||
|         girl = pickforgirlscouts(video) |         sortingHat = pickforgirlscouts(video) | ||||||
|         if girl: |         if sortingHat: | ||||||
|             scout.append(girl) |             scout.append(video) | ||||||
|         else: |         else: | ||||||
|             civilan.append(girl) |             civilian.append(video) | ||||||
|  |  | ||||||
|     click.echo('%s scouts%s collected / %s civilans%s' % ( |     click.echo('%s scout%s collected / %s civilan%s / %s candidate%s' % ( | ||||||
|         click.style(str(len(scout)), bold=True, fg='green' if scout else None), |         click.style(str(len(scout)), bold=True, fg='green' if scout else None), | ||||||
|         's' if len(scout) > 1 else '', |         's' if len(scout) > 1 else '', | ||||||
|         click.style(str(len(civilan)), bold=True, fg='red' if civilan else None), |         click.style(str(len(civilian)), bold=True, fg='red' if civilian else None), | ||||||
|         's' if len(civilan) > 1 else '', |         's' if len(civilian) > 1 else '', | ||||||
|  |         click.style(str(len(videos)), bold=True, fg='blue' if videos else None), | ||||||
|  |         's' if len(videos) > 1 else '' | ||||||
|     )) |     )) | ||||||
|  |  | ||||||
|  |     for video in civilian: | ||||||
|  |         print(video) | ||||||
|  |  | ||||||
| if __name__ == '__main__': | if __name__ == '__main__': | ||||||
|     main() |     main() | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user