From 927a8f226e532ba2187e8a9c9292453c3896f571 Mon Sep 17 00:00:00 2001
From: Britney Fransen <brfransen@gmail.com>
Date: Tue, 25 Oct 2016 14:39:48 +0000
Subject: mythtv & mythplugins: update to latest -fixes

recordings: move dirs that are not category_types into TV Shows
---
 abs/core/mythtv/stable-0.28/git_src/git_hash     |  2 +-
 abs/core/mythtv/stable-0.28/mythplugins/PKGBUILD |  2 +-
 abs/core/mythtv/stable-0.28/mythtv/PKGBUILD      |  4 ++--
 abs/core/mythtv/stable-0.28/mythtv/recordings    | 11 +++++++++++
 4 files changed, 15 insertions(+), 4 deletions(-)

diff --git a/abs/core/mythtv/stable-0.28/git_src/git_hash b/abs/core/mythtv/stable-0.28/git_src/git_hash
index 8a7b1da..b558f7e 100644
--- a/abs/core/mythtv/stable-0.28/git_src/git_hash
+++ b/abs/core/mythtv/stable-0.28/git_src/git_hash
@@ -1 +1 @@
-7c91ab6bc635c0299c029e6a0c148b290396b695
+7f8f1688e882cd0587097fe4867e20d8fa122cce
diff --git a/abs/core/mythtv/stable-0.28/mythplugins/PKGBUILD b/abs/core/mythtv/stable-0.28/mythplugins/PKGBUILD
index ef1a1de..4f74b0e 100644
--- a/abs/core/mythtv/stable-0.28/mythplugins/PKGBUILD
+++ b/abs/core/mythtv/stable-0.28/mythplugins/PKGBUILD
@@ -9,7 +9,7 @@ pkgname=('mytharchive'
          'mythweather'
          'mythzoneminder')
 pkgver=0.28
-pkgrel=22
+pkgrel=23
 arch=('i686' 'x86_64')
 url="http://www.mythtv.org"
 license=('GPL')
diff --git a/abs/core/mythtv/stable-0.28/mythtv/PKGBUILD b/abs/core/mythtv/stable-0.28/mythtv/PKGBUILD
index 1b0aa33..08c1aed 100644
--- a/abs/core/mythtv/stable-0.28/mythtv/PKGBUILD
+++ b/abs/core/mythtv/stable-0.28/mythtv/PKGBUILD
@@ -1,6 +1,6 @@
 pkgname=mythtv
 pkgver=0.28
-pkgrel=22
+pkgrel=23
 commit_hash=`cat ../git_src/git_hash`
 pkgdesc="A Homebrew PVR project $commit_hash"
 arch=('i686' 'x86_64')
@@ -116,4 +116,4 @@ md5sums=('e30b482dcd5f3e71c6419fd753bab2b1'
          'a38f26576662afdc02d11c7096839321'
          '0f674b9cad031ba1e03aaf6b5ee1499f'
          '6add9c16bbb988067e82029327e567b2'
-         'cc9e81a297f82e9df4ad72428c4f37c6')
+         'e73bb7c5036e44a68b6f6aa2f1bac077')
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
 
-- 
cgit v0.12

