]> Raphaƫl G. Git Repositories - youtubedl/blobdiff - youtube_dl/extractor/adultswim.py
Start new release.
[youtubedl] / youtube_dl / extractor / adultswim.py
index acc4ce38dca31a4ec8401d253044eb7e4fb91b3e..88c96a95060738833f1cc7c85a251f1a26f4962e 100644 (file)
@@ -7,6 +7,7 @@ from .turner import TurnerBaseIE
 from ..utils import (
     int_or_none,
     strip_or_none,
 from ..utils import (
     int_or_none,
     strip_or_none,
+    url_or_none,
 )
 
 
 )
 
 
@@ -98,7 +99,7 @@ class AdultSwimIE(TurnerBaseIE):
             if not video_id:
                 entries = []
                 for episode in video_data.get('archiveEpisodes', []):
             if not video_id:
                 entries = []
                 for episode in video_data.get('archiveEpisodes', []):
-                    episode_url = episode.get('url')
+                    episode_url = url_or_none(episode.get('url'))
                     if not episode_url:
                         continue
                     entries.append(self.url_result(
                     if not episode_url:
                         continue
                     entries.append(self.url_result(