Closed baderj closed 5 years ago
Seems to be an issue with Alpine, many names are not parsed correctly:
▶ docker run -it python:3.6.9-alpine3.9 /bin/sh
/ # pip3 install guessit
<snip>
Successfully installed babelfish-0.5.5 guessit-3.0.4 python-dateutil-2.8.0 rebulk-2.0.0 six-1.12.0
/ # python3
Python 3.6.9 (default, Jul 13 2019, 15:23:04)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import guessit
>>> guessit.guessit("Last Week S01E02")
MatchesDict([('title', 'Last Week S01E02'), ('type', 'movie')])
I think I found the issue: GuessIt does not work with Rebulk 2. On Rebulk 1.0.1 everything is peachy:
▶ guessit --version
+-------------------------------------------------------+
+ GuessIt 3.0.4 +
+-------------------------------------------------------+
+ Rebulk 1.0.1 +
+-------------------------------------------------------+
| Please report any bug or feature request at |
| https://github.com/guessit-io/guessit/issues. |
+-------------------------------------------------------+
▶ guessit "Treme.1x03.Right.Place,.Wrong.Time.HDTV.XviD-NoTV.avi"
For: Treme.1x03.Right.Place,.Wrong.Time.HDTV.XviD-NoTV.avi
GuessIt found: {
"title": "Treme",
"season": 1,
"episode": 3,
"episode_title": "Right Place, Wrong Time",
"source": "HDTV",
"video_codec": "Xvid",
"release_group": "NoTV",
"container": "avi",
"mimetype": "video/x-msvideo",
"type": "episode"
}
But after upgrading to 2.0.0, guessit fails:
▶ sudo pip3 install rebulk --upgrade
Collecting rebulk
Downloading https://files.pythonhosted.org/packages/ad/f6/3b27f7399ac8486d86e239e0a44acacfd0e0a3e5903071420c0b0cf8b465/rebulk-2.0.0.tar.gz (257kB)
100% |████████████████████████████████| 266kB 2.1MB/s
Requirement already up-to-date: six in /home/xxx/.local/lib/python3.6/site-packages (from rebulk)
Installing collected packages: rebulk
Found existing installation: rebulk 1.0.1
Uninstalling rebulk-1.0.1:
Successfully uninstalled rebulk-1.0.1
Running setup.py install for rebulk ... done
Successfully installed rebulk-2.0.0
▶ guessit --version
+-------------------------------------------------------+
+ GuessIt 3.0.4 +
+-------------------------------------------------------+
+ Rebulk 2.0.0 +
+-------------------------------------------------------+
| Please report any bug or feature request at |
| https://github.com/guessit-io/guessit/issues. |
+-------------------------------------------------------+
▶ guessit "Treme.1x03.Right.Place,.Wrong.Time.HDTV.XviD-NoTV.avi"
For: Treme.1x03.Right.Place,.Wrong.Time.HDTV.XviD-NoTV.avi
GuessIt found: {
"title": "Treme 1x03 Right Place, Wrong Time",
"source": "HDTV",
"video_codec": "Xvid",
"release_group": "NoTV",
"container": "avi",
"mimetype": "video/x-msvideo",
"type": "movie"
}
I need to release guessit 3.0.5 with Rebulk version locked to <2
.
Should be fixed with 3.0.5
release
The following throws an exception on Python 3.7.3, Alpine Linux 3.10.2:
Here is the exception report: