Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Beta branch #147

Merged
merged 6 commits into from
Jan 4, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions PRIVACY
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Privacy Policy
==============

Credentials: The extension saves your credentials locally and may request other permissions (e.g. allowing a website to use a credential) using a secondary prompt. Your credentials will only be used to perform API requests to the requested service respectively (Plex, CouchPotato, Medusa, Ombi, Radarr, Sonarr, and/or Watcher). These credentials will never be shared with outside sources without express permission (i.e. a prompt will appear).

Sharing: To find out if the media is already available on Plex (or other services), the extension may send the title and year, and/or any IDs provided to the service.

Usage/Stats: The extension will not collect any information about your usage.
15 changes: 10 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ The sites used as search engines (IMDb, TMDb, and TVDb) will automatically creat

1. [Movieo](http://movieo.me/)
2. [IMDb](http://imdb.com/)
3. [Trakt.tv](https://trakt.tv/)
3. [Trakt](https://trakt.tv/)
4. [Letterboxd](https://letterboxd.com/)
5. [GoStream](https://gostream.site/)<sup>1</sup>
6. [TV Maze](http://www.tvmaze.com/)
Expand Down Expand Up @@ -105,6 +105,9 @@ The sites used as search engines (IMDb, TMDb, and TVDb) will automatically creat
38. [Free Movies Cinema](https://freemoviescinema.com/)<sup>6</sup>
39. [SnagFilms](https://snagfilms.com/)<sup>6</sup>
40. [Fox Searchlight](http://foxsearchlight.com/)<sup>6</sup>
41. [Verizon](https://tv.verizon.com/)<sup>5</sup>
42. [Tubi](https://tubitv.com/)
43. [Plex](https://app.plex.tv/)

</details>

Expand All @@ -123,13 +126,15 @@ The sites used as search engines (IMDb, TMDb, and TVDb) will automatically creat

### Install the extension (Store)

<a href="https://chrome.google.com/webstore/detail/movieo-to-plex/kmcinnefmnkfnmnmijfmbiaflncfifcn"><img alt="Get it for Chrome" src="badge.chrome.png" /></a>
<a href="https://addons.mozilla.org/en-US/firefox/addon/web-to-plex/"><img alt="Get it for Firefox" src="badge.firefox.png" /></a>
<a href="https://chrome.google.com/webstore/detail/web-to-plex/cbpdknicmfolbdpakjihphblioajkcfl"><img alt="Get it for Chrome" src="badge.crx.png" /></a>
<a href="https://addons.mozilla.org/en-US/firefox/addon/web-2-plex/"><img alt="Get it for Firefox" src="badge.moz.png" /></a>
<a href="https://microsoftedge.microsoft.com/addons/detail/njkjmenckbpknhnepepbiikcjeboooon"><img alt="Get it for Edge" src="badge.win.png" /></a>

### Install the source code (ZIP)

<a href="src.zip"><img alt="Get it for Chrome" src="source.chrome.png" /></a>
<a href="moz.zip"><img alt="Get it for Firefox" src="source.firefox.png" /></a>
<a href="src.zip"><img alt="Get it for Chrome" src="badge.src.crx.png" /></a>
<a href="moz.zip"><img alt="Get it for Firefox" src="badge.src.moz.png" /></a>
<a href="win.zip"><img alt="Get it for Edge" src="badge.src.win.png" /></a>

## Requirements

Expand Down
File renamed without changes
File renamed without changes
Binary file renamed source.chrome.png → badge.src.crx.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Binary file added badge.src.win.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added badge.win.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified moz.xpi
Binary file not shown.
Binary file modified moz.zip
Binary file not shown.
38 changes: 38 additions & 0 deletions moz/compare.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/** GitHub@alexey-bass
* Simply compares two string version values.
*
* Example:
* 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
*
* 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
*
* @function
* @param {String} left Version #1
* @param {String} right Version #2
* @return {Integer|Boolean}
* @author Alexey Bass (albass)
* @since 2011-07-14
*/
function compareVer(left, right) {
if(typeof left + typeof right != 'stringstring')
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])))
return +1
/* left is higher */;
else if((b[i] && !a[i] && parseInt(b[i]) > 0) || (parseInt(a[i]) < parseInt(b[i])))
return -1
/* right is higher */;
}

return 0
/* equal */;
}
10 changes: 1 addition & 9 deletions moz/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"homepage_url": "https://github.com/SpaceK33z/web-to-plex/",

"manifest_version": 2,
"version": "4.1.1.6",
"version": "4.1.1.8",
"browser_specific_settings": {
"gecko": {
"id": "mink.cbos@gmail.com",
Expand All @@ -24,7 +24,6 @@
"content_security_policy": "script-src 'self' 'unsafe-eval'; object-src 'self'",

"content_scripts": [
// Allow media downloads
{
"matches": [
"*://*.openload.co/*", "*://*.oload.co/*",
Expand Down Expand Up @@ -70,13 +69,6 @@
"all_frames": true
},

// Testing purposes only
{
"matches": ["*://ephellon.github.io/web.to.plex/test/*"],
"js": ["utils.js", "__test__.js"]
},

// The sites
{
"matches": ["*://*.movieo.me/*"],
"js": ["history-hack.js", "utils.js", "movieo$.js"]
Expand Down
Binary file removed moz/movie.poster.jpg
Binary file not shown.
Loading