-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
268 changed files
with
16,684 additions
and
1,005 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
.editorconfig | ||
.eslintrc | ||
pkg*.zip | ||
*-beta.zip | ||
*.example | ||
*.lock | ||
build/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,44 @@ | ||
/** GitHub@alexey-bass | ||
* Simply compares two string version values. | ||
/** function compareVer({String|Number} L, {String|Number} R) => {Integer|Boolean}; | ||
* Simply compares two version values. | ||
* | ||
* Example: | ||
* Examples: | ||
* compareVer('1.1', '1.2') => -1 | ||
* compareVer('1.1', '1.1') => 0 | ||
* compareVer('1.2', '1.1') => 1 | ||
* compareVer('2.23.3', '2.22.3') => 1 | ||
* compareVer('1.2', '1.1') => +1 | ||
* compareVer('2.23.3', '2.22.3') => +1 | ||
* | ||
* Returns: | ||
* -1 = left is LOWER = right is GREATER | ||
* 0 = they are equal | ||
* 1 = left is GREATER = right is LOWER | ||
* And FALSE if one of input versions are not valid | ||
* -1 => L < R: L is LOWER <-> R is HIGHER | ||
* 0 => L = R: L and R are EQUAL | ||
* +1 => L > R: L is HIGHER <-> R is LOWER | ||
* false => one of the versions is invalid | ||
* | ||
* @function | ||
* @param {String} left Version #1 | ||
* @param {String} right Version #2 | ||
* @param {String|Number} L Version #1 | ||
* @param {String|Number} R Version #2 | ||
* @return {Integer|Boolean} | ||
* @author Alexey Bass (albass) | ||
* @since 2011-07-14 | ||
* @author Alexey Bass (GitHub@alexey-bass) | ||
* @since 2011-07-14 | ||
*/ | ||
function compareVer(left, right) { | ||
if(typeof left + typeof right != 'stringstring') | ||
function compareVer(L, R) { | ||
if(!/^(string|number)(string|number)$/i.test(typeof L + typeof R)) | ||
return false; | ||
|
||
for(let a = left.split('.'), b = right.split('.'), i = 0, l = Math.max(a.length, b.length); i < l; i++) { | ||
if((a[i] && !b[i] && parseInt(a[i]) > 0) || (parseInt(a[i]) > parseInt(b[i]))) | ||
L += ''; | ||
R += ''; | ||
|
||
let pI = Number.parseInt || parseInt || (string => +string.replace(/^\s*(-?\d+)[^]*$/, '$1')), | ||
mx = Math.max || ((...numbers) => numbers.sort((a, b) => +a < +b? +1: -1)[0]); | ||
|
||
for(let a = L.split('.'), b = R.split('.'), i = 0, l = mx(a.length, b.length), p = pI; i < l; i++) { | ||
if((a[i] && !b[i] && p(a[i]) > 0) || (p(a[i]) > p(b[i]))) | ||
return +1 | ||
/* left is higher */; | ||
else if((b[i] && !a[i] && parseInt(b[i]) > 0) || (parseInt(a[i]) < parseInt(b[i]))) | ||
/* L > R */; | ||
else if((b[i] && !a[i] && p(b[i]) > 0) || (p(a[i]) < p(b[i]))) | ||
return -1 | ||
/* right is higher */; | ||
/* L < R */; | ||
} | ||
|
||
return 0 | ||
/* equal */; | ||
/* L = R */; | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
{ | ||
"name": "Web to Plex", | ||
"description": "Adds a button on various movie & TV show sites to open the item in Plex, or send to your designated NZB manager for download.", | ||
"homepage_url": "https://github.com/SpaceK33z/web-to-plex/", | ||
"homepage_url": "https://webtoplex.github.io/", | ||
|
||
"manifest_version": 2, | ||
"version": "4.1.1.9", | ||
"version": "4.1.1.11", | ||
"browser_specific_settings": { | ||
"gecko": { | ||
"id": "[email protected]", | ||
|
@@ -103,8 +103,8 @@ | |
"matches": ["*://itunes.apple.com/*"], | ||
"js": ["utils.js", "itunes$.js"] | ||
},{ | ||
"matches": ["*://*.metacritic.com/*"], | ||
"js": ["utils.js", "metacritic$.js"] | ||
"matches": ["*://*.shanaproject.com/*"], | ||
"js": ["utils.js", "shanaproject$.js"] | ||
},{ | ||
"matches": ["*://*.fandango.com/*"], | ||
"js": ["utils.js", "fandango$.js"] | ||
|
@@ -154,7 +154,7 @@ | |
"matches": ["*://*.tubitv.com/*"], | ||
"js": ["utils.js", "tubi$.js"] | ||
},{ | ||
"matches": ["*://ephellon.github.io/web.to.plex/?*", "*://ephellon.github.io/web.to.plex/index.html?*", "*://ephellon.github.io/web.to.plex/login.html?*"], | ||
"matches": ["*://webtoplex.github.io/web/*", "*://ephellon.github.io/web.to.plex/*"], | ||
"js": ["utils.js", "webtoplex$.js"] | ||
},{ | ||
"matches": ["*://app.plex.tv/desktop/*"], | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.