mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-11-04 00:25:15 +00:00 
			
		
		
		
	[bilibili] Skip assertion if HQ videos not available
This commit is contained in:
		@@ -80,9 +80,11 @@ class BiliBiliIE(InfoExtractor):
 | 
				
			|||||||
            note='Downloading HQ video info',
 | 
					            note='Downloading HQ video info',
 | 
				
			||||||
            fatal=False,
 | 
					            fatal=False,
 | 
				
			||||||
        )
 | 
					        )
 | 
				
			||||||
        hq_durls = hq_doc.findall('./durl') if hq_doc is not False else itertools.repeat(None)
 | 
					        if hq_doc is not False:
 | 
				
			||||||
 | 
					            hq_durls = hq_doc.findall('./durl')
 | 
				
			||||||
        assert len(lq_durls) == len(hq_durls)
 | 
					            assert len(lq_durls) == len(hq_durls)
 | 
				
			||||||
 | 
					        else:
 | 
				
			||||||
 | 
					            hq_durls = itertools.repeat(None)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        i = 1
 | 
					        i = 1
 | 
				
			||||||
        for lq_durl, hq_durl in zip(lq_durls, hq_durls):
 | 
					        for lq_durl, hq_durl in zip(lq_durls, hq_durls):
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user