summaryrefslogtreecommitdiffstats
path: root/abs/core/mythtv/stable-0.25/mythplugins
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2012-12-18 20:49:34 (GMT)
committerBritney Fransen <brfransen@gmail.com>2012-12-18 20:49:34 (GMT)
commit6927c8defd4a95a61a90373f0babc5f376aa5763 (patch)
tree9c6433271b7281137089d444553dd203c9b068a2 /abs/core/mythtv/stable-0.25/mythplugins
parentcace87216a88208a87e4ef3a2f8fc24f9022988f (diff)
downloadlinhes_pkgbuild-6927c8defd4a95a61a90373f0babc5f376aa5763.zip
linhes_pkgbuild-6927c8defd4a95a61a90373f0babc5f376aa5763.tar.gz
linhes_pkgbuild-6927c8defd4a95a61a90373f0babc5f376aa5763.tar.bz2
mythplugins: mythburn.py.patch: check for a file instead of just the path
Diffstat (limited to 'abs/core/mythtv/stable-0.25/mythplugins')
-rw-r--r--abs/core/mythtv/stable-0.25/mythplugins/PKGBUILD4
-rw-r--r--abs/core/mythtv/stable-0.25/mythplugins/mythburn.py.patch55
2 files changed, 33 insertions, 26 deletions
diff --git a/abs/core/mythtv/stable-0.25/mythplugins/PKGBUILD b/abs/core/mythtv/stable-0.25/mythplugins/PKGBUILD
index 356e6c7..e190a02 100644
--- a/abs/core/mythtv/stable-0.25/mythplugins/PKGBUILD
+++ b/abs/core/mythtv/stable-0.25/mythplugins/PKGBUILD
@@ -12,7 +12,7 @@ pkgname=('mytharchive'
'mythweather'
'mythzoneminder')
pkgver=0.25
-pkgrel=7
+pkgrel=8
arch=('i686' 'x86_64')
url="http://www.mythtv.org"
@@ -134,4 +134,4 @@ package_mythzoneminder() {
make INSTALL_ROOT="${pkgdir}" install || return 1
}
-md5sums=('8a0e5e6a7fba3a7d03040fc23556f717')
+md5sums=('19446f65722769926bafad220bbc6551')
diff --git a/abs/core/mythtv/stable-0.25/mythplugins/mythburn.py.patch b/abs/core/mythtv/stable-0.25/mythplugins/mythburn.py.patch
index 7b385b3..380385b 100644
--- a/abs/core/mythtv/stable-0.25/mythplugins/mythburn.py.patch
+++ b/abs/core/mythtv/stable-0.25/mythplugins/mythburn.py.patch
@@ -1,11 +1,11 @@
--- mythburn.py.orig 2012-12-16 15:23:41.000000000 -0600
-+++ mythburn.py 2012-12-16 15:33:37.000000000 -0600
++++ mythburn.py 2012-12-18 14:23:56.000000000 -0600
@@ -44,7 +44,7 @@
# version of script - change after each update
-VERSION="0.1.20120304-1"
-+VERSION="0.1.20121210-1"
++VERSION="0.1.20121218-1"
# keep all temporary files for debugging purposes
# set this to True before a first run through when testing
@@ -62,28 +62,33 @@
video = infoDOM.getElementsByTagName("file")[0].getElementsByTagName("streams")[0].getElementsByTagName("video")[0]
video_start = float(video.attributes["start_time"].value)
-@@ -1432,9 +1433,18 @@
+@@ -1432,9 +1433,23 @@
data.rating = str(vid.userrating)
- if doesFileExist(vid.coverfile):
+- data.coverfile = vid.coverfile
++ data.coverfile = None
+
+ #Check filename for valid path. If valid return nothing.
-+ if doesFileExist(str(vid.coverfile)):
++ if os.path.isfile(str(vid.coverfile)):
+ write("Coverart is in local directory: %s" % vid.coverfile)
- data.coverfile = vid.coverfile
--
++ data.coverfile = vid.coverfile
+ else:
+ # iterate through storage group directories to get Coverart
+ for sg in DB.getStorageGroup(groupname='Coverart', hostname=DB.gethostname()):
-+ if doesFileExist(os.path.join(sg.dirname, str(vid.coverfile))):
++ if os.path.isfile(os.path.join(sg.dirname, str(vid.coverfile))):
+ write("Coverart is in Storage Groups: %s%s" % (sg.dirname, vid.coverfile))
+ data.coverfile = os.path.join(sg.dirname, str(vid.coverfile))
+ break
-+
++
++ if data.coverfile == None:
++ write("No Coverart Found")
++
elif file.attributes["type"].value=="file":
data.type = file.attributes["type"].value
data.filename = file.attributes["filename"].value
-@@ -1485,6 +1495,28 @@
+@@ -1485,6 +1500,30 @@
#############################################################
@@ -94,25 +99,27 @@
+ filepath = None
+
+ #Check filename for valid path. If valid return nothing.
-+ if doesFileExist(filename):
-+ write("Video is in local video dir: %s" % filename)
++ if os.path.isfile(filename):
++ write("Video is in local video directory: %s" % filename)
+ return (filepath)
+ else:
+ # iterate through storage group directories
+ for sg in DB.getStorageGroup(groupname='Videos', hostname=DB.gethostname()):
+ wholepath = os.path.join(sg.dirname, filename)
-+ if doesFileExist(wholepath):
++ if os.path.isfile(wholepath):
+ write("Video is in Storage Groups: %s" % wholepath)
+ filepath = "".join(sg.dirname)
+ return (filepath)
+ break
-+
++
++ if filepath == None:
++ write("Video is not in local video directory or Storage Groups")
+
+#############################################################
# Pre-process a single video/recording file
def preProcessFile(file, folder, count):
-@@ -1501,7 +1533,7 @@
+@@ -1501,7 +1540,7 @@
if file.attributes["type"].value == "recording":
mediafile = file.attributes["filename"].value
elif file.attributes["type"].value == "video":
@@ -121,7 +128,7 @@
elif file.attributes["type"].value == "file":
mediafile = file.attributes["filename"].value
else:
-@@ -1661,6 +1693,37 @@
+@@ -1661,6 +1700,37 @@
fatalError("Failed while running mytharchivehelper to get stream information.\n"
"Result: %d, Command was %s" % (result, command))
@@ -159,7 +166,7 @@
# print out the streaminfo.xml file to the log
infoDOM = xml.dom.minidom.parse(xmlFilename)
write(xmlFilename + ":-\n" + infoDOM.toprettyxml(" ", ""), False)
-@@ -1707,7 +1770,7 @@
+@@ -1707,7 +1777,7 @@
write("Using cutlist: %s" % cutlist_s)
if (localfile != ""):
@@ -168,7 +175,7 @@
if usecutlist == True:
command = "mythtranscode --mpeg2 --honorcutlist %s --infile %s --outfile %s" % (cutlist_s, quoteCmdArg(localfile), quoteCmdArg(destination))
else:
-@@ -1973,7 +2036,7 @@
+@@ -1973,7 +2043,7 @@
#############################################################
# Re-encodes a file to mpeg2
@@ -177,7 +184,7 @@
"""Encodes an unknown video source file eg. AVI to MPEG2 video and AC3 audio, use mythffmpeg"""
profileNode = findEncodingProfile(profile)
-@@ -1998,7 +2061,36 @@
+@@ -1998,7 +2068,36 @@
value = quoteCmdArg(destvideofile)
if value == "%aspect":
value = aspectratio
@@ -214,7 +221,7 @@
# only re-encode the audio if it is not already in AC3 format
if audio1[AUDIO_CODEC] == "AC3":
if name == "-acodec":
-@@ -2094,10 +2186,6 @@
+@@ -2094,10 +2193,6 @@
outaudiosamplerate = 48000
outaudiocodec = "ac3"
deinterlace = 0
@@ -225,7 +232,7 @@
qmin = 5
qmax = 31
qdiff = 31
-@@ -2121,14 +2209,6 @@
+@@ -2121,14 +2216,6 @@
outvideores = value
if name == "-deinterlace":
deinterlace = 1
@@ -240,7 +247,7 @@
if name == "-qmin":
qmin = value
if name == "-qmax":
-@@ -4409,7 +4489,7 @@
+@@ -4409,7 +4496,7 @@
elif file.attributes["type"].value=="recording":
mediafile = file.attributes["filename"].value
elif file.attributes["type"].value=="video":
@@ -249,7 +256,7 @@
elif file.attributes["type"].value=="file":
mediafile=file.attributes["filename"].value
else:
-@@ -4547,7 +4627,7 @@
+@@ -4547,7 +4634,7 @@
#do the re-encode
encodeVideoToMPEG2(mediafile, os.path.join(folder, "newfile2.mpg"), video,
@@ -258,7 +265,7 @@
mediafile = os.path.join(folder, 'newfile2.mpg')
#remove the old mediafile that was run through mythtranscode
-@@ -4621,7 +4701,7 @@
+@@ -4621,7 +4708,7 @@
elif file.attributes["type"].value=="recording":
mediafile = file.attributes["filename"].value
elif file.attributes["type"].value=="video":
@@ -267,7 +274,7 @@
elif file.attributes["type"].value=="file":
mediafile=file.attributes["filename"].value
else:
-@@ -4701,7 +4781,7 @@
+@@ -4701,7 +4788,7 @@
#do the re-encode
encodeVideoToMPEG2(mediafile, os.path.join(folder, "newfile2.mpg"), video,