summaryrefslogtreecommitdiffstats
path: root/abs/core/LinHES-system/find_orphans.py
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2016-04-20 13:35:52 (GMT)
committerBritney Fransen <brfransen@gmail.com>2016-04-20 13:35:52 (GMT)
commit8948f44addbdd49e1b1f3429cb137d29964a21c0 (patch)
tree401e232349bffa8f675ea1ec6df288d08720e175 /abs/core/LinHES-system/find_orphans.py
parent0e5a34d2ca728f6848cb9b9fa605ec7dae103ecd (diff)
downloadlinhes_pkgbuild-8948f44addbdd49e1b1f3429cb137d29964a21c0.zip
linhes_pkgbuild-8948f44addbdd49e1b1f3429cb137d29964a21c0.tar.gz
linhes_pkgbuild-8948f44addbdd49e1b1f3429cb137d29964a21c0.tar.bz2
LinHES-system: find_orphans.py: add .ts extension and new storage groups to exclude
Diffstat (limited to 'abs/core/LinHES-system/find_orphans.py')
-rw-r--r--abs/core/LinHES-system/find_orphans.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/abs/core/LinHES-system/find_orphans.py b/abs/core/LinHES-system/find_orphans.py
index c134e82..b1d78de 100644
--- a/abs/core/LinHES-system/find_orphans.py
+++ b/abs/core/LinHES-system/find_orphans.py
@@ -69,8 +69,9 @@ def populate(host=None):
hosts = [r[0] for r in c.fetchall()]
for host in hosts:
for sg in DB.getStorageGroup():
- if sg.groupname in ('Videos','Banners','Coverart',\
- 'Fanart','Screenshots','Trailers'):
+ if sg.groupname in ('Videos','Banners','Coverart','Fanart',\
+ 'Music','MusicArt', 'Photographs',\
+ 'Screenshots','Trailers'):
continue
try:
dirs,files,sizes = BE.getSGList(host, sg.groupname, sg.dirname)
@@ -97,7 +98,7 @@ def populate(host=None):
if name in f:
unfiltered.remove(f)
for f in list(unfiltered):
- if not (f.endswith('.mpg') or f.endswith('.nuv')):
+ if not (f.endswith('.mpg') or f.endswith('.nuv') or f.endswith('.ts')):
continue
orphvids.append(f)
unfiltered.remove(f)