Skip to content

Commit

Permalink
Properly extract file names from the query string (#51)
Browse files Browse the repository at this point in the history
Thanks @wytesk133
  • Loading branch information
wytesk133 authored and neffo committed Jul 23, 2019
1 parent 50d235a commit 1609d5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ const BingWallpaperIndicator = new Lang.Class({
}

log("XDG pictures directory detected as "+userPicturesDir+" saving pictures to "+BingWallpaperDir);
this.filename = BingWallpaperDir+imagejson['startdate']+'-'+this.imageURL.replace(/^.*[\\\/]/, '');
this.filename = BingWallpaperDir+imagejson['startdate']+'-'+this.imageURL.replace(/^.*[\\\/]/, '').replace('th?id=OHR.', '');
let file = Gio.file_new_for_path(this.filename);
let file_exists = file.query_exists(null);
let file_info = file_exists ? file.query_info ('*',Gio.FileQueryInfoFlags.NONE,null): 0;
Expand Down

0 comments on commit 1609d5b

Please sign in to comment.