[rai] fix unavailable video format detection
authorRemita Amine <remitamine@gmail.com>
Fri, 20 Nov 2020 09:10:57 +0000 (10:10 +0100)
committerRemita Amine <remitamine@gmail.com>
Fri, 20 Nov 2020 09:10:57 +0000 (10:10 +0100)
youtube_dl/extractor/rai.py

index b072a0f3858b472ea9c61078bc7a8c979ea0cae4..06958966fe81d3739fac2457a8edf1795ba11641 100644 (file)
@@ -68,7 +68,7 @@ class RaiBaseIE(InfoExtractor):
 
             # This does not imply geo restriction (e.g.
             # http://www.raisport.rai.it/dl/raiSport/media/rassegna-stampa-04a9f4bd-b563-40cf-82a6-aad3529cb4a9.html)
-            if media_url == 'http://download.rai.it/video_no_available.mp4':
+            if '/video_no_available.mp4' in media_url:
                 continue
 
             ext = determine_ext(media_url)