improve coding style
This commit is contained in:
		
							parent
							
								
									e4d74e2778
								
							
						
					
					
						commit
						40fcba5edb
					
				
					 10 changed files with 12 additions and 12 deletions
				
			
		| 
						 | 
				
			
			@ -552,7 +552,7 @@ class FFmpegSubtitlesConvertorPP(FFmpegPostProcessor):
 | 
			
		|||
            sub_filenames.append(old_file)
 | 
			
		||||
            new_file = subtitles_filename(filename, lang, new_ext)
 | 
			
		||||
 | 
			
		||||
            if ext == 'dfxp' or ext == 'ttml' or ext == 'tt':
 | 
			
		||||
            if ext in ('dfxp', 'ttml', 'tt'):
 | 
			
		||||
                self._downloader.report_warning(
 | 
			
		||||
                    'You have requested to convert dfxp (TTML) subtitles into another format, '
 | 
			
		||||
                    'which results in style information loss')
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -26,7 +26,7 @@ class MetadataFromTitlePP(PostProcessor):
 | 
			
		|||
            regex += r'(?P<' + match.group(1) + '>.+)'
 | 
			
		||||
            lastpos = match.end()
 | 
			
		||||
        if lastpos < len(fmt):
 | 
			
		||||
            regex += re.escape(fmt[lastpos:len(fmt)])
 | 
			
		||||
            regex += re.escape(fmt[lastpos:])
 | 
			
		||||
        return regex
 | 
			
		||||
 | 
			
		||||
    def run(self, info):
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue