mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-01 00:43:37 +00:00
Fixed TVRage searches
This commit is contained in:
parent
00f38a7157
commit
9dd7d58618
1 changed files with 3 additions and 4 deletions
|
@ -435,10 +435,6 @@ class TVRage:
|
|||
|
||||
# clean up value and do type changes
|
||||
if value:
|
||||
if key == 'link':
|
||||
value = value.rsplit('/', 1)[1]
|
||||
key = 'id'
|
||||
|
||||
if isinstance(value, dict):
|
||||
if key == 'network':
|
||||
value = value['#text']
|
||||
|
@ -612,6 +608,9 @@ class TVRage:
|
|||
try:
|
||||
k = k.lower()
|
||||
if v is not None:
|
||||
if k == 'link':
|
||||
v = v.rsplit('/', 1)[1]
|
||||
k = 'id'
|
||||
v = self._cleanData(v)
|
||||
|
||||
self._setItem(sid, seas_no, ep_no, k, v)
|
||||
|
|
Loading…
Reference in a new issue