dxing97 / subs2cia

Condensed Immersive Audiovisual media generator from subtitles for language learning
MIT License
89 stars 10 forks source link

[condense] fix type error when building outfile #3

Closed didmar closed 3 years ago

didmar commented 3 years ago

When running subs2cia -i /somewhere/* -b -d /elsewhere/, got the following exception:

    Traceback (most recent call last):
      ...
      File "/xxx/python3.8/site-packages/subs2cia/condense.py", line 193, in export_audio
        outfile = self.outdir / (self.outstem + f'.{self.out_audioext}')
    TypeError: unsupported operand type(s) for /: 'str' and 'str'

Fixed it by building a Path out of the self.outdir string.