Distinguish torrent files (series vs movies)

Published on Tue Mar 01 2022

A neat regex for finding out whether a given torrent name is a series or a movie. Returns the full name of the series with the separator needed to make it pretty (ie, replace it with space or what you want). Also returns the season number or the year for the movie/series, depending on what was previously matches. If I had done this in perl there would be much less logic needed in the regex, but python is what I'm working with so..