old_contents: # -*- coding: utf-8 -*-
  
  from module.plugins.internal.SimpleCrypter import SimpleCrypter
  
  
  class XFSCrypter(SimpleCrypter):
      __name__    = "XFSCrypter"
      __type__    = "crypter"
      __version__ = "0.04"
  
      __pattern__ = r'^unmatchable$'
  
      __description__ = """XFileSharing decrypter plugin"""
      __license__     = "GPLv3"
      __authors__     = [("Walter Purcaro", "vuolter@gmail.com")]
  
  
      HOSTER_DOMAIN = None
      HOSTER_NAME = None
  
      URL_REPLACEMENTS = [(r'[?/&]+$', ""), (r'&?per_page=\d+', ""), (r'(.+/[^?]+)', r'\1\?'), (r'$', r'&per_page=10000')]
  
      COOKIES = [(HOSTER_DOMAIN, "lang", "english")]
  
      LINK_PATTERN = r'<(?:td|TD).*?>\s*<a href="(.+?)".*?>.+?(?:</a>)?\s*</(?:td|TD)>'
      NAME_PATTERN = r'<[tT]itle>.*?\: (?P<N>.+) folder</[tT]itle>'
  
      OFFLINE_PATTERN      = r'>\s*\w+ (Not Found|file (was|has been) removed)'
      TEMP_OFFLINE_PATTERN = r'>\s*\w+ server (is in )?(maintenance|maintainance)'
  
new_contents: # -*- coding: utf-8 -*-
  
  from module.plugins.internal.SimpleCrypter import SimpleCrypter
  
  
  class XFSCrypter(SimpleCrypter):
      __name__    = "XFSCrypter"
      __type__    = "crypter"
      __version__ = "0.04"
  
      __pattern__ = r'^unmatchable$'
  
      __description__ = """XFileSharing decrypter plugin"""
      __license__     = "GPLv3"
      __authors__     = [("Walter Purcaro", "vuolter@gmail.com")]
  
  
      HOSTER_DOMAIN = None
      HOSTER_NAME = None
  
      URL_REPLACEMENTS = [(r'&?per_page=\d+', ""), (r'[?/&]+$', ""), (r'(.+/[^?]+)$', r'\1?'), (r'$', r'&per_page=10000')]
  
      COOKIES = [(HOSTER_DOMAIN, "lang", "english")]
  
      LINK_PATTERN = r'<(?:td|TD).*?>\s*<a href="(.+?)".*?>.+?(?:</a>)?\s*</(?:td|TD)>'
      NAME_PATTERN = r'<[tT]itle>.*?\: (?P<N>.+) folder</[tT]itle>'
  
      OFFLINE_PATTERN      = r'>\s*\w+ (Not Found|file (was|has been) removed)'
      TEMP_OFFLINE_PATTERN = r'>\s*\w+ server (is in )?(maintenance|maintainance)'
  
subject: Improve URL_REPLACEMENTS