mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-01 00:43:37 +00:00
Merge branch 'origin/dev'
This commit is contained in:
commit
ee778b4bd8
1 changed files with 2 additions and 2 deletions
|
@ -410,7 +410,7 @@ class TVRage:
|
|||
# remove it to avoid errors. Change from SickBeard, from will14m
|
||||
xml = ElementTree.fromstring(src.rstrip("\r"))
|
||||
tree = ElementTree.ElementTree(xml)
|
||||
for elm in tree.iter():
|
||||
for elm in tree.findall('.//*'):
|
||||
elm.tag = robj.sub(lambda m: reDict[m.group(0)], elm.tag)
|
||||
|
||||
if elm.tag in 'firstaired':
|
||||
|
@ -428,7 +428,7 @@ class TVRage:
|
|||
try:
|
||||
xml = ElementTree.fromstring(src.rstrip("\r"))
|
||||
tree = ElementTree.ElementTree(xml)
|
||||
for elm in tree.iter():
|
||||
for elm in tree.findall('.//*'):
|
||||
elm.tag = robj.sub(lambda m: reDict[m.group(0)], elm.tag)
|
||||
|
||||
if elm.tag in 'firstaired' and elm.text:
|
||||
|
|
Loading…
Reference in a new issue