This commit is contained in:
parent
291cbfd3e6
commit
a37027dd8a
|
@ -60,10 +60,12 @@ class SocialSiteId(aenum.Enum):
|
|||
COHOST_PROFILE = 117203288
|
||||
SOUNDCLOUD_ARTIST = 3040
|
||||
IGDB_GAME_ID = 5794
|
||||
STEAM_APPLICATION_ID = 1733
|
||||
|
||||
GITHUB_REPOSITORY = 364
|
||||
|
||||
PLURK = 32111
|
||||
LINKEDIN_PERSONAL_PROFILE = 6634
|
||||
|
||||
# Browser bookmarks
|
||||
FIREFOX_PROFILE_BOOKMARKS = 33
|
||||
|
@ -141,7 +143,9 @@ WIKIDATA_PROPERTIES = {
|
|||
SocialSiteId.COHOST_PROFILE: WikidataInfo(None, 117203288),
|
||||
SocialSiteId.SOUNDCLOUD_ARTIST: WikidataInfo(3040, None),
|
||||
SocialSiteId.IGDB_GAME_ID: WikidataInfo(5794, None),
|
||||
SocialSiteId.STEAM_APPLICATION_ID: WikidataInfo(1733, None),
|
||||
SocialSiteId.GITHUB_REPOSITORY: WikidataInfo(None, 364),
|
||||
SocialSiteId.LINKEDIN_PERSONAL_PROFILE: WikidataInfo(6634, None),
|
||||
}
|
||||
|
||||
def re_social_subdomain(main_domain):
|
||||
|
@ -319,11 +323,17 @@ REGEXES = [
|
|||
# IGDB
|
||||
(re_social_path_adv('igdb.com', 'games', RE_ID), SocialSiteId.IGDB_GAME_ID),
|
||||
|
||||
# Steam game
|
||||
(re_social_path_adv('store.steampowered.com', 'app', RE_ID, RE_ANY_SUBPATH), SocialSiteId.STEAM_APPLICATION_ID),
|
||||
|
||||
# Github
|
||||
(re_social_path_adv('github.com', RE_DUAL_ID), SocialSiteId.GITHUB_REPOSITORY),
|
||||
|
||||
# Plurk
|
||||
(re_social_path_adv('plurk.com', RE_ID), SocialSiteId.PLURK),
|
||||
|
||||
# Linked in
|
||||
(re_social_path_adv('linkedin.com', 'in', RE_ID), SocialSiteId.LINKEDIN_PERSONAL_PROFILE),
|
||||
]
|
||||
|
||||
WELL_KNOWN_MASTODON_INSTANCES = frozenset({
|
||||
|
|
Loading…
Reference in New Issue
Block a user