aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/aparat.py
diff options
context:
space:
mode:
Diffstat (limited to 'youtube_dl/extractor/aparat.py')
-rw-r--r--youtube_dl/extractor/aparat.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/aparat.py b/youtube_dl/extractor/aparat.py
index e394cb661..6eb8bbb6e 100644
--- a/youtube_dl/extractor/aparat.py
+++ b/youtube_dl/extractor/aparat.py
@@ -5,6 +5,7 @@ from .common import InfoExtractor
from ..utils import (
int_or_none,
mimetype2ext,
+ url_or_none,
)
@@ -43,7 +44,7 @@ class AparatIE(InfoExtractor):
formats = []
for item in file_list[0]:
- file_url = item.get('file')
+ file_url = url_or_none(item.get('file'))
if not file_url:
continue
ext = mimetype2ext(item.get('type'))