|
@ -810,12 +810,12 @@ class GenericProvider(object): |
|
|
url = url.encode('utf-8') |
|
|
url = url.encode('utf-8') |
|
|
except (BaseException, Exception): |
|
|
except (BaseException, Exception): |
|
|
pass |
|
|
pass |
|
|
url = quote(url).strip().replace('&', '&') |
|
|
url = url.strip().replace('&', '&') |
|
|
if not url: |
|
|
if not url: |
|
|
url = '' |
|
|
url = '' |
|
|
return url if re.match('(?i)(https?://|magnet:)', url) \ |
|
|
return url if re.match('(?i)(https?://|magnet:)', url) \ |
|
|
else (url_tmpl or self.urls.get('get', (getattr(self, 'url', '') or |
|
|
else (url_tmpl or self.urls.get('get', (getattr(self, 'url', '') or |
|
|
getattr(self, 'url_base')) + '%s')) % url.lstrip('/') |
|
|
getattr(self, 'url_base')) + '%s')) % quote(url).lstrip('/') |
|
|
|
|
|
|
|
|
@staticmethod |
|
|
@staticmethod |
|
|
def _header_row(table_row, custom_match=None, custom_tags=None, header_strip=''): |
|
|
def _header_row(table_row, custom_match=None, custom_tags=None, header_strip=''): |
|
|