'This method returns the version of the used libtorrent
library and is required for compatibility purposes'

def get_libtorrent_version(self):

    if hasattr(lt, '__version__'):
        return lt.__version__
    else:
        return lt.version
