diff options
Diffstat (limited to 'abs/core/mythtv/stable-0.28/mythtv/recordings')
-rw-r--r-- | abs/core/mythtv/stable-0.28/mythtv/recordings | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/abs/core/mythtv/stable-0.28/mythtv/recordings b/abs/core/mythtv/stable-0.28/mythtv/recordings index c1fe28a..1c588f3 100644 --- a/abs/core/mythtv/stable-0.28/mythtv/recordings +++ b/abs/core/mythtv/stable-0.28/mythtv/recordings @@ -42,6 +42,17 @@ then then rsync -a "$cattype/" "$tmprecdir/Sports" rm -r "$cattype" + else + #ignore Movies, TV Shows, Sports. Move all others to TV Shows + if [[ $cattype != "$tmprecdir/Movies" ]] && [[ $cattype != "$tmprecdir/TV Shows" ]] && [[ $cattype != "$tmprecdir/Sports" ]] + then + if [ ! -d "$tmprecdir/TV Shows" ] + then + mkdir "$tmprecdir/TV Shows" + fi + rsync -a "$cattype" "$tmprecdir/TV Shows" + rm -r "$cattype" + fi fi done |