From 21c9d7fcc39deee77ab62053287a9d67448f73d1 Mon Sep 17 00:00:00 2001 From: Ruud Date: Thu, 20 Mar 2014 16:53:27 +0100 Subject: [PATCH] Use identifier helper --- couchpotato/core/media/_base/providers/torrent/hdbits.py | 4 ++-- couchpotato/core/media/_base/providers/torrent/yify.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/couchpotato/core/media/_base/providers/torrent/hdbits.py b/couchpotato/core/media/_base/providers/torrent/hdbits.py index 73bfc169..fa45b83f 100644 --- a/couchpotato/core/media/_base/providers/torrent/hdbits.py +++ b/couchpotato/core/media/_base/providers/torrent/hdbits.py @@ -2,7 +2,7 @@ import re import json import traceback -from couchpotato.core.helpers.variable import tryInt +from couchpotato.core.helpers.variable import tryInt, getIdentifier from couchpotato.core.logger import CPLog from couchpotato.core.media._base.providers.torrent.base import TorrentProvider @@ -44,7 +44,7 @@ class Base(TorrentProvider): def _search(self, movie, quality, results): - match = re.match(r'tt(\d{7})', movie['identifier']) + match = re.match(r'tt(\d{7})', getIdentifier(movie)) data = self._post_query(imdb = {'id': match.group(1)}) diff --git a/couchpotato/core/media/_base/providers/torrent/yify.py b/couchpotato/core/media/_base/providers/torrent/yify.py index 9380e651..fe7a9b40 100644 --- a/couchpotato/core/media/_base/providers/torrent/yify.py +++ b/couchpotato/core/media/_base/providers/torrent/yify.py @@ -1,6 +1,6 @@ import traceback -from couchpotato.core.helpers.variable import tryInt +from couchpotato.core.helpers.variable import tryInt, getIdentifier from couchpotato.core.logger import CPLog from couchpotato.core.media._base.providers.torrent.base import TorrentProvider @@ -35,7 +35,7 @@ class Base(TorrentProvider): def _search(self, movie, quality, results): - search_url = self.urls['search'] % (self.getDomain(), movie['identifier'], quality['identifier']) + search_url = self.urls['search'] % (self.getDomain(), getIdentifier(movie), quality['identifier']) data = self.getJsonData(search_url)