diff --git a/package.json b/package.json index 1db238240..d36864fd1 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { - "name": "Sonarr", + "name": "Radarr", "version": "2.0.0", - "description": "Sonarr", + "description": "Radarr", "main": "main.js", "scripts": { "build": "gulp build", @@ -9,7 +9,7 @@ }, "repository": { "type": "git", - "url": "git://github.com/Sonarr/Sonarr.git" + "url": "git://github.com/Radarr/Radarr.git" }, "author": "", "license": "GPL-3.0", diff --git a/src/UI/.jshintrc b/src/UI/.jshintrc index 888afe448..46ccc54aa 100644 --- a/src/UI/.jshintrc +++ b/src/UI/.jshintrc @@ -14,6 +14,7 @@ "define": true, "window": true, "document": true, - "console": true + "console": true, + "_": true } } diff --git a/src/UI/AddMovies/AddMoviesView.js b/src/UI/AddMovies/AddMoviesView.js index 50e21d291..a522deb56 100644 --- a/src/UI/AddMovies/AddMoviesView.js +++ b/src/UI/AddMovies/AddMoviesView.js @@ -79,7 +79,7 @@ module.exports = Marionette.Layout.extend({ if (options.action === "search") { this.search({term: options.query}); - } else if (options.action == "discover") { + } else if (options.action === "discover") { this.isDiscover = true; } @@ -254,7 +254,7 @@ module.exports = Marionette.Layout.extend({ _discover : function(action) { if (this.collection.action === action) { - return + return; } if (this.collection.specialProperty === "special") { diff --git a/src/UI/Cells/IndexerFlagsCell.js b/src/UI/Cells/IndexerFlagsCell.js index 1c3daa8ba..23d176c26 100644 --- a/src/UI/Cells/IndexerFlagsCell.js +++ b/src/UI/Cells/IndexerFlagsCell.js @@ -39,14 +39,14 @@ module.exports = Backgrid.Cell.extend({ break; case "PTP_Approved": addon = "✔"; - title = "Approved by PTP" + title = "Approved by PTP"; break; case "HDB_Internal": addon = "⭐️"; title = "HDBits Internal"; break; } - if (addon != "") { + if (addon !== "") { html += "{1} ".format(title, addon); } }); diff --git a/src/UI/Movies/Edit/EditMovieView.js b/src/UI/Movies/Edit/EditMovieView.js index 08542c207..70bb01424 100644 --- a/src/UI/Movies/Edit/EditMovieView.js +++ b/src/UI/Movies/Edit/EditMovieView.js @@ -23,7 +23,7 @@ var view = Marionette.ItemView.extend({ initialize : function() { this.model.set('profiles', Profiles); var pathState = this.model.get("pathState"); - if (pathState == "static") { + if (pathState === "static") { this.model.set("pathState", true); } else { this.model.set("pathState", false); diff --git a/src/UI/Settings/NetImport/Edit/NetImportEditView.js b/src/UI/Settings/NetImport/Edit/NetImportEditView.js index c2d588331..a96d193c0 100644 --- a/src/UI/Settings/NetImport/Edit/NetImportEditView.js +++ b/src/UI/Settings/NetImport/Edit/NetImportEditView.js @@ -43,11 +43,11 @@ var view = Marionette.ItemView.extend({ onRender : function() { var rootFolder = this.model.get("rootFolderPath"); - if (rootFolder != "") { + if (rootFolder !== "") { //this.ui.rootFolder.val(rootFolder); this.ui.rootFolder.children().filter(function() { //may want to use $.trim in here - return $(this).text() == rootFolder; + return $(this).text() === rootFolder; }).attr('selected', true); } else { var defaultRoot = Config.getValue(Config.Keys.DefaultRootFolderId);