mirror of
https://github.com/searxng/searxng.git
synced 2026-07-25 17:31:23 +00:00
Compare commits
3 Commits
update_dat
...
bd27c36de2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bd27c36de2 | ||
|
|
927312d894 | ||
|
|
0c4c8e346e |
@@ -34,6 +34,27 @@
|
|||||||
"default": "https://www.instagram.com/$1"
|
"default": "https://www.instagram.com/$1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"mastodon_profile": {
|
||||||
|
"category_name": "Mastodon",
|
||||||
|
"url_name": "Mastodon profile",
|
||||||
|
"urls": {
|
||||||
|
"default": "https://fedirect.toolforge.org/?id=$1"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"lemmy_profile": {
|
||||||
|
"category_name": "Lemmy",
|
||||||
|
"url_name": "Lemmy profile",
|
||||||
|
"urls": {
|
||||||
|
"default": "https://fedirect.toolforge.org/?id=$1"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"peertube_profile": {
|
||||||
|
"category_name": "Peertube",
|
||||||
|
"url_name": "Peertube profile",
|
||||||
|
"urls": {
|
||||||
|
"default": "https://fedirect.toolforge.org/?id=$1"
|
||||||
|
}
|
||||||
|
},
|
||||||
"imdb_title": {
|
"imdb_title": {
|
||||||
"category_name": "IMDB",
|
"category_name": "IMDB",
|
||||||
"url_name": "IMDB title",
|
"url_name": "IMDB title",
|
||||||
|
|||||||
@@ -60,6 +60,9 @@ WIKIDATA_PROPERTIES = {
|
|||||||
'P2002': 'Twitter',
|
'P2002': 'Twitter',
|
||||||
'P2013': 'Facebook',
|
'P2013': 'Facebook',
|
||||||
'P2003': 'Instagram',
|
'P2003': 'Instagram',
|
||||||
|
'P4033': 'Mastodon',
|
||||||
|
'P11947': 'Lemmy',
|
||||||
|
'P12622': 'PeerTube',
|
||||||
}
|
}
|
||||||
|
|
||||||
# SERVICE wikibase:mwapi : https://www.mediawiki.org/wiki/Wikidata_Query_Service/User_Manual/MWAPI
|
# SERVICE wikibase:mwapi : https://www.mediawiki.org/wiki/Wikidata_Query_Service/User_Manual/MWAPI
|
||||||
@@ -475,6 +478,9 @@ def get_attributes(language):
|
|||||||
add_url('P2002', url_id='twitter_profile')
|
add_url('P2002', url_id='twitter_profile')
|
||||||
add_url('P2013', url_id='facebook_profile')
|
add_url('P2013', url_id='facebook_profile')
|
||||||
add_url('P2003', url_id='instagram_profile')
|
add_url('P2003', url_id='instagram_profile')
|
||||||
|
add_url('P4033', url_id='mastodon_profile')
|
||||||
|
add_url('P11947', url_id='lemmy_profile')
|
||||||
|
add_url('P12622', url_id='peertube_profile')
|
||||||
|
|
||||||
# Map
|
# Map
|
||||||
attributes.append(WDGeoAttribute('P625'))
|
attributes.append(WDGeoAttribute('P625'))
|
||||||
|
|||||||
Reference in New Issue
Block a user