Browse Source

Add SiteInfo entries for more common sites

merge-requests/87/merge
Deimos 5 years ago
parent
commit
39449dd776
  1. 15
      tildes/tildes/lib/site_info.py

15
tildes/tildes/lib/site_info.py

@ -40,7 +40,9 @@ SITE_INFO_BY_DOMAIN = {
"aljazeera.com": SiteInfo("Al Jazeera"), "aljazeera.com": SiteInfo("Al Jazeera"),
"animenewsnetwork.com": SiteInfo("Anime News Network"), "animenewsnetwork.com": SiteInfo("Anime News Network"),
"apnews.com": SiteInfo("Associated Press"), "apnews.com": SiteInfo("Associated Press"),
"appleinsider.com": SiteInfo("AppleInsider"),
"arstechnica.com": SiteInfo("Ars Technica"), "arstechnica.com": SiteInfo("Ars Technica"),
"atlasobsura.com": SiteInfo("Atlas Obscura"),
"axios.com": SiteInfo("Axios"), "axios.com": SiteInfo("Axios"),
"bandcamp.com": SiteInfo("Bandcamp", content_type=None), "bandcamp.com": SiteInfo("Bandcamp", content_type=None),
"bbc.co.uk": SiteInfo("BBC"), "bbc.co.uk": SiteInfo("BBC"),
@ -52,13 +54,17 @@ SITE_INFO_BY_DOMAIN = {
"citylab.com": SiteInfo("CityLab"), "citylab.com": SiteInfo("CityLab"),
"cnbc.com": SiteInfo("CNBC"), "cnbc.com": SiteInfo("CNBC"),
"cnn.com": SiteInfo("CNN"), "cnn.com": SiteInfo("CNN"),
"currentaffairs.org": SiteInfo("Current Affairs"),
"dev.to": SiteInfo("DEV"), "dev.to": SiteInfo("DEV"),
"dw.com": SiteInfo("DW"), "dw.com": SiteInfo("DW"),
"eater.com": SiteInfo("Eater"),
"eurogamer.net": SiteInfo("Eurogamer"), "eurogamer.net": SiteInfo("Eurogamer"),
"forbes.com": SiteInfo("Forbes"), "forbes.com": SiteInfo("Forbes"),
"gamasutra.com": SiteInfo("Gamasutra"), "gamasutra.com": SiteInfo("Gamasutra"),
"github.com": SiteInfo("GitHub", show_author=True, content_type=None), "github.com": SiteInfo("GitHub", show_author=True, content_type=None),
"gizmodo.com": SiteInfo("Gizmodo"),
"gq.com": SiteInfo("GQ"), "gq.com": SiteInfo("GQ"),
"hackernoon.com": SiteInfo("Hacker Noon"),
"hpe.com": SiteInfo("Hewlett Packard Enterprise"), "hpe.com": SiteInfo("Hewlett Packard Enterprise"),
"huffpost.com": SiteInfo("HuffPost"), "huffpost.com": SiteInfo("HuffPost"),
"imgur.com": SiteInfo("Imgur", content_type=TopicContentType.IMAGE), "imgur.com": SiteInfo("Imgur", content_type=TopicContentType.IMAGE),
@ -75,6 +81,7 @@ SITE_INFO_BY_DOMAIN = {
"npr.org": SiteInfo("NPR"), "npr.org": SiteInfo("NPR"),
"nymag.com": SiteInfo("New York Magazine"), "nymag.com": SiteInfo("New York Magazine"),
"nytimes.com": SiteInfo("The New York Times"), "nytimes.com": SiteInfo("The New York Times"),
"outsideonline.com": SiteInfo("Outside"),
"pinknews.co.uk": SiteInfo("PinkNews"), "pinknews.co.uk": SiteInfo("PinkNews"),
"polygon.com": SiteInfo("Polygon"), "polygon.com": SiteInfo("Polygon"),
"propublica.org": SiteInfo("ProPublica"), "propublica.org": SiteInfo("ProPublica"),
@ -92,16 +99,24 @@ SITE_INFO_BY_DOMAIN = {
"smh.com.au": SiteInfo("The Sydney Morning Herald"), "smh.com.au": SiteInfo("The Sydney Morning Herald"),
"soundcloud.com": SiteInfo("SoundCloud", show_author=True, content_type=None), "soundcloud.com": SiteInfo("SoundCloud", show_author=True, content_type=None),
"spacenews.com": SiteInfo("SpaceNews"), "spacenews.com": SiteInfo("SpaceNews"),
"steamcommunity.com": SiteInfo("Steam"),
"steampowered.com": SiteInfo("Steam", content_type=None),
"techcrunch.com": SiteInfo("TechCrunch"), "techcrunch.com": SiteInfo("TechCrunch"),
"techdirt.com": SiteInfo("Techdirt"),
"technologyreview.com": SiteInfo("MIT Technology Review"), "technologyreview.com": SiteInfo("MIT Technology Review"),
"telegraph.co.uk": SiteInfo("The Telegraph"), "telegraph.co.uk": SiteInfo("The Telegraph"),
"theatlantic.com": SiteInfo("The Atlantic"), "theatlantic.com": SiteInfo("The Atlantic"),
"theconversation.com": SiteInfo("The Conversation"), "theconversation.com": SiteInfo("The Conversation"),
"thedrive.com": SiteInfo("The Drive"),
"theguardian.com": SiteInfo("The Guardian"), "theguardian.com": SiteInfo("The Guardian"),
"thehill.com": SiteInfo("The Hill"), "thehill.com": SiteInfo("The Hill"),
"theinformation.com": SiteInfo("The Information"), "theinformation.com": SiteInfo("The Information"),
"theoutline.com": SiteInfo("The Outline"), "theoutline.com": SiteInfo("The Outline"),
"theverge.com": SiteInfo("The Verge"), "theverge.com": SiteInfo("The Verge"),
"threadreaderapp.com": SiteInfo(
"Twitter (via Thread Reader)", content_type=TopicContentType.TWEET
),
"time.com": SiteInfo("TIME"),
"twitter.com": SiteInfo( "twitter.com": SiteInfo(
"Twitter", show_author=True, content_type=TopicContentType.TWEET "Twitter", show_author=True, content_type=TopicContentType.TWEET
), ),

Loading…
Cancel
Save