mirror of
https://github.com/Hopiu/RandomWallpaperGnome3.git
synced 2026-03-16 22:20:24 +00:00
update source names
This commit is contained in:
parent
4cc27badee
commit
f462de4494
2 changed files with 7 additions and 7 deletions
|
|
@ -811,10 +811,10 @@ You can also define a prefix that will be added to the image URL.</property>
|
|||
<property name="can_focus">False</property>
|
||||
<property name="active_id">0</property>
|
||||
<items>
|
||||
<item id="unsplash">unsplash.com</item>
|
||||
<item id="desktoppr">desktoppr.co</item>
|
||||
<item id="wallhaven">alpha.wallhaven.cc</item>
|
||||
<item id="reddit">reddit</item>
|
||||
<item id="unsplash">Unsplash</item>
|
||||
<item id="desktoppr">Desktoppr</item>
|
||||
<item id="wallhaven">Wallhaven</item>
|
||||
<item id="reddit">Reddit</item>
|
||||
<item id="genericJSON" translatable="yes">Generic JSON</item>
|
||||
</items>
|
||||
</object>
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue