From f462de4494bb4860778b47a1e9c4321d0f8a8f22 Mon Sep 17 00:00:00 2001 From: Wolfgang Rumpler Date: Sun, 19 Aug 2018 11:01:56 +0200 Subject: [PATCH] update source names --- randomwallpaper@iflow.space/settings.ui | 8 ++++---- randomwallpaper@iflow.space/sourceAdapter.js | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/randomwallpaper@iflow.space/settings.ui b/randomwallpaper@iflow.space/settings.ui index 5c65552..b7fec11 100644 --- a/randomwallpaper@iflow.space/settings.ui +++ b/randomwallpaper@iflow.space/settings.ui @@ -811,10 +811,10 @@ You can also define a prefix that will be added to the image URL. False 0 - unsplash.com - desktoppr.co - alpha.wallhaven.cc - reddit + Unsplash + Desktoppr + Wallhaven + Reddit Generic JSON diff --git a/randomwallpaper@iflow.space/sourceAdapter.js b/randomwallpaper@iflow.space/sourceAdapter.js index 138326f..ad3e3a1 100644 --- a/randomwallpaper@iflow.space/sourceAdapter.js +++ b/randomwallpaper@iflow.space/sourceAdapter.js @@ -107,7 +107,7 @@ var DesktopperAdapter = new Lang.Class({ let imageDownloadUrl = encodeURI(response.image.url); if (callback) { - let historyEntry = new HistoryModule.HistoryEntry(null, 'desktopper.co', imageDownloadUrl); + let historyEntry = new HistoryModule.HistoryEntry(null, 'Desktopper', imageDownloadUrl); historyEntry.source.sourceUrl = 'https://www.desktoppr.co/'; callback(historyEntry); } @@ -298,7 +298,7 @@ var WallhavenAdapter = new Lang.Class({ imageDownloadUrl = encodeURI(imageDownloadUrl); if (callback) { - let historyEntry = new HistoryModule.HistoryEntry(null, 'wallhaven.cc', imageDownloadUrl); + let historyEntry = new HistoryModule.HistoryEntry(null, 'Wallhaven', imageDownloadUrl); historyEntry.source.sourceUrl = 'https://alpha.wallhaven.cc/'; historyEntry.source.imageLinkUrl = url; callback(historyEntry); @@ -394,7 +394,7 @@ var RedditAdapter = new Lang.Class({ const imageDownloadUrl = submission.preview.images[0].source.url; if (callback) { - let historyEntry = new HistoryModule.HistoryEntry(null, 'reddit', imageDownloadUrl); + let historyEntry = new HistoryModule.HistoryEntry(null, 'Reddit', imageDownloadUrl); historyEntry.source.sourceUrl = 'https://www.reddit.com/' + submission.subreddit_name_prefixed; historyEntry.source.imageLinkUrl = 'https://www.reddit.com/' + submission.permalink; callback(historyEntry);