summaryrefslogtreecommitdiffstats
path: root/abs
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2013-10-06 23:26:54 (GMT)
committerBritney Fransen <brfransen@gmail.com>2013-10-06 23:26:54 (GMT)
commit0cc0148c66fc114a1e8d4dba7d24b588106bb16e (patch)
tree35dd0a5dbbb479fe28dc51e71eb2f213c67ddcee /abs
parentb0a49356ef9f847ccc713165f8a822a0b0de7f71 (diff)
downloadlinhes_pkgbuild-0cc0148c66fc114a1e8d4dba7d24b588106bb16e.zip
linhes_pkgbuild-0cc0148c66fc114a1e8d4dba7d24b588106bb16e.tar.gz
linhes_pkgbuild-0cc0148c66fc114a1e8d4dba7d24b588106bb16e.tar.bz2
mythtv: remove pytmdb3.cache
Diffstat (limited to 'abs')
-rw-r--r--abs/core/mythtv/stable-0.25/mythtv/PKGBUILD4
-rwxr-xr-xabs/core/mythtv/stable-0.25/mythtv/tmdb3_db_update.py8
2 files changed, 9 insertions, 3 deletions
diff --git a/abs/core/mythtv/stable-0.25/mythtv/PKGBUILD b/abs/core/mythtv/stable-0.25/mythtv/PKGBUILD
index 72957a9..936060b 100644
--- a/abs/core/mythtv/stable-0.25/mythtv/PKGBUILD
+++ b/abs/core/mythtv/stable-0.25/mythtv/PKGBUILD
@@ -6,7 +6,7 @@
pkgname=mythtv
pkgver=0.25
-pkgrel=32
+pkgrel=33
commit_hash=`cat ../git_src/git_hash`
pkgdesc="A Homebrew PVR project $commit_hash"
arch=('i686' 'x86_64')
@@ -169,4 +169,4 @@ md5sums=('7ef6de58240e7aad389a0b13d91b1cf6'
'f407d6af23e74a49540755420f84fa58'
'5469d9921b726db750b991c87d226158'
'187be42b1ffca6badfa539260ffef65e'
- 'fbe0fc68707b0c9564a4e00dfa3c4916')
+ '7460513f6791574eaa0ae0402ffd3688')
diff --git a/abs/core/mythtv/stable-0.25/mythtv/tmdb3_db_update.py b/abs/core/mythtv/stable-0.25/mythtv/tmdb3_db_update.py
index 4f31364..22fc635 100755
--- a/abs/core/mythtv/stable-0.25/mythtv/tmdb3_db_update.py
+++ b/abs/core/mythtv/stable-0.25/mythtv/tmdb3_db_update.py
@@ -6,7 +6,7 @@ from socket import gethostname
from MythTV import MythDB
mythdb = MythDB()
localhostname = gethostname()
-import sys
+import sys, os
# Function to set db setting. This setting is set in mythtv-setup.
def dbSettingChange():
@@ -15,6 +15,12 @@ def dbSettingChange():
else:
mythdb.settings.NULL.MovieGrabber = u'metadata/Movie/tmdb3.py'
print 'The MythTV database setting MovieGrabber has been updated to tmdb3.py'
+ try:
+ os.remove("/home/mythtv/.mythtv/pytmdb3.cache")
+ print 'tmdb3 cache at /home/mythtv/.mythtv/pytmdb3.cache removed.'
+ except OSError:
+ print "tmdb3 cache at /home/mythtv/.mythtv/pytmdb3.cache doesn't exist."
+ pass
return
#taken from systemconfig.py