We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a4b32b7 commit 2522fdaCopy full SHA for 2522fda
1 file changed
pythonbits/bb.py
@@ -213,7 +213,14 @@ class VideoSubmission(BbSubmission):
213
default_fields = BbSubmission.default_fields
214
215
def _render_guess(self):
216
- return {k: v for k, v in guessit.guessit(self['path']).items()}
+ if isinstance(self, TvSubmission):
217
+ type = 'episode'
218
+ guess = guessit.guessit(self['path'], options=('--type', 'episode'))
219
+ elif isinstance(self, MovieSubmission):
220
+ guess = guessit.guessit(self['path'], options=('--type', 'movie'))
221
+ else:
222
+ guess = guessit.guessit(self['path'])
223
+ return dict(guess)
224
225
def _render_confirmed_guess(self):
226
guess = {k: v for k, v in guessit.guessit(self['path']).items()}
0 commit comments