Skip to content

Commit

Permalink
[aparatcam] add test
Browse files Browse the repository at this point in the history
  • Loading branch information
schnusch committed Jan 3, 2021
1 parent 89d2e22 commit 4006ab3
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion youtube_dl/extractor/aparatcam.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,18 @@

class AparatCamIE(InfoExtractor):
_VALID_URL = r'https?://aparat.cam/(?P<id>[^/?#]+)'
_TESTS = []
_TESTS = [{
'url': 'https://aparat.cam/n4d6dh0wvlpr',
'md5': '825e761f785b60b71b0b197db97a3a40',
'info_dict': {
'id': 'n4d6dh0wvlpr',
'protocol': 'm3u8',
'ext': 'mp4',
'title': 'Funny Cats Compilation 2020 Best Funny Cat Videos Ever Funny Vines',
'thumbnail': r're:^https?://.*\.jpg$',
'age_limit': 18,
},
}]

def _real_extract(self, url):
video_id = self._match_id(url)
Expand Down

0 comments on commit 4006ab3

Please sign in to comment.