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

Update guessit to 2.0 #564

Merged
merged 1 commit into from
Jan 28, 2016
Merged

Update guessit to 2.0 #564

merged 1 commit into from
Jan 28, 2016

Conversation

Toilal
Copy link
Contributor

@Toilal Toilal commented Jan 26, 2016

Work in progress...

This is the first attempt for #550. There are a few tests failing, I don't have time to fix them for now, but feel free to comment the PR !

@@ -66,7 +66,7 @@ def get_matches(self, video, hearing_impaired=False):
if video.title and sanitized_string_equal(self.series_title, video.title):
matches.add('title')
# guess
matches |= guess_matches(video, guess_episode_info(self.movie_release_name + '.mkv'))
matches |= guess_matches(video, guessit(self.movie_release_name + '.mkv', {'type': 'episode'}))
Copy link
Owner

Choose a reason for hiding this comment

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

Do we still need the extension?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, it can be dropped.
Le 26 janv. 2016 23:48, "Antoine Bertin" notifications@github.com a
écrit :

In subliminal/providers/opensubtitles.py
#564 (comment):

@@ -66,7 +66,7 @@ def get_matches(self, video, hearing_impaired=False):
if video.title and sanitized_string_equal(self.series_title, video.title):
matches.add('title')
# guess

  •        matches |= guess_matches(video, guess_episode_info(self.movie_release_name + '.mkv'))
    
  •        matches |= guess_matches(video, guessit(self.movie_release_name + '.mkv', {'type': 'episode'}))
    

Do we still need the extension?


Reply to this email directly or view it on GitHub
https://github.com/Diaoul/subliminal/pull/564/files#r50914250.

@Diaoul
Copy link
Owner

Diaoul commented Jan 26, 2016

Thanks for the PR, I left some inline comments. I can see some tests are failing, I'll look into it tomorrow.

@Toilal
Copy link
Contributor Author

Toilal commented Jan 27, 2016

Ok, i've fixed remaining tests and made some changes with comments you have made (removed .mkv extensions, removed invalid link to inexistant rebulk docs). It should works now !

@Toilal
Copy link
Contributor Author

Toilal commented Jan 27, 2016

Do you plan a release after merging this one ? Would be great for Flexget and SickRage projects :p

@Toilal
Copy link
Contributor Author

Toilal commented Jan 27, 2016

There are still issues with python 2.7,i'll fix them. I'll also release guessit as 2.0 final.

@Toilal
Copy link
Contributor Author

Toilal commented Jan 28, 2016

I'm currently working on proper string support in both python 2 & python 3 in guessit. This will fix remaining failing test.

@Toilal
Copy link
Contributor Author

Toilal commented Jan 28, 2016

All is OK now !

Diaoul added a commit that referenced this pull request Jan 28, 2016
@Diaoul Diaoul merged commit 25a1ce1 into Diaoul:develop Jan 28, 2016
@Toilal
Copy link
Contributor Author

Toilal commented Jan 30, 2016

Requirements should be >=2.0.3 because of an issue with unicode handling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants