Skip to content

Commit

Permalink
Fix MythBE.getSGList following the addition of a fourth data point in
Browse files Browse the repository at this point in the history
the response of QUERY_SG_GETFILELIST in 7255d46.
  • Loading branch information
wagnerrp committed May 28, 2011
1 parent 2c7735e commit 94f90f6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions mythtv/bindings/python/MythTV/methodheap.py
Expand Up @@ -336,12 +336,12 @@ def getSGList(self,host,sg,path,filenamesonly=False):
type,name = entry.split('::')
dirs.append(name)
else:
type,name,size = entry.split('::')
if type == 'file':
files.append(name)
sizes.append(size)
if type == 'dir':
dirs.append(name)
se = entry.split('::')
if se[0] == 'file':
files.append(se[1])
sizes.append(se[2])
elif se[0] == 'dir':
dirs.append(se[1])
if filenamesonly:
return files
elif path == '':
Expand Down

0 comments on commit 94f90f6

Please sign in to comment.