flexget.components.sites.utils module#

Common tools used by plugins implementing search plugin api.

Note

Try to avoid using or extending this file!

We have normalizers in way too many places as is …

flexget.components.sites.utils.normalize_scene(text)[source]#

Normalize string according to scene standard.

Mainly, it replace accented chars by their ‘normal’ counterparts and removes special chars. https://en.wikipedia.org/wiki/Standard_(warez)#Naming for more information

flexget.components.sites.utils.normalize_unicode(text)[source]#
flexget.components.sites.utils.torrent_availability(seeds, leeches)[source]#

Return a rating based on seeds and leeches for a given torrent.

Parameters:
  • seeds – Number of seeds on the torrent

  • leeches – Number of leeches on the torrent

Returns:

A numeric rating