diff --git a/.editorconfig b/.editorconfig index ac0331d697..7e7880565b 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,15 +1,10 @@ -# top-most EditorConfig file root = true -# Unix-style newlines with a newline ending every file -# and trailing whitespace removed [*] end_of_line = lf insert_final_newline = true trim_trailing_whitespace = true -# Matches multiple files with brace expansion notation -# Set default charset [*.{py,mako}] charset = utf-8 indent_style = space @@ -20,12 +15,9 @@ charset = utf-8 indent_style = space indent_size = 4 -# Matches configuration files for services like Travis, AppVeyor and Codecov [*.yml] indent_style = space indent_size = 2 -[{package.json, bower.json, webpack.config.js}] -charset = utf-8 -indent_style = space +[{package.json,bower.json,webpack.config.js}] indent_size = 2 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 19c6f246e2..2b6a671273 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,11 +2,9 @@ name: Build develop branch on: workflow_run: - workflows: [Python Packaging] - branches: | - - develop - types: - - completed + workflows: [ Python Packaging ] + branches: [ develop ] + types: [ completed, requested ] jobs: version: diff --git a/SickChill.py b/SickChill.py index d11749a6c0..70d0ecfc23 100755 --- a/SickChill.py +++ b/SickChill.py @@ -1,6 +1,7 @@ #!/usr/bin/env python3 import datetime +import mimetypes import os import platform import shutil @@ -28,14 +29,12 @@ setup_gettext() -import mimetypes - mimetypes.add_type("text/css", ".css") mimetypes.add_type("application/sfont", ".otf") mimetypes.add_type("application/sfont", ".ttf") mimetypes.add_type("application/javascript", ".js") mimetypes.add_type("application/font-woff", ".woff") -# Not sure about this one, but we also have halflings in .woff so I think it wont matter +# Not sure about this one, but we also have halflings in .woff, so I think it won't matter # mimetypes.add_type("application/font-woff2", ".woff2") from configobj import ConfigObj @@ -67,6 +66,8 @@ def __init__(self): self.run_as_daemon = False # web server constants + self.flask_server = None + self.web_server = None self.forced_port = None self.no_launch = False @@ -253,7 +254,7 @@ def load_shows_from_db(): for sql_show in sql_results: try: cur_show = TVShow(sql_show["indexer"], sql_show["indexer_id"]) - cur_show.nextEpisode() + cur_show.next_episode() settings.showList.append(cur_show) except Exception as error: logger.exception("There was an error creating the show in {}: Error {}".format(sql_show["location"], error)) @@ -301,7 +302,7 @@ def shutdown(self, event): """ if settings.started: sickchill.start.halt() # stop all tasks - sickchill.start.saveAll() # save all shows to DB + sickchill.start.save_all() # save all shows to DB # shutdown web server if self.web_server: diff --git a/sickchill/gui/slick/js/core.js b/sickchill/gui/slick/js/core.js index 89d2b87f43..7ee067ee3e 100644 --- a/sickchill/gui/slick/js/core.js +++ b/sickchill/gui/slick/js/core.js @@ -137,7 +137,7 @@ const SICKCHILL = { + ' ' + '', confirm(event) { - location.href = event.context.href + ($('#deleteFiles')[0].checked ? '&full=1' : ''); + location.href = event.context.href + ($('#deleteFiles')[0].checked ? '&full=1' : '&full=0'); }, }); diff --git a/sickchill/gui/slick/views/addShows_favoriteShows.mako b/sickchill/gui/slick/views/addShows_favoriteShows.mako index b588f8950a..6074c460ce 100644 --- a/sickchill/gui/slick/views/addShows_favoriteShows.mako +++ b/sickchill/gui/slick/views/addShows_favoriteShows.mako @@ -96,7 +96,7 @@ ${cur_result.siteRatingCount}
${_('Add Show')} + class="btn btn-xs">${_('Add Show')}
diff --git a/sickchill/gui/slick/views/addShows_popularShows.mako b/sickchill/gui/slick/views/addShows_popularShows.mako index 5ba74deb8f..620f5ae778 100644 --- a/sickchill/gui/slick/views/addShows_popularShows.mako +++ b/sickchill/gui/slick/views/addShows_popularShows.mako @@ -75,7 +75,7 @@
${_('Add Show')} + class="btn btn-xs">${_('Add Show')}
diff --git a/sickchill/gui/slick/views/config_providers.mako b/sickchill/gui/slick/views/config_providers.mako index 3a7cedb406..1eac64b38b 100644 --- a/sickchill/gui/slick/views/config_providers.mako +++ b/sickchill/gui/slick/views/config_providers.mako @@ -75,7 +75,7 @@