Skip to content
Snippets Groups Projects
Verified Commit b5a9a5fb authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Added itch.io as a contribution platform

parent 87f03659
No related branches found
No related tags found
No related merge requests found
......@@ -150,6 +150,16 @@ class BandCamp(BasicUsernameInDomainProvider):
username_regex = r"^(\w+)\.bandcamp\.com"
@registry.register
class ItchIo(BasicUsernameInDomainProvider):
id = "itch-io"
additional_ids = ["itch", "itch.io"]
label = "itch.io"
url = "https://itch.io"
username_regex = r"^(\w+)\.itch\.io"
@registry.register
class Custom(Provider):
id = "custom"
......
......@@ -41,6 +41,11 @@ from retribute_api.search import means
"https://flattr.com/profile/username",
{"provider": "flattr", "id": "username"},
),
(
"https://flattr.com/profile/username",
{"provider": "flattr", "id": "username"},
),
("https://username.itch.io", {"provider": "itch-io", "id": "username"}),
],
)
def test_extract_from_url(input, expected):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment