Fixed TVRage searches

This commit is contained in:
echel0n 2014-05-29 07:16:23 -07:00
parent 00f38a7157
commit 9dd7d58618

View file

@ -435,10 +435,6 @@ class TVRage:
# clean up value and do type changes # clean up value and do type changes
if value: if value:
if key == 'link':
value = value.rsplit('/', 1)[1]
key = 'id'
if isinstance(value, dict): if isinstance(value, dict):
if key == 'network': if key == 'network':
value = value['#text'] value = value['#text']
@ -612,6 +608,9 @@ class TVRage:
try: try:
k = k.lower() k = k.lower()
if v is not None: if v is not None:
if k == 'link':
v = v.rsplit('/', 1)[1]
k = 'id'
v = self._cleanData(v) v = self._cleanData(v)
self._setItem(sid, seas_no, ep_no, k, v) self._setItem(sid, seas_no, ep_no, k, v)