1
0
Fork 0
mirror of https://gitlab.com/dstftw/youtube-dl.git synced 2020-11-16 09:42:26 +00:00

[animeondemand] Extract teaser when no full episode available (#8923)

This commit is contained in:
Sergey M․ 2016-03-21 23:35:50 +06:00
parent 5c69f7a479
commit 85c637b737

View file

@ -225,6 +225,8 @@ class AnimeOnDemandIE(InfoExtractor):
})
entries.append(f)
# Extract teaser only when full episode is not available
if not formats:
m = re.search(
r'data-dialog-header=(["\'])(?P<title>.+?)\1[^>]+href=(["\'])(?P<href>.+?)\3[^>]*>Teaser<',
episode_html)