[scrolller] support albums for subreddit results (#7339)

update GraphQL queries
This commit is contained in:
Mike Fährmann
2025-04-26 16:41:54 +02:00
parent 3ac33dce61
commit a44ea6b3d9
2 changed files with 126 additions and 58 deletions

View File

@@ -11,21 +11,20 @@ __tests__ = (
{
"#url" : "https://scrolller.com/r/AmateurPhotography",
"#class" : scrolller.ScrolllerSubredditExtractor,
"#pattern": r"https://\w+\.scrolller\.com/(\w+/)?[\w-]+-\w+\.(jpg|png)",
"#pattern": r"https://static\.scrolller\.com/\w+/(\w+/)?[\w-]+-\w+\.(jpg|png|webp)",
"#range" : "1-100",
"#count" : 100,
"albumUrl" : None,
"displayName" : None,
"fullLengthSource": None,
"gfycatSource" : None,
"hasAudio" : None,
"hasAudio" : bool,
"height" : int,
"id" : int,
"isFavorite" : False,
"isNsfw" : False,
"isOptimized" : bool,
"isPaid" : None,
"isPaid" : bool,
"mediaSources" : list,
"ownerAvatar" : None,
"redditPath" : r"re:/r/AmateurPhotography/comments/...",
@@ -36,7 +35,7 @@ __tests__ = (
"tags" : None,
"title" : str,
"url" : str,
"username" : None,
"username" : str,
"width" : int,
},