From 8a58d7f9737a1f1e7ae6dbc64147c87d6f0716f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joel=20K=C3=A5berg?= Date: Sun, 24 Nov 2013 14:51:03 +0100 Subject: [PATCH] use hostname instead of TorrentPotato (dashboard) --- couchpotato/core/providers/torrent/torrentpotato/main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/couchpotato/core/providers/torrent/torrentpotato/main.py b/couchpotato/core/providers/torrent/torrentpotato/main.py index 99511578..70320954 100644 --- a/couchpotato/core/providers/torrent/torrentpotato/main.py +++ b/couchpotato/core/providers/torrent/torrentpotato/main.py @@ -3,6 +3,7 @@ from couchpotato.core.helpers.variable import splitString, tryInt from couchpotato.core.logger import CPLog from couchpotato.core.providers.base import ResultList from couchpotato.core.providers.torrent.base import TorrentProvider +from urlparse import urlparse import re import traceback @@ -49,6 +50,7 @@ class TorrentPotato(TorrentProvider): results.append({ 'id': torrent.get('torrent_id'), 'protocol': 'torrent' if re.match('^(http|https|ftp)://.*$', torrent.get('download_url')) else 'torrent_magnet', + 'provider_extra': urlparse(host['host']).hostname or host['host'], 'name': toUnicode(torrent.get('release_name')), 'url': torrent.get('download_url'), 'detail_url': torrent.get('details_url'),