Permalink
Browse files

hotfix for broken file ending

  • Loading branch information...
1 parent bef82d8 commit 0706930d206ac28f073baeacc300fd1752621384 Felix Richter committed Oct 26, 2010
Showing with 3 additions and 3 deletions.
  1. +1 −1 lib/magnetlib.js
  2. +2 −2 plugins/cheezburger_network.js
View
@@ -62,7 +62,7 @@ Image.prototype.fileName = function () {
};
Image.prototype.fileType = function () {
- return this.fileName().split('.').pop();
+ return this.fileName().split('.').pop().replace(/[?].*/,"");
};
var httpGet = exports.httpGet = function httpGet(content, callback, encoding) {
@@ -5,7 +5,7 @@
Sys = require('sys');
var urls = [
//'http://history.icanhascheezburger.com/',
- 'http://thereifixedit.failblog.org/page/30/',
+ 'http://thereifixedit.failblog.org/',
'http://icanhascheezburger.com/',
'http://squee.icanhascheezburger.com/',
'http://objects.icanhascheezburger.com/',
@@ -28,7 +28,7 @@ var urls = [
'http://work.failblog.org/',
'http://win.failblog.org/',
'http://verydemotivational.com/',
- 'http://failbook.failblog.org/',
+ //'http://failbook.failblog.org/',
'http://poorlydressed.failblog.org/',
'http://engrishfunny.failblog.org/',
//'http://crazythingsparentssay.failblog.org/', does not compute

0 comments on commit 0706930

Please sign in to comment.