Skip to content

Commit

Permalink
fix choosing the wrong format
Browse files Browse the repository at this point in the history
  • Loading branch information
lejenome committed Dec 8, 2014
1 parent a75fedc commit 11abf61
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
3 changes: 3 additions & 0 deletions data/youtube-formats.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ var FORMATS = {
resolution: "360p"
}
};
/*
* STILL NOT SUPPORTED FORMATS
*/
var FORMATS_3D = {
"82": {
container: "mp4",
Expand Down
1 change: 1 addition & 0 deletions data/youtube.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@
if (formats[PREF_FORMATS[i]]) {
conf.url = formats[PREF_FORMATS[i]];
resolve(conf);
break;
}
});
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"author": "Moez Bouhlel <[email protected]> (http://lejenome.github.io/)",
"homepage": "https://github.com/lejenome/youtube-html5-player",
"license": "MPL 2.0",
"version": "0.1.4",
"version": "0.1.5",
"preferences": [
{
"name": "preferredCodec",
Expand Down
8 changes: 4 additions & 4 deletions test/test-main.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
var main = require("./main");

exports["test main"] = function(assert) {
assert.pass("Unit test running!");
assert.pass("Unit test running!");
};

exports["test main async"] = function(assert, done) {
assert.pass("async Unit test running!");
done();
assert.pass("async Unit test running!");
done();
};

require("sdk/test").run(exports);
require("sdk/test").run(exports);
Binary file modified youtube-video-player.xpi
Binary file not shown.

0 comments on commit 11abf61

Please sign in to comment.