We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3fbfdb6 commit 6655032Copy full SHA for 6655032
1 file changed
pythonbits/bb.py
@@ -246,8 +246,13 @@ def _render_tv_specifier(self):
246
title = self['title_arg']
247
else:
248
title = guess['title']
249
- return TvSpecifier(title, guess['season'],
250
- guess.get('episode', None))
+ try:
+ season = guess['season']
251
+ except KeyError:
252
+ raise Exception('Could not find a season in the path name. '
253
+ 'Try specifying it in the TITLE argument, '
254
+ 'e.g. "Some TV Show S02" for a season 2 pack')
255
+ return TvSpecifier(title, season, guess.get('episode', None))
256
257
@form_field('tags')
258
def _render_tags(self):
0 commit comments