mirror of
https://github.com/cyberboy666/r_e_c_u_r.git
synced 2025-12-05 16:00:06 +01:00
Merge pull request #139 from doctea/dev
Hide top-level folders too (dev)
This commit is contained in:
@@ -98,6 +98,8 @@ class BrowserMenu(Menu):
|
||||
|
||||
indent = ' ' * 4 * (current_level)
|
||||
for folder in sorted(dirs):
|
||||
if folder[0]=='.':
|
||||
continue
|
||||
is_open, char = self._check_folder_state(folder)
|
||||
self.menu_list.append(dict(name='{}{}{}'.format(indent, folder, char), slot='x'))
|
||||
if (is_open):
|
||||
@@ -107,6 +109,8 @@ class BrowserMenu(Menu):
|
||||
|
||||
files.sort()
|
||||
for f in files:
|
||||
if f[0]=='.':
|
||||
continue
|
||||
split_name = os.path.splitext(f)
|
||||
if (split_name[1].lower() in ['.mp4', '.mkv', '.avi', '.mov']):
|
||||
self.menu_list.append(dict(name='{}{}'.format(indent, f), slot='-'))
|
||||
|
||||
Reference in New Issue
Block a user