add podcast and section EQL variables for use with SsRr functions

(s('...', podcast))
(s('...', section))
This commit is contained in:
auouymous 2020-06-08 21:17:30 -06:00
parent d2db5b001c
commit d8320aa204
1 changed files with 4 additions and 0 deletions

View File

@ -117,6 +117,10 @@ class Matcher(object):
return episode.total_time / 60
elif k in ('remaining', 'rem'):
return (episode.total_time - episode.current_position) / 60
elif k == 'podcast':
return episode.channel.title
elif k == 'section':
return episode.channel.section
raise KeyError(k)