Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#8488 closed defect (fixed)

python bindings scanStorageGroups fails with empty directory

Reported by: Daniel Agar <daniel@…> Owned by: Raymond Wagner
Priority: minor Milestone: 0.24
Component: Bindings - Python Version: 0.23-fixes
Severity: medium Keywords:
Cc: Ticket locked: no

Description

If an empty folder exists in storage groups, scanStorageGroups in 0.23 fixes python bindings fails.

Traceback (most recent call last):
  File "mythvideo_scan", line 6, in <module>
    m.scanStorageGroups(deleteold=True)
  File "/usr/lib/python2.6/dist-packages/MythTV/MythFunc.py", line 989, in scanStorageGroups
    folders = be.walkSG(sg.hostname, 'Videos', '/')
  File "/usr/lib/python2.6/dist-packages/MythTV/MythFunc.py", line 410, in walkSG
    res = walk(self, host, sg, base, top)
  File "/usr/lib/python2.6/dist-packages/MythTV/MythFunc.py", line 403, in walk
    res.update(walk(self, host, sg, root, path+'/'+d))
  File "/usr/lib/python2.6/dist-packages/MythTV/MythFunc.py", line 403, in walk
    res.update(walk(self, host, sg, root, path+'/'+d))
  File "/usr/lib/python2.6/dist-packages/MythTV/MythFunc.py", line 396, in walk
    dn, fn, fs = self.getSGList(host, sg, root+path+'/')
TypeError: 'int' object is not iterable
MythTV Version   : 24755
MythTV Branch    : branches/release-0-23-fixes
Network Protocol : 56
Library API      : 0.23.20100429-1
QT Version       : 4.5.2
Options compiled in:
 linux debug using_oss using_alsa using_pulse using_jack using_pulseoutput using_backend using_dvb using_firewire using_frontend using_glx_proc_addr_arb using_hdhomerun using_hdpvr using_iptv using_ivtv using_joystick_menu using_libudev using_lirc using_mheg using_opengl_video using_opengl_vsync using_qtdbus using_qtwebkit using_v4l using_x11 using_xrandr using_xv using_xvmc using_xvmc_vld using_xvmcw using_bindings_perl using_bindings_python using_opengl using_vdpau using_ffmpeg_threads using_libavc_5_3 using_live using_mheg

Change History (3)

comment:1 Changed 9 years ago by Raymond Wagner

Status: newaccepted

comment:2 Changed 9 years ago by Raymond Wagner

Resolution: fixed
Status: acceptedclosed

(In [24818]) Fixes issues in MythVideo?.scanStorageGroup() with extensionless files and empty directories. Fixes #8488.

comment:3 Changed 9 years ago by stuartm

Milestone: unknown0.24
Note: See TracTickets for help on using tickets.