You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
125 lines
3.5 KiB
125 lines
3.5 KiB
9 months ago
|
# -*- 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 steamgriddb
|
||
|
|
||
|
|
||
|
__tests__ = (
|
||
|
{
|
||
|
"#url" : "https://www.steamgriddb.com/grid/368023",
|
||
|
"#category": ("", "steamgriddb", "asset"),
|
||
|
"#class" : steamgriddb.SteamgriddbAssetExtractor,
|
||
|
"#urls" : ("https://cdn2.steamgriddb.com/grid/"
|
||
|
"82fee171d62c044898d99ba0fddeb203.png"),
|
||
|
"#count" : 1,
|
||
|
"#sha1_content": "0bffaccae6f35f9fab529684a5b158d1cec4186b",
|
||
|
|
||
|
"game": {
|
||
|
"id" : 5259324,
|
||
|
"name": "Helltaker",
|
||
|
},
|
||
|
},
|
||
|
|
||
|
{
|
||
|
"#url" : "https://www.steamgriddb.com/grid/132605",
|
||
|
"#category": ("", "steamgriddb", "asset"),
|
||
|
"#class" : steamgriddb.SteamgriddbAssetExtractor,
|
||
|
"#count" : 2,
|
||
|
"#sha1_url" : "4ff9158c008a1f01921d7553bcabf5e6204cdc79",
|
||
|
"#sha1_content": "bc16c5eebf71463abdb33cfbf4b45a2fe092a2b2",
|
||
|
|
||
|
"game": {
|
||
|
"id" : 5247997,
|
||
|
"name": "OMORI",
|
||
|
},
|
||
|
},
|
||
|
|
||
|
{
|
||
|
"#url" : "https://www.steamgriddb.com/grid/132605",
|
||
|
"#category": ("", "steamgriddb", "asset"),
|
||
|
"#class" : steamgriddb.SteamgriddbAssetExtractor,
|
||
|
"#options" : {"download-fake-png": False},
|
||
|
"#count" : 1,
|
||
|
"#sha1_url" : "f6819c593ff65f15864796fb89581f05d21adddb",
|
||
|
"#sha1_content": "0d9e6114dd8bb9699182fbb7c6bd9064d8b0b6cd",
|
||
|
|
||
|
"game": {
|
||
|
"id" : 5247997,
|
||
|
"name": "OMORI",
|
||
|
},
|
||
|
},
|
||
|
|
||
|
{
|
||
|
"#url" : "https://www.steamgriddb.com/hero/61104",
|
||
|
"#category": ("", "steamgriddb", "asset"),
|
||
|
"#class" : steamgriddb.SteamgriddbAssetExtractor,
|
||
|
},
|
||
|
|
||
|
{
|
||
|
"#url" : "https://www.steamgriddb.com/logo/9610",
|
||
|
"#category": ("", "steamgriddb", "asset"),
|
||
|
"#class" : steamgriddb.SteamgriddbAssetExtractor,
|
||
|
},
|
||
|
|
||
|
{
|
||
|
"#url" : "https://www.steamgriddb.com/icon/173",
|
||
|
"#category": ("", "steamgriddb", "asset"),
|
||
|
"#class" : steamgriddb.SteamgriddbAssetExtractor,
|
||
|
},
|
||
|
|
||
|
{
|
||
|
"#url" : "https://www.steamgriddb.com/game/5259324/grids",
|
||
|
"#category": ("", "steamgriddb", "grids"),
|
||
|
"#class" : steamgriddb.SteamgriddbGridsExtractor,
|
||
|
"#range" : "1-10",
|
||
|
"#count" : 10,
|
||
|
},
|
||
|
|
||
|
{
|
||
|
"#url" : "https://www.steamgriddb.com/game/5259324/grids",
|
||
|
"#category": ("", "steamgriddb", "grids"),
|
||
|
"#class" : steamgriddb.SteamgriddbGridsExtractor,
|
||
|
"#options" : {"humor": False, "epilepsy": False, "untagged": False},
|
||
|
"#range" : "1-33",
|
||
|
"#count" : 33,
|
||
|
},
|
||
|
|
||
|
{
|
||
|
"#url" : "https://www.steamgriddb.com/game/5331605/heroes",
|
||
|
"#category": ("", "steamgriddb", "heroes"),
|
||
|
"#class" : steamgriddb.SteamgriddbHeroesExtractor,
|
||
|
},
|
||
|
|
||
|
{
|
||
|
"#url" : "https://www.steamgriddb.com/game/5255394/logos",
|
||
|
"#category": ("", "steamgriddb", "logos"),
|
||
|
"#class" : steamgriddb.SteamgriddbLogosExtractor,
|
||
|
},
|
||
|
|
||
|
{
|
||
|
"#url" : "https://www.steamgriddb.com/game/5279790/icons",
|
||
|
"#category": ("", "steamgriddb", "icons"),
|
||
|
"#class" : steamgriddb.SteamgriddbIconsExtractor,
|
||
|
},
|
||
|
|
||
|
{
|
||
|
"#url" : "https://www.steamgriddb.com/collection/332/grids",
|
||
|
"#category": ("", "steamgriddb", "grids"),
|
||
|
"#class" : steamgriddb.SteamgriddbGridsExtractor,
|
||
|
"#range" : "1-10",
|
||
|
"#count" : 10,
|
||
|
},
|
||
|
|
||
|
{
|
||
|
"#url" : "https://www.steamgriddb.com/collection/332/heroes",
|
||
|
"#category": ("", "steamgriddb", "heroes"),
|
||
|
"#class" : steamgriddb.SteamgriddbHeroesExtractor,
|
||
|
"#options" : {"animated": False},
|
||
|
"#count" : 0,
|
||
|
},
|
||
|
|
||
|
)
|