diff --git a/youtube_dl/extractor/ivi.py b/youtube_dl/extractor/ivi.py
index f5ab5f4af..7c8cb21c2 100644
--- a/youtube_dl/extractor/ivi.py
+++ b/youtube_dl/extractor/ivi.py
@@ -132,7 +132,7 @@ def _real_extract(self, url):
webpage, 'season number', default=None))
episode_number = int_or_none(self._search_regex(
- r']+itemprop="episode"[^>]*>\s*]+itemprop="episodeNumber"[^>]+content="(\d+)',
+ r'[^>]+itemprop="episode"[^>]*>\s*]+itemprop="episodeNumber"[^>]+content="(\d+)',
webpage, 'episode number', default=None))
description = self._og_search_description(webpage, default=None) or self._html_search_meta(