From e0745cb76cc8eda2decea99ea693354cfd9980bf Mon Sep 17 00:00:00 2001 From: Cecil Hugh Watson Date: Thu, 30 Jul 2009 22:44:48 -0700 Subject: Myth2iPod:Adds m2iweb.php to allow for deletion of unwanted videos. --- abs/extra-testing/myth2ipod/PKGBUILD | 5 +- abs/extra-testing/myth2ipod/m2iweb.php | 157 ++++++++++++++++++++++++++ abs/extra-testing/myth2ipod/myth2ipod.install | 8 +- 3 files changed, 162 insertions(+), 8 deletions(-) create mode 100755 abs/extra-testing/myth2ipod/m2iweb.php diff --git a/abs/extra-testing/myth2ipod/PKGBUILD b/abs/extra-testing/myth2ipod/PKGBUILD index 80a8613..bfb7c91 100755 --- a/abs/extra-testing/myth2ipod/PKGBUILD +++ b/abs/extra-testing/myth2ipod/PKGBUILD @@ -1,12 +1,12 @@ pkgname=myth2ipod pkgver=0.2 -pkgrel=17 +pkgrel=18 arch=("i686") pkgdesc="A multimedia framework based on the MPEG-4 Systems standard" url="myth2ipod.com" depends=('gpac' 'nuvexport' ) install="myth2ipod.install" -source=( myth2ipod iPod.pm myth2ipod-userjob.sh) +source=( myth2ipod iPod.pm myth2ipod-userjob.sh m2iweb.php) build() { @@ -14,6 +14,7 @@ build() { install -D -m 755 myth2ipod $startdir/pkg/usr/bin/myth2ipod install -D -m 755 myth2ipod-userjob.sh /$startdir/pkg/usr/bin/myth2ipod-userjob.sh install -D -m755 iPod.pm $startdir/pkg/usr/share/nuvexport/export/ffmpeg/iPod.pm + install -D -m755 m2iweb.php $startdir/pkg/myth/ipodfeed } diff --git a/abs/extra-testing/myth2ipod/m2iweb.php b/abs/extra-testing/myth2ipod/m2iweb.php new file mode 100755 index 0000000..a8a9e4d --- /dev/null +++ b/abs/extra-testing/myth2ipod/m2iweb.php @@ -0,0 +1,157 @@ + + + + + MythWeb - Archive Recordings + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +'; + echo $delete; + unlink($delete) or print(" failed to be "); + echo 'deleted
'; + $deletetoo = substr($delete, 0, -3)."mp4"; + echo $deletetoo; + unlink($deletetoo) or print(" failed to be "); + echo 'deleted

Home'; +} +} +else { + $i=1; + foreach (glob("*.ipod.xml") as $file) { + $lines = file($file); + echo '
".''.""; + $i++; + } +} +function filesizeparse($size){ + $i=0; + $iec = array(" B", " KB", " MB", " GB", " TB"); + while (($size/1024)>1) { + $size=$size/1024; + $i++; + } + return substr($size,0,strpos($size,'.')+3).$iec[$i]; +} +?> +
View information and delete myth2ipod recordings.
 '; + echo ''.$i.''; + echo "".strip_tags($lines[1])."".strip_tags($lines[7])."".strip_tags($lines[6])."".filesizeparse(filesize(substr($file, 0, -3)."mp4"))."".'Delete'." 
+ + + diff --git a/abs/extra-testing/myth2ipod/myth2ipod.install b/abs/extra-testing/myth2ipod/myth2ipod.install index 43e3e78..4a7e046 100755 --- a/abs/extra-testing/myth2ipod/myth2ipod.install +++ b/abs/extra-testing/myth2ipod/myth2ipod.install @@ -18,21 +18,17 @@ post_install() { ln -s /myth/ipodfeed /data/srv/httpd/htdocs/ipodfeed cp /usr/bin/myth2ipod /tmp sed -e "s/REPLACEME/$hostname/g" /tmp/myth2ipod > /usr/bin/myth2ipod + chown -R mythtv:http /myth/ipodfeed } post_upgrade() { - - - mkdir /myth/ipodfeed - chown mythtv:users /myth/ipodfeed - ln -s /myth/ipodfeed /data/srv/httpd/htdocs/ipodfeed /usr/bin/myth2ipod -rebuild } post_remove() { - post_install + rm -fr /data/srv/httpd/htdocs/ipodfeed } op=$1 -- cgit v0.12