From 1bd46156c0af689996995e119c867a7988ffcbd2 Mon Sep 17 00:00:00 2001 From: Andrew Udvare Date: Sun, 27 Jan 2019 21:49:48 -0500 Subject: [PATCH] [InstagramSaved] add test --- youtube_dl/extractor/instagram.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/youtube_dl/extractor/instagram.py b/youtube_dl/extractor/instagram.py index 25900e692..c33e8ccb2 100644 --- a/youtube_dl/extractor/instagram.py +++ b/youtube_dl/extractor/instagram.py @@ -360,6 +360,18 @@ class InstagramSavedIE(InstagramPlaylistIE): _VALID_URL = r'https?://(?:www\.)?instagram\.com/(?P[^/]{2,})/saved/?(?:$|[?#])' IE_DESC = 'Instagram saved media' IE_NAME = 'instagram:saved' + _TEST = { + 'url': 'https://www.instagram.com/tatsh2dx/saved/', + 'info_dict': { + 'id': 'tatsh2dx', + 'title': 'tatsh2dx', + }, + 'playlist_count': 5, + 'params': { + 'skip_download': True, + 'playlistend': 5, + } + } _QUERY_HASH = '8c86fed24fa03a8a2eea2a70a80c7b6b'