From e701828d0ad4e5b2476f6e88163f17eb182fcf96 Mon Sep 17 00:00:00 2001 From: Cecil Hugh Watson Date: Mon, 31 Aug 2009 19:44:03 -0700 Subject: MythAppleTrailers:Fixes the URL change. --- abs/extra-testing/mythappletrailers/PKGBUILD | 5 +- .../mythappletrailers/appletrailer.xml | 306 ++++++++++----------- .../mythappletrailers/fix_aple_url.sh | 3 + abs/extra-testing/mythappletrailers/trailers | 2 +- 4 files changed, 145 insertions(+), 171 deletions(-) create mode 100644 abs/extra-testing/mythappletrailers/fix_aple_url.sh diff --git a/abs/extra-testing/mythappletrailers/PKGBUILD b/abs/extra-testing/mythappletrailers/PKGBUILD index 7cb7f7a..fd9a6b8 100644 --- a/abs/extra-testing/mythappletrailers/PKGBUILD +++ b/abs/extra-testing/mythappletrailers/PKGBUILD @@ -3,7 +3,7 @@ pkgname=mythappletrailers pkgver=0.04.3 -pkgrel=29 +pkgrel=30 pkgdesc="Unofficial Add-on for MythTV to get Apple.com Movie Trailers." arch=('i686' 'x86_64') license=('GPL2') @@ -11,7 +11,7 @@ url="http://www.mythtv.org/wiki/index.php/Myth_Apple_Trailers" depends=('php' 'mythtv' 'mplayer-wrapper') install=mythappletrailers.install source=('myth_trailers_grabber' 'appletrailer.xml' - 'trailers' 'loading.sh') +'trailers' 'loading.sh' 'fix_aple_url.sh') build() { mkdir -p $startdir/pkg/usr/bin @@ -26,4 +26,5 @@ build() { cp myth_trailers_grabber $startdir/pkg/usr/bin/ cp loading.sh $startdir/pkg/usr/bin/ cp trailers $startdir/pkg/etc/cron.daily/ + install -m755 $srcdir/fix_aple_url.sh $pkgdir/usr/bin } diff --git a/abs/extra-testing/mythappletrailers/appletrailer.xml b/abs/extra-testing/mythappletrailers/appletrailer.xml index 11f5f9d..dc0c938 100644 --- a/abs/extra-testing/mythappletrailers/appletrailer.xml +++ b/abs/extra-testing/mythappletrailers/appletrailer.xml @@ -2,751 +2,721 @@ + + - - - - - - - - + + - - - - - - diff --git a/abs/extra-testing/mythappletrailers/fix_aple_url.sh b/abs/extra-testing/mythappletrailers/fix_aple_url.sh new file mode 100644 index 0000000..a08be65 --- /dev/null +++ b/abs/extra-testing/mythappletrailers/fix_aple_url.sh @@ -0,0 +1,3 @@ +#!/bin/sh +cat /home/mythtv/appletrailer.xml | sed -e 's|http:/\/\movies.apple|http:\/\/apple|g' > /tmp/appletrailer.xml +mv /tmp/appletrailer.xml /home/mythtv diff --git a/abs/extra-testing/mythappletrailers/trailers b/abs/extra-testing/mythappletrailers/trailers index aa705c9..241a60a 100755 --- a/abs/extra-testing/mythappletrailers/trailers +++ b/abs/extra-testing/mythappletrailers/trailers @@ -1,2 +1,2 @@ #!/bin/sh -su mythtv -c '/usr/bin/php -q /usr/bin/myth_trailers_grabber > /home/mythtv/appletrailer.xml' 2>/dev/null +su mythtv -c '/usr/bin/php -q /usr/bin/myth_trailers_grabber > /home/mythtv/appletrailer.xml && /usr/bin/fix_aple_url.sh' 2>/dev/null -- cgit v0.12