mirror of
				https://gitlab.com/ytdl-org/youtube-dl.git
				synced 2025-11-04 10:47:08 -05:00 
			
		
		
		
	[pornhub] Improve video quality regex
This commit is contained in:
		@@ -94,7 +94,7 @@ class PornHubIE(InfoExtractor):
 | 
				
			|||||||
            format = path.split('/')[5].split('_')[:2]
 | 
					            format = path.split('/')[5].split('_')[:2]
 | 
				
			||||||
            format = "-".join(format)
 | 
					            format = "-".join(format)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            m = re.match(r'^(?P<height>[0-9]+)P-(?P<tbr>[0-9]+)K$', format)
 | 
					            m = re.match(r'^(?P<height>[0-9]+)[pP]-(?P<tbr>[0-9]+)[kK]$', format)
 | 
				
			||||||
            if m is None:
 | 
					            if m is None:
 | 
				
			||||||
                height = None
 | 
					                height = None
 | 
				
			||||||
                tbr = None
 | 
					                tbr = None
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user