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

Concept version of upgrading based on preferred words #5987

Open
wants to merge 14 commits into
base: develop
Choose a base branch
from

Conversation

p0psicles
Copy link
Contributor

@p0psicles p0psicles commented Jan 11, 2019

Using a score configured per show.

  • PR is based on the DEVELOP branch
  • Don't send big changes all at once. Split up big PRs into multiple smaller PRs that are easier to manage and review
  • Read the contribution guide

TODO:

  • Implement db migration
  • Implement UI for configuring the preferred words score threshold
  • Implement logic
  • Update api-specs for the new fields in tv_episodes and tv_show

POC for #5184 #6239

@ghost
Copy link

ghost commented Jan 11, 2019

DeepCode analyzed this pull request.
There are no new issues.

@p0psicles p0psicles changed the title Concept version of upgrading based on preferred words. Concept version of upgrading based on preferred words Jan 11, 2019
@@ -16,14 +16,15 @@
# You should have received a copy of the GNU General Public License
# along with Medusa. If not, see <http://www.gnu.org/licenses/>.
"""Collection of generic used classes."""
from __future__ import unicode_literals
from __future__ import division, unicode_literals
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rtms: division can be removed again.

return ', '.join([Quality.qualityStrings[quality] for quality in qualities or []
if quality and quality in Quality.qualityStrings]) or 'None'

def want_episode(self, season, episode, quality):
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@medariox i've moved want_episode from the Series class to Result class. Imo it looks allot cleaner, with less parameter. And it just feels like this is a better home.

# Conflicts:
#	medusa/databases/main_db.py
#	medusa/search/core.py
* Added todo in query.
…usa/Medusa into feature/upgrade-pref-words

# Conflicts:
#	themes/dark/assets/css/vendors.css
#	themes/dark/assets/js/app.js
#	themes/dark/assets/js/index.js
#	themes/dark/assets/js/vendors.js
#	themes/light/assets/css/vendors.css
#	themes/light/assets/js/app.js
#	themes/light/assets/js/index.js
#	themes/light/assets/js/vendors.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant