mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-11-04 08:35:12 +00:00 
			
		
		
		
	[animeondemand] Extract teaser when no full episode available (#8923)
This commit is contained in:
		@@ -225,6 +225,8 @@ class AnimeOnDemandIE(InfoExtractor):
 | 
				
			|||||||
                })
 | 
					                })
 | 
				
			||||||
                entries.append(f)
 | 
					                entries.append(f)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            # Extract teaser only when full episode is not available
 | 
				
			||||||
 | 
					            if not formats:
 | 
				
			||||||
                m = re.search(
 | 
					                m = re.search(
 | 
				
			||||||
                    r'data-dialog-header=(["\'])(?P<title>.+?)\1[^>]+href=(["\'])(?P<href>.+?)\3[^>]*>Teaser<',
 | 
					                    r'data-dialog-header=(["\'])(?P<title>.+?)\1[^>]+href=(["\'])(?P<href>.+?)\3[^>]*>Teaser<',
 | 
				
			||||||
                    episode_html)
 | 
					                    episode_html)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user