1
0

Compare commits

..

2 Commits

Author SHA1 Message Date
072ab3f297 Bluesky and Plurk
All checks were successful
Python Package / Package (push) Has been skipped
2024-02-06 18:18:21 +01:00
4faf22d3e8 Fixed bug 2024-01-02 16:43:36 +01:00

View File

@ -52,7 +52,8 @@ class SocialSiteId(aenum.Enum):
DEVIANT_ART_ACCOUNT = 7737 DEVIANT_ART_ACCOUNT = 7737
DANBOORU_ARTIST = 30 DANBOORU_ARTIST = 30
BANDCAMP_PROFILE = 3283 BANDCAMP_PROFILE = 3283
BLUESKY_PROFILE = 32 BLUESKY_PROFILE = 12361
BLUESKY_DID = 12409
ITCH_IO_DEVELOPER = 8176 ITCH_IO_DEVELOPER = 8176
FIREFOX_PROFILE_BOOKMARKS = 33 FIREFOX_PROFILE_BOOKMARKS = 33
COHOST_PROFILE = 117203288 COHOST_PROFILE = 117203288
@ -61,6 +62,8 @@ class SocialSiteId(aenum.Enum):
GITHUB_REPOSITORY = 364 GITHUB_REPOSITORY = 364
PLURK = 32111
def wikidata_property(self, client): def wikidata_property(self, client):
return client.get(WIKIDATA_PROPERTIES[self]) return client.get(WIKIDATA_PROPERTIES[self])
@ -127,7 +130,8 @@ WIKIDATA_PROPERTIES = {
SocialSiteId.DEVIANT_ART_ACCOUNT: WikidataInfo(7737, None), SocialSiteId.DEVIANT_ART_ACCOUNT: WikidataInfo(7737, None),
SocialSiteId.DANBOORU_ARTIST: WikidataInfo(None, 64514853), SocialSiteId.DANBOORU_ARTIST: WikidataInfo(None, 64514853),
SocialSiteId.BANDCAMP_PROFILE: WikidataInfo(3283, 545966), SocialSiteId.BANDCAMP_PROFILE: WikidataInfo(3283, 545966),
SocialSiteId.BLUESKY_PROFILE: WikidataInfo(None, 78194383), SocialSiteId.BLUESKY_PROFILE: WikidataInfo(12361, 78194383),
SocialSiteId.BLUESKY_DID: WikidataInfo(12409, 78194383),
SocialSiteId.ITCH_IO_DEVELOPER: WikidataInfo(8176, 22905933), SocialSiteId.ITCH_IO_DEVELOPER: WikidataInfo(8176, 22905933),
SocialSiteId.COHOST_PROFILE: WikidataInfo(None, 117203288), SocialSiteId.COHOST_PROFILE: WikidataInfo(None, 117203288),
SocialSiteId.SOUNDCLOUD_ARTIST: WikidataInfo(3040, None), SocialSiteId.SOUNDCLOUD_ARTIST: WikidataInfo(3040, None),
@ -305,13 +309,16 @@ REGEXES = [
(re_social_path_adv('cohost.org', RE_ID), SocialSiteId.COHOST_PROFILE), (re_social_path_adv('cohost.org', RE_ID), SocialSiteId.COHOST_PROFILE),
# Soundcloud # Soundcloud
(re_social_path_adv('soundcloud.com', RE_ID), SocialSiteId.IGDB_GAME_ID), (re_social_path_adv('soundcloud.com', RE_ID), SocialSiteId.SOUNDCLOUD_ARTIST),
# IGDB # IGDB
(re_social_path_adv('igdb.com', 'games', RE_ID), SocialSiteId.IGDB_GAME_ID), (re_social_path_adv('igdb.com', 'games', RE_ID), SocialSiteId.IGDB_GAME_ID),
# Github # Github
(re_social_path_adv('github.com', RE_DUAL_ID), SocialSiteId.GITHUB_REPOSITORY), (re_social_path_adv('github.com', RE_DUAL_ID), SocialSiteId.GITHUB_REPOSITORY),
# Plurk
(re_social_path_adv('plurk.com', RE_ID), SocialSiteId.PLURK),
] ]
WELL_KNOWN_MASTODON_INSTANCES = frozenset({ WELL_KNOWN_MASTODON_INSTANCES = frozenset({