Spaces:
				
			
			
	
			
			
		Sleeping
		
	
	
	
			
			
	
	
	
	
		
		
		Sleeping
		
	
		worldqwq
		
	commited on
		
		
					Commit 
							
							·
						
						b9085da
	
1
								Parent(s):
							
							a161330
								
Fixed a bug in writing log
Browse filesFormer-commit-id: 73f5362b23e08f505188e61f5a3792e7e0f6af0a
    	
        SRT.py
    CHANGED
    
    | @@ -137,7 +137,7 @@ class SRT_script(): | |
| 137 | 
             
                    lines = translate.split('\n\n')
         | 
| 138 | 
             
                    if len(lines) < (end_seg_id - start_seg_id + 1):
         | 
| 139 | 
             
                        count = 0
         | 
| 140 | 
            -
                        solved =  | 
| 141 | 
             
                        while count<5 and len(lines) != (end_seg_id - start_seg_id + 1):
         | 
| 142 | 
             
                            count += 1
         | 
| 143 | 
             
                            print("Solving Unmatched Lines|iteration {}".format(count))
         | 
| @@ -167,6 +167,7 @@ class SRT_script(): | |
| 167 | 
             
                            #print(len(lines))
         | 
| 168 |  | 
| 169 | 
             
                        if len(lines) < (end_seg_id - start_seg_id + 1):
         | 
|  | |
| 170 | 
             
                            print("Failed Solving unmatched lines, Manually parse needed")
         | 
| 171 |  | 
| 172 | 
             
                        if not os.path.exists("./logs"):
         | 
|  | |
| 137 | 
             
                    lines = translate.split('\n\n')
         | 
| 138 | 
             
                    if len(lines) < (end_seg_id - start_seg_id + 1):
         | 
| 139 | 
             
                        count = 0
         | 
| 140 | 
            +
                        solved = True
         | 
| 141 | 
             
                        while count<5 and len(lines) != (end_seg_id - start_seg_id + 1):
         | 
| 142 | 
             
                            count += 1
         | 
| 143 | 
             
                            print("Solving Unmatched Lines|iteration {}".format(count))
         | 
|  | |
| 167 | 
             
                            #print(len(lines))
         | 
| 168 |  | 
| 169 | 
             
                        if len(lines) < (end_seg_id - start_seg_id + 1):
         | 
| 170 | 
            +
                            solved = False
         | 
| 171 | 
             
                            print("Failed Solving unmatched lines, Manually parse needed")
         | 
| 172 |  | 
| 173 | 
             
                        if not os.path.exists("./logs"):
         |