]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[aenetworks] fix season episodes extraction(fixes #11669)
authorRemita Amine <remitamine@gmail.com>
Thu, 26 Jan 2017 18:15:43 +0000 (19:15 +0100)
committerRemita Amine <remitamine@gmail.com>
Thu, 26 Jan 2017 18:15:43 +0000 (19:15 +0100)
youtube_dl/extractor/aenetworks.py

index c5e079a40e753b6344e63cc6bc65f675c0f58071..c97317400ea1f660674d34ca22f4177365198d59 100644 (file)
@@ -87,7 +87,7 @@ class AENetworksIE(AENetworksBaseIE):
                     self._html_search_meta('aetn:SeriesTitle', webpage))
             elif url_parts_len == 2:
                 entries = []
-                for episode_item in re.findall(r'(?s)<div[^>]+class="[^"]*episode-item[^"]*"[^>]*>', webpage):
+                for episode_item in re.findall(r'(?s)<[^>]+class="[^"]*(?:episode|program)-item[^"]*"[^>]*>', webpage):
                     episode_attributes = extract_attributes(episode_item)
                     episode_url = compat_urlparse.urljoin(
                         url, episode_attributes['data-canonical'])