Skip to content

Commit

Permalink
Merge pull request #442 from guessit-io/feature/fix-unknown-lang-dete…
Browse files Browse the repository at this point in the history
…ction

Fix for #441: Unknown shouldn't be detected as language
  • Loading branch information
ratoaq2 committed May 16, 2017
2 parents b4ed4b5 + f630d85 commit 268167b
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 10 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
language: python
python:
- 2.6
- 2.7
- 3.3
- 3.4
Expand Down
3 changes: 1 addition & 2 deletions guessit/rules/properties/language.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ def language():

UNDETERMINED = babelfish.Language('und')

SYN = {('und', None): ['unknown', 'inconnu', 'unk'],
('ell', None): ['gr', 'greek'],
SYN = {('ell', None): ['gr', 'greek'],
('spa', None): ['esp', 'español', 'espanol'],
('fra', None): ['français', 'vf', 'vff', 'vfi', 'vfq'],
('swe', None): ['se'],
Expand Down
11 changes: 11 additions & 0 deletions guessit/test/episodes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3846,3 +3846,14 @@
release_group: 0SEC [GloDLS]
container: mkv
type: episode

? Anthony.Bourdain.Parts.Unknown.S09E01.Los.Angeles.720p.HDTV.x264-MiNDTHEGAP
: title: Anthony Bourdain Parts Unknown
season: 9
episode: 1
episode_title: Los Angeles
screen_size: 720p
format: HDTV
video_codec: h264
release_group: MiNDTHEGAP
type: episode
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
'Operating System :: OS Independent',
'Intended Audience :: Developers',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
Expand Down
7 changes: 1 addition & 6 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
[tox]
envlist = py26,py27,py33,py34,py35,pypy

[testenv:py26]
commands =
{envbindir}/pip install -e .[dev,test]
{envpython} setup.py test
envlist = py27,py33,py34,py35,pypy

[testenv]
commands =
Expand Down

0 comments on commit 268167b

Please sign in to comment.