sh1nobuu / BitAnime

A Python script that allows you to download all of an anime's episodes at once.
23 stars 10 forks source link

Easy Linux Support #1

Closed port19x closed 3 years ago

port19x commented 3 years ago

ctypes.windll.kernel32.SetConsoleTitleW("BitAnime") assumes a windows operating system. By catching the resulting exception, you can easily enable linux support ootb. I'll make a PR in a few mins

port19x commented 3 years ago

Actually, os.startfile isn't platform agnostic either. I adapted the solution from this stackoverflow post into a try except format to account for it

port19x commented 3 years ago

I successfully downloaded Tokyo Godfathers using my patched version on Linux. I can't confirm Mac support

sh1nobuu commented 3 years ago

I reviewed your code thanks for fixing it man. I appreciate it. I'll merge it now. Thanks again!