Bug #850 » 0001-Fixed-support-for-old-vdr-recording-folder-structure.patch
vdrnfofs/filesystemnodes.py | ||
---|---|---|
attr.st_mode = stat.S_IFREG | stat.S_IRUSR | stat.S_IRGRP | stat.S_IROTH
|
||
attr.st_nlink = 1
|
||
attr.st_size = self.size()
|
||
timevalues = self.path.rsplit('/', 1)[1][:16].replace('.', '-').split('-')
|
||
timevalues = self.path.rsplit('/', 1)[1][:16].replace('.', '-').replace(':', '-').split('-')
|
||
attr.st_mtime = time.mktime(datetime.datetime(*[ int(s) for s in timevalues ]).timetuple())
|
||
attr.st_uid = orig.st_uid
|
||
attr.st_gid = orig.st_gid
|
||
... | ... | |
if self.is_sub_folder(entry):
|
||
self.cache.append(DirNode(entry))
|
||
for recording in glob.glob(entry + '/*.rec'):
|
||
if os.path.exists(recording + '/info.vdr') or os.path.exists(recording + '/info'):
|
||
if os.path.exists(recording + '/info.vdr') or os.path.exists(recording + '/info') or os.path.exists(recording + '/summary.vdr'):
|
||
self.cache.append(MpgNode(recording))
|
||
self.cache.append(NfoNode(recording))
|
||
return self.cache
|