mirror of
https://github.com/moparisthebest/SickRage
synced 2025-01-07 11:58:01 -05:00
Fixed TVRage searches
This commit is contained in:
parent
00f38a7157
commit
9dd7d58618
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user