# -*- coding: utf-8 -*- # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as # published by the Free Software Foundation. from gallery_dl.extractor import subscribestar import datetime __tests__ = ( { "#url" : "https://www.subscribestar.com/subscribestar", "#category": ("", "subscribestar", "user"), "#class" : subscribestar.SubscribestarUserExtractor, "#pattern" : r"https://(ss-uploads-prod\.b-cdn|\w+\.cloudfront)\.net/uploads(_v2)?/users/11/", "#count" : ">= 20", "author_id" : 11, "author_name": "subscribestar", "author_nick": "SubscribeStar", "content" : str, "date" : datetime.datetime, "id" : int, "num" : int, "post_id" : int, "type" : r"re:image|video|attachment", "url" : str, "?pinned" : bool, }, { "#url" : "https://www.subscribestar.com/subscribestar", "#category": ("", "subscribestar", "user"), "#class" : subscribestar.SubscribestarUserExtractor, "#options" : {"metadata": True}, "#range" : "1", "date": datetime.datetime, }, { "#url" : "https://subscribestar.adult/kanashiipanda", "#category": ("", "subscribestar", "user-adult"), "#class" : subscribestar.SubscribestarUserExtractor, "#range" : "1-10", "#count" : 10, }, { "#url" : "https://www.subscribestar.com/posts/102468", "#category": ("", "subscribestar", "post"), "#class" : subscribestar.SubscribestarPostExtractor, "#count" : 1, "author_id" : 11, "author_name": "subscribestar", "author_nick": "SubscribeStar", "content" : r"re: