From 89ac93c209dd138359e9a9e761d53042aea61e11 Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Wed, 5 Sep 2018 15:51:59 +0000 Subject: mythappletrailers: update for php7 and url change. closes #1026 adjust loading.sh to wait for cache to fill then close --- abs/extra/mythappletrailers/PKGBUILD | 49 ++++---- abs/extra/mythappletrailers/all_trailers | 134 --------------------- abs/extra/mythappletrailers/apple_all_trailers | 134 +++++++++++++++++++++ abs/extra/mythappletrailers/apple_shuffle_trailers | 134 +++++++++++++++++++++ abs/extra/mythappletrailers/fix_aple_url.sh | 3 - abs/extra/mythappletrailers/gen_trailer_menu.sh | 39 +++--- abs/extra/mythappletrailers/loading.sh | 12 +- abs/extra/mythappletrailers/myth_trailers_grabber | 80 ++++++------ .../mythappletrailers/mythappletrailers.install | 2 +- abs/extra/mythappletrailers/play_trailer.sh | 6 +- abs/extra/mythappletrailers/shuffle_trailers | 134 --------------------- abs/extra/mythappletrailers/trailers | 2 +- 12 files changed, 361 insertions(+), 368 deletions(-) delete mode 100644 abs/extra/mythappletrailers/all_trailers create mode 100644 abs/extra/mythappletrailers/apple_all_trailers create mode 100644 abs/extra/mythappletrailers/apple_shuffle_trailers delete mode 100644 abs/extra/mythappletrailers/fix_aple_url.sh delete mode 100644 abs/extra/mythappletrailers/shuffle_trailers diff --git a/abs/extra/mythappletrailers/PKGBUILD b/abs/extra/mythappletrailers/PKGBUILD index 140c8b7..89ea17f 100644 --- a/abs/extra/mythappletrailers/PKGBUILD +++ b/abs/extra/mythappletrailers/PKGBUILD @@ -3,54 +3,49 @@ pkgname=mythappletrailers pkgver=0.04.3 -pkgrel=46 +pkgrel=47 pkgdesc="Unofficial Add-on for MythTV to get Apple.com Movie Trailers." -arch=('i686' 'x86_64') +arch=('x86_64') license=('GPL2') 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' 'fix_aple_url.sh'\ + 'trailers' 'loading.sh'\ 'play_trailer.sh' 'gen_trailer_menu.sh'\ - 'all_trailers' 'shuffle_trailers'\ + 'apple_all_trailers' 'apple_shuffle_trailers'\ 'appletrailers_is.conf') #. /usr/MythVantage/bin/install_functions.sh -build() { +package() { MYTHHOME="/home/mythtv" - mkdir -p $startdir/pkg/usr/bin - mkdir -p $startdir/pkg/etc/cron.daily - mkdir -p $startdir/pkg/$MYTHHOME - mkdir -p $startdir/pkg/usr/share/mythtv/ - cp appletrailer.xml $startdir/pkg/$MYTHHOME/appletrailer.xml - chown 1000:1000 $startdir/pkg/$MYTHHOME/appletrailer.xml + mkdir -p $pkgdir/usr/bin + mkdir -p $pkgdir/etc/cron.daily + mkdir -p $pkgdir/$MYTHHOME + mkdir -p $pkgdir/usr/share/mythtv/ + cp appletrailer.xml $pkgdir/$MYTHHOME/appletrailer.xml + chown 1000:1000 $pkgdir/$MYTHHOME/appletrailer.xml chmod 755 trailers chmod 755 myth_trailers_grabber chmod 755 loading.sh - 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 + cp myth_trailers_grabber $pkgdir/usr/bin/ + cp loading.sh $pkgdir/usr/bin/ + cp trailers $pkgdir/etc/cron.daily/ install -m755 $srcdir/play_trailer.sh $pkgdir/usr/bin install -m755 $srcdir/gen_trailer_menu.sh $pkgdir/usr/bin - install -m644 $srcdir/all_trailers $pkgdir/home/mythtv - install -m644 $srcdir/shuffle_trailers $pkgdir/home/mythtv - chown 1000:1000 $startdir/pkg/$MYTHHOME/*_trailers + install -m644 $srcdir/apple_all_trailers $pkgdir/home/mythtv + install -m644 $srcdir/apple_shuffle_trailers $pkgdir/home/mythtv + chown 1000:1000 $pkgdir/$MYTHHOME/*_trailers #add in file for gen_is.xml install -D -m0744 ${srcdir}/appletrailers_is.conf ${pkgdir}/etc/gen_is_xml.d/appletrailers_is.conf } - - - -md5sums=('336e68953d0e1e8a0c7a4990f8d43a2b' +md5sums=('c70339830f6d538035b715ee779a4f2f' 'be0d071981e5536f24aaf67545a96cc5' - 'a508f2de763f5bec5b4549885c062c8a' - 'f072ec9c3d78b107e25039758fd5b378' - 'a2349f844e47fd95a672739177ca44ff' - '14f153c1efa7ae4e192d87010cbf9f7c' - '3e9d8014a0e76e2cf8057291d20c9291' + '1c5a2730628e696606357ad5378a134c' + 'f4a7f6d13ccb61e16934529ad5b7e69a' + 'dfaf2c692c0913f489f479a8fa61a243' + '5b3d9551d363bfbd6c3529984b317940' '7af1e58dfab2772dbb6f339481ae8d5d' 'd26681921482cbf334b43f700adf0d29' '341eb4f98b70b51b9420f58051c8df6a') diff --git a/abs/extra/mythappletrailers/all_trailers b/abs/extra/mythappletrailers/all_trailers deleted file mode 100644 index 186c49c..0000000 --- a/abs/extra/mythappletrailers/all_trailers +++ /dev/null @@ -1,134 +0,0 @@ -http://trailers.apple.com/movies/independent/10years/10years-tlr1_h640w.mov -http://trailers.apple.com/movies/magnolia_pictures/2daysinny/2daysinny-tlr1_h640w.mov -http://trailers.apple.com/movies/magnolia_pictures/360/360-tlr1_h640w.mov -http://trailers.apple.com/movies/independent/7500/7500-tlr1_h640w.mov -http://trailers.apple.com/movies/magnolia_pictures/aroyalaffair/aroyalaffair-tlr1_h640w.mov -http://trailers.apple.com/movies/independent/after/after-tlr2_h640w.mov -http://trailers.apple.com/movies/lionsgate/alexcross/alexcross-tlr1_h640w.mov -http://trailers.apple.com/movies/focus_features/annakarenina/annakerenina-tlr1_h640w.mov -http://trailers.apple.com/movies/independent/arbitrage/arbitrageroad-tlr1_h640w.mov -http://trailers.apple.com/movies/wb/argo/argo-tlr1_h640w.mov -http://trailers.apple.com/movies/independent/bachelorette/bachelorette-tlr1_h640w.mov -http://trailers.apple.com/movies/sony_pictures/battleoftheyear/battleoftheyear-tlr1_h640w.mov -http://trailers.apple.com/movies/fox_searchlight/beastsofthesouthernwild/beastsofthesouthernwild-tlr1_h640w.mov -http://trailers.apple.com/movies/independent/branded/branded-tlr1_h640w.mov -http://trailers.apple.com/movies/disney/brave/brave-tlr5_h640w.mov -http://trailers.apple.com/movies/sony_pictures/celesteandjesseforever/celesteandjesse-tlr1_h640w.mov -http://trailers.apple.com/movies/independent/chained/chained-tlr1_h640w.mov -http://trailers.apple.com/movies/independent/championsofthedeep/championsofthedeep-tlr1_h640w.mov -http://trailers.apple.com/movies/fox/chasingmavericks/chasingmaverics-tlr2_h640w.mov -http://trailers.apple.com/movies/sony/chickenwithplums/chickenwithplums-tlr1_h640w.mov -http://trailers.apple.com/movies/paramount/cirque/cirque-tl1_h640w.mov -http://trailers.apple.com/movies/wb/cloudatlas/cloudatlas-trailer1b_h640w.mov -http://trailers.apple.com/movies/magnolia_pictures/compliance/compliance-tlr1_h640w.mov -http://trailers.apple.com/movies/magnolia_pictures/deadfall/deadfall-tlr1_h640w.mov -http://trailers.apple.com/movies/universal/despicableme2/despicableme2-tsr1_h640w.mov -http://trailers.apple.com/movies/fox/diaryofawimpykiddogdays/diaryofawimpykiddogday-tlr1_h640w.mov -http://trailers.apple.com/movies/weinstein/djangounchained/django-tsr1_h640w.mov -http://trailers.apple.com/movies/independent/doggieb/doggieb-tlr1_h640w.mov -http://trailers.apple.com/movies/lionsgate/dredd/dredd-tlr1_h640w.mov -http://trailers.apple.com/movies/independent/endofwatch/endofwatch-tlr1_h640w.mov -http://trailers.apple.com/movies/independent/escapefire/escapefire-tlr1_h640w.mov -http://trailers.apple.com/movies/disney/finding_nemo/findingnemo-tlr1_h640w.mov -http://trailers.apple.com/movies/paramount/flight/flight-tlr1zyx77_h640w.mov -http://trailers.apple.com/movies/focus_features/foragoodtimecall/foragoodtimecall-tlr1_h640w.mov -http://trailers.apple.com/movies/disney/frankenweenie/frankenweenie-tlr2_h640w.mov -http://trailers.apple.com/movies/lionsgate/freelancers/freelancers-tlr1_h640w.mov -http://trailers.apple.com/movies/paramount/funsize/funsize-tlr1_h640w.mov -http://trailers.apple.com/movies/paramount/gijoeretaliation/gijoeretaliation-tlr2_h640w.mov -http://trailers.apple.com/movies/independent/generaleducation/generaleducation-tlr1_h640w.mov -http://trailers.apple.com/movies/independent/goats/goats-tlr1_h640w.mov -http://trailers.apple.com/movies/paramount/hanselandgretel/hanselandgretel-tlr1_h640w.mov -http://trailers.apple.com/movies/independent/helloimustbegoing/helloimustbegoing_h640w.mov -http://trailers.apple.com/movies/sony_pictures/herecomestheboom/herecomestheboom-tlr1_h640w.mov -http://trailers.apple.com/movies/independent/hitandrun/hitandrun-tl1_h640w.mov -http://trailers.apple.com/movies/sony/hopesprings/hopesprings-tlr1_h640w.mov -http://trailers.apple.com/movies/sony_pictures/hoteltransylvania/hoteltransylvania-tlr2_h640w.mov -http://trailers.apple.com/movies/independent/houseattheendofthestreet/houseattheendofthestreet-tlr3_h640w.mov -http://trailers.apple.com/movies/focus_features/hydeparkonthehudson/hydeparkonthehudson-tlr1_h640w.mov -http://trailers.apple.com/movies/fox/iceage4/iceage4-tlr2_h640w.mov -http://trailers.apple.com/movies/magnolia_pictures/jackanddiane/jackanddiane-tlr1_h640w.mov -http://trailers.apple.com/movies/independent/killerjoe/killerjoe-tlr1_h640w.mov -http://trailers.apple.com/movies/weinstein/killingthemsoftly/killingthemsoftly-tlr1_h640w.mov -http://trailers.apple.com/movies/independent/klown/klown-tlr1_h640w.mov -http://trailers.apple.com/movies/independent/luv/luv_h640w.mov -http://trailers.apple.com/movies/weinstein/lawless/lawless-tlr1_h640w.mov -http://trailers.apple.com/movies/independent/leastamongsaints/leastamongsaints-tlr1_h640w.mov -http://trailers.apple.com/movies/universal/lesmiserables/lesmiserables-tsr1_h640w.mov -http://trailers.apple.com/movies/fox/lifeofpi/lifeofpi-tlr1_h640w.mov -http://trailers.apple.com/movies/sony_pictures/looper/looper-tlr2_h640w.mov -http://trailers.apple.com/movies/dreamworks/madagascar3/madagascar3-tlr1_h640w.mov -http://trailers.apple.com/movies/wb/manofsteel/manofsteel-tlr1-r_h640w.mov -http://trailers.apple.com/movies/independent/middleofnowhere/middleofnowhere-tlr1_h640w.mov -http://trailers.apple.com/movies/disney/monstersuniversity/monstersuniversity-tlr1_h640w.mov -http://trailers.apple.com/movies/disney/monstersinc3d/monstersinc3d-tlr3_h640w.mov -http://trailers.apple.com/movies/magnolia_pictures/nobodywalks/nobodywalks-tlr1_h640w.mov -http://trailers.apple.com/movies/disney/ozthegreatandpowerful/oz-tlr1-2938tyz_h640w.mov -http://trailers.apple.com/movies/focus_features/paranorman/paranorman-tlr2_h640w.mov -http://trailers.apple.com/movies/paramount/paranormalactivity4/paranormalactivity4-tlr1_h640w.mov -http://trailers.apple.com/movies/universal/pitchperfect/pitchperfect-tlr1_h640w.mov -http://trailers.apple.com/movies/sony_pictures/premiumrush/premiumrush-tlr2_h640w.mov -http://trailers.apple.com/movies/magnolia_pictures/rec3/rec3-tlr1_h640w.mov -http://trailers.apple.com/movies/independent/redhooksummer/redhooksummer-tlr1_h640w.mov -http://trailers.apple.com/movies/sony_pictures/residentevilretribution/residentevil-tlr2_h640w.mov -http://trailers.apple.com/movies/dreamworks/riseoftheguardians/riseoftheguardians-tlr2_h640w.mov -http://trailers.apple.com/movies/independent/robotfrank/robotandfrank-tlr1_h640w.mov -http://trailers.apple.com/movies/independent/sacrifice/sacrifice-tlr1_h640w.mov -http://trailers.apple.com/movies/independent/saintsandsoldiers2/saintsandsoldiers2-tlr1_h640w.mov -http://trailers.apple.com/movies/independent/samsara/samsara-tlr2_h640w.mov -http://trailers.apple.com/movies/sony/searchingforsugarman/searchingforsugarman-tlr1_h640w.mov -http://trailers.apple.com/movies/independent/sevenpsychopaths/sevenpsychopaths-tlr1_h640w.mov -http://trailers.apple.com/movies/weinstein/silverliningsplaybook/silverlinings-tlr1_h640w.mov -http://trailers.apple.com/movies/summit/sinister/sinister-tlr1_h640w.mov -http://trailers.apple.com/movies/sony_pictures/skyfall/skyfall-tlr2_h640w.mov -http://trailers.apple.com/movies/independent/soldiersoffortune/soldiersoffortune-tlr1_h640w.mov -http://trailers.apple.com/movies/independent/solomonkane/solomonkane-tlr1_h640w.mov -http://trailers.apple.com/movies/independent/somewherebetween/somewherebetween-tlr1_h640w.mov -http://trailers.apple.com/movies/sony_pictures/sparkle/sparkle-tlr1_h640w.mov -http://trailers.apple.com/movies/summit/stepuprevolution/stepuprevolution-tlr1_h640w.mov -http://trailers.apple.com/movies/independent/stolen/stolen-tlr2_h640w.mov -http://trailers.apple.com/movies/fox/taken2/taken2-tlr1_h640w.mov -http://trailers.apple.com/movies/universal/ted/ted-tlr1_h640w.mov -http://trailers.apple.com/movies/wb/theapparition/theapparition-tlr1_h640w.mov -http://trailers.apple.com/movies/marvel/theavengers/avengers-7c7b7a-tlr3_h640w.mov -http://trailers.apple.com/movies/independent/theawakening/awakening-tlr1_h640w.mov -http://trailers.apple.com/movies/independent/babymakers/babymakers-tlr1_h640w.mov -http://trailers.apple.com/movies/independent/thebay/thebay-tlr_h640w.mov -http://trailers.apple.com/movies/lionsgate/thebigwedding/bigwedding-tlr1_h640w.mov -http://trailers.apple.com/movies/universal/bournelegacy/bournelegacy-tlr2_h640w.mov -http://trailers.apple.com/movies/wb/thecampaign/thecampaign-tlr1_h640w.mov -http://trailers.apple.com/movies/wb/thedarkknightrises/darkknightrises-tlr4_h640w.mov -http://trailers.apple.com/movies/lionsgate/expendables2/expendables2-tlr2_h640w.mov -http://trailers.apple.com/movies/independent/flyingswords/flyingswords-tlr1b_h640w.mov -http://trailers.apple.com/movies/magnolia_pictures/thegooddoctor/gooddoctor-tlr1_h640w.mov -http://trailers.apple.com/movies/wb/thegreatgatsby/greatgatsby-tlr1_h640w.mov -http://trailers.apple.com/movies/wb/thehobbit1/thehobbit-tlr1_h640w.mov -http://trailers.apple.com/movies/lionsgate/thehungergames/thehungergames-tlr1a_h640w.mov -http://trailers.apple.com/movies/summit/theimpossible/theimpossible-tlr1_h640w.mov -http://trailers.apple.com/movies/newline/thelaststand/laststand-tlr1_h640w.mov -http://trailers.apple.com/movies/universal/themanwiththeironfists/manwiththeironfists-tlr1_h640w.mov -http://trailers.apple.com/movies/weinstein/themaster/themaster-tlr1_h640w.mov -http://trailers.apple.com/movies/disney/theoddlifeoftimothygreen/oddlifeoftimothygreen-tlr2_h640w.mov -http://trailers.apple.com/movies/independent/oogieloves/oog-tlr2_h640w.mov -http://trailers.apple.com/movies/independent/theoranges/oranges-tlr1_h640w.mov -http://trailers.apple.com/movies/independent/thepaperboy/thepaperboy-tlr1_h640w.mov -http://trailers.apple.com/movies/summit/theperksofbeingawallflower/perksofbeingawallflower-tlr1_h640w.mov -http://trailers.apple.com/movies/lionsgate/thepossession/possession-tlr1_h640w.mov -http://trailers.apple.com/movies/fox_searchlight/thesessions/thesessions-tlr1_h640w.mov -http://trailers.apple.com/movies/independent/thetallman/thetallman-tlr1_h640w.mov -http://trailers.apple.com/movies/independent/troublewiththetruth/troublewiththetruth-tlr1_h640w.mov -http://trailers.apple.com/movies/wb/thetroublewiththecurve/troublewiththecurve-tlr1_h640w.mov -http://trailers.apple.com/movies/summit/twilightbreakingdawn2/twilightbd2-tlr2_h640w.mov -http://trailers.apple.com/movies/independent/thevictim/thevictim-tlr1_h640w.mov -http://trailers.apple.com/movies/fox/thewatch/thewatch-tlr1_h640w.mov -http://trailers.apple.com/movies/independent/thewords/thewords-tlr1_h640w.mov -http://trailers.apple.com/movies/universal/thisis40/thisis40-tlr3_h640w.mov -http://trailers.apple.com/movies/weinstein/thismustbetheplace/thismustbetheplace-tlr1_h640w.mov -http://trailers.apple.com/movies/wb/thunderstruck/thunderstruck-tlr1_h640w.mov -http://trailers.apple.com/movies/sony_pictures/totalrecall/totalrecall-tlr4_h640w.mov -http://trailers.apple.com/movies/independent/toysintheattic/toysintheattic-tlr1_h640w.mov -http://trailers.apple.com/movies/independent/unconditional/unconditional-tlr1_h640w.mov -http://trailers.apple.com/movies/magnolia_pictures/vhs/vhs-tlr1_h640w.mov -http://trailers.apple.com/movies/weinstein/warofthebuttons/warofthebuttons-tlr1_h640w.mov -http://trailers.apple.com/movies/fox/wontbackdown/wontbackdown-tlr1_h640w.mov -http://trailers.apple.com/movies/disney/wreckitralph/wreakitralph-tlr1_h640w.mov diff --git a/abs/extra/mythappletrailers/apple_all_trailers b/abs/extra/mythappletrailers/apple_all_trailers new file mode 100644 index 0000000..186c49c --- /dev/null +++ b/abs/extra/mythappletrailers/apple_all_trailers @@ -0,0 +1,134 @@ +http://trailers.apple.com/movies/independent/10years/10years-tlr1_h640w.mov +http://trailers.apple.com/movies/magnolia_pictures/2daysinny/2daysinny-tlr1_h640w.mov +http://trailers.apple.com/movies/magnolia_pictures/360/360-tlr1_h640w.mov +http://trailers.apple.com/movies/independent/7500/7500-tlr1_h640w.mov +http://trailers.apple.com/movies/magnolia_pictures/aroyalaffair/aroyalaffair-tlr1_h640w.mov +http://trailers.apple.com/movies/independent/after/after-tlr2_h640w.mov +http://trailers.apple.com/movies/lionsgate/alexcross/alexcross-tlr1_h640w.mov +http://trailers.apple.com/movies/focus_features/annakarenina/annakerenina-tlr1_h640w.mov +http://trailers.apple.com/movies/independent/arbitrage/arbitrageroad-tlr1_h640w.mov +http://trailers.apple.com/movies/wb/argo/argo-tlr1_h640w.mov +http://trailers.apple.com/movies/independent/bachelorette/bachelorette-tlr1_h640w.mov +http://trailers.apple.com/movies/sony_pictures/battleoftheyear/battleoftheyear-tlr1_h640w.mov +http://trailers.apple.com/movies/fox_searchlight/beastsofthesouthernwild/beastsofthesouthernwild-tlr1_h640w.mov +http://trailers.apple.com/movies/independent/branded/branded-tlr1_h640w.mov +http://trailers.apple.com/movies/disney/brave/brave-tlr5_h640w.mov +http://trailers.apple.com/movies/sony_pictures/celesteandjesseforever/celesteandjesse-tlr1_h640w.mov +http://trailers.apple.com/movies/independent/chained/chained-tlr1_h640w.mov +http://trailers.apple.com/movies/independent/championsofthedeep/championsofthedeep-tlr1_h640w.mov +http://trailers.apple.com/movies/fox/chasingmavericks/chasingmaverics-tlr2_h640w.mov +http://trailers.apple.com/movies/sony/chickenwithplums/chickenwithplums-tlr1_h640w.mov +http://trailers.apple.com/movies/paramount/cirque/cirque-tl1_h640w.mov +http://trailers.apple.com/movies/wb/cloudatlas/cloudatlas-trailer1b_h640w.mov +http://trailers.apple.com/movies/magnolia_pictures/compliance/compliance-tlr1_h640w.mov +http://trailers.apple.com/movies/magnolia_pictures/deadfall/deadfall-tlr1_h640w.mov +http://trailers.apple.com/movies/universal/despicableme2/despicableme2-tsr1_h640w.mov +http://trailers.apple.com/movies/fox/diaryofawimpykiddogdays/diaryofawimpykiddogday-tlr1_h640w.mov +http://trailers.apple.com/movies/weinstein/djangounchained/django-tsr1_h640w.mov +http://trailers.apple.com/movies/independent/doggieb/doggieb-tlr1_h640w.mov +http://trailers.apple.com/movies/lionsgate/dredd/dredd-tlr1_h640w.mov +http://trailers.apple.com/movies/independent/endofwatch/endofwatch-tlr1_h640w.mov +http://trailers.apple.com/movies/independent/escapefire/escapefire-tlr1_h640w.mov +http://trailers.apple.com/movies/disney/finding_nemo/findingnemo-tlr1_h640w.mov +http://trailers.apple.com/movies/paramount/flight/flight-tlr1zyx77_h640w.mov +http://trailers.apple.com/movies/focus_features/foragoodtimecall/foragoodtimecall-tlr1_h640w.mov +http://trailers.apple.com/movies/disney/frankenweenie/frankenweenie-tlr2_h640w.mov +http://trailers.apple.com/movies/lionsgate/freelancers/freelancers-tlr1_h640w.mov +http://trailers.apple.com/movies/paramount/funsize/funsize-tlr1_h640w.mov +http://trailers.apple.com/movies/paramount/gijoeretaliation/gijoeretaliation-tlr2_h640w.mov +http://trailers.apple.com/movies/independent/generaleducation/generaleducation-tlr1_h640w.mov +http://trailers.apple.com/movies/independent/goats/goats-tlr1_h640w.mov +http://trailers.apple.com/movies/paramount/hanselandgretel/hanselandgretel-tlr1_h640w.mov +http://trailers.apple.com/movies/independent/helloimustbegoing/helloimustbegoing_h640w.mov +http://trailers.apple.com/movies/sony_pictures/herecomestheboom/herecomestheboom-tlr1_h640w.mov +http://trailers.apple.com/movies/independent/hitandrun/hitandrun-tl1_h640w.mov +http://trailers.apple.com/movies/sony/hopesprings/hopesprings-tlr1_h640w.mov +http://trailers.apple.com/movies/sony_pictures/hoteltransylvania/hoteltransylvania-tlr2_h640w.mov +http://trailers.apple.com/movies/independent/houseattheendofthestreet/houseattheendofthestreet-tlr3_h640w.mov +http://trailers.apple.com/movies/focus_features/hydeparkonthehudson/hydeparkonthehudson-tlr1_h640w.mov +http://trailers.apple.com/movies/fox/iceage4/iceage4-tlr2_h640w.mov +http://trailers.apple.com/movies/magnolia_pictures/jackanddiane/jackanddiane-tlr1_h640w.mov +http://trailers.apple.com/movies/independent/killerjoe/killerjoe-tlr1_h640w.mov +http://trailers.apple.com/movies/weinstein/killingthemsoftly/killingthemsoftly-tlr1_h640w.mov +http://trailers.apple.com/movies/independent/klown/klown-tlr1_h640w.mov +http://trailers.apple.com/movies/independent/luv/luv_h640w.mov +http://trailers.apple.com/movies/weinstein/lawless/lawless-tlr1_h640w.mov +http://trailers.apple.com/movies/independent/leastamongsaints/leastamongsaints-tlr1_h640w.mov +http://trailers.apple.com/movies/universal/lesmiserables/lesmiserables-tsr1_h640w.mov +http://trailers.apple.com/movies/fox/lifeofpi/lifeofpi-tlr1_h640w.mov +http://trailers.apple.com/movies/sony_pictures/looper/looper-tlr2_h640w.mov +http://trailers.apple.com/movies/dreamworks/madagascar3/madagascar3-tlr1_h640w.mov +http://trailers.apple.com/movies/wb/manofsteel/manofsteel-tlr1-r_h640w.mov +http://trailers.apple.com/movies/independent/middleofnowhere/middleofnowhere-tlr1_h640w.mov +http://trailers.apple.com/movies/disney/monstersuniversity/monstersuniversity-tlr1_h640w.mov +http://trailers.apple.com/movies/disney/monstersinc3d/monstersinc3d-tlr3_h640w.mov +http://trailers.apple.com/movies/magnolia_pictures/nobodywalks/nobodywalks-tlr1_h640w.mov +http://trailers.apple.com/movies/disney/ozthegreatandpowerful/oz-tlr1-2938tyz_h640w.mov +http://trailers.apple.com/movies/focus_features/paranorman/paranorman-tlr2_h640w.mov +http://trailers.apple.com/movies/paramount/paranormalactivity4/paranormalactivity4-tlr1_h640w.mov +http://trailers.apple.com/movies/universal/pitchperfect/pitchperfect-tlr1_h640w.mov +http://trailers.apple.com/movies/sony_pictures/premiumrush/premiumrush-tlr2_h640w.mov +http://trailers.apple.com/movies/magnolia_pictures/rec3/rec3-tlr1_h640w.mov +http://trailers.apple.com/movies/independent/redhooksummer/redhooksummer-tlr1_h640w.mov +http://trailers.apple.com/movies/sony_pictures/residentevilretribution/residentevil-tlr2_h640w.mov +http://trailers.apple.com/movies/dreamworks/riseoftheguardians/riseoftheguardians-tlr2_h640w.mov +http://trailers.apple.com/movies/independent/robotfrank/robotandfrank-tlr1_h640w.mov +http://trailers.apple.com/movies/independent/sacrifice/sacrifice-tlr1_h640w.mov +http://trailers.apple.com/movies/independent/saintsandsoldiers2/saintsandsoldiers2-tlr1_h640w.mov +http://trailers.apple.com/movies/independent/samsara/samsara-tlr2_h640w.mov +http://trailers.apple.com/movies/sony/searchingforsugarman/searchingforsugarman-tlr1_h640w.mov +http://trailers.apple.com/movies/independent/sevenpsychopaths/sevenpsychopaths-tlr1_h640w.mov +http://trailers.apple.com/movies/weinstein/silverliningsplaybook/silverlinings-tlr1_h640w.mov +http://trailers.apple.com/movies/summit/sinister/sinister-tlr1_h640w.mov +http://trailers.apple.com/movies/sony_pictures/skyfall/skyfall-tlr2_h640w.mov +http://trailers.apple.com/movies/independent/soldiersoffortune/soldiersoffortune-tlr1_h640w.mov +http://trailers.apple.com/movies/independent/solomonkane/solomonkane-tlr1_h640w.mov +http://trailers.apple.com/movies/independent/somewherebetween/somewherebetween-tlr1_h640w.mov +http://trailers.apple.com/movies/sony_pictures/sparkle/sparkle-tlr1_h640w.mov +http://trailers.apple.com/movies/summit/stepuprevolution/stepuprevolution-tlr1_h640w.mov +http://trailers.apple.com/movies/independent/stolen/stolen-tlr2_h640w.mov +http://trailers.apple.com/movies/fox/taken2/taken2-tlr1_h640w.mov +http://trailers.apple.com/movies/universal/ted/ted-tlr1_h640w.mov +http://trailers.apple.com/movies/wb/theapparition/theapparition-tlr1_h640w.mov +http://trailers.apple.com/movies/marvel/theavengers/avengers-7c7b7a-tlr3_h640w.mov +http://trailers.apple.com/movies/independent/theawakening/awakening-tlr1_h640w.mov +http://trailers.apple.com/movies/independent/babymakers/babymakers-tlr1_h640w.mov +http://trailers.apple.com/movies/independent/thebay/thebay-tlr_h640w.mov +http://trailers.apple.com/movies/lionsgate/thebigwedding/bigwedding-tlr1_h640w.mov +http://trailers.apple.com/movies/universal/bournelegacy/bournelegacy-tlr2_h640w.mov +http://trailers.apple.com/movies/wb/thecampaign/thecampaign-tlr1_h640w.mov +http://trailers.apple.com/movies/wb/thedarkknightrises/darkknightrises-tlr4_h640w.mov +http://trailers.apple.com/movies/lionsgate/expendables2/expendables2-tlr2_h640w.mov +http://trailers.apple.com/movies/independent/flyingswords/flyingswords-tlr1b_h640w.mov +http://trailers.apple.com/movies/magnolia_pictures/thegooddoctor/gooddoctor-tlr1_h640w.mov +http://trailers.apple.com/movies/wb/thegreatgatsby/greatgatsby-tlr1_h640w.mov +http://trailers.apple.com/movies/wb/thehobbit1/thehobbit-tlr1_h640w.mov +http://trailers.apple.com/movies/lionsgate/thehungergames/thehungergames-tlr1a_h640w.mov +http://trailers.apple.com/movies/summit/theimpossible/theimpossible-tlr1_h640w.mov +http://trailers.apple.com/movies/newline/thelaststand/laststand-tlr1_h640w.mov +http://trailers.apple.com/movies/universal/themanwiththeironfists/manwiththeironfists-tlr1_h640w.mov +http://trailers.apple.com/movies/weinstein/themaster/themaster-tlr1_h640w.mov +http://trailers.apple.com/movies/disney/theoddlifeoftimothygreen/oddlifeoftimothygreen-tlr2_h640w.mov +http://trailers.apple.com/movies/independent/oogieloves/oog-tlr2_h640w.mov +http://trailers.apple.com/movies/independent/theoranges/oranges-tlr1_h640w.mov +http://trailers.apple.com/movies/independent/thepaperboy/thepaperboy-tlr1_h640w.mov +http://trailers.apple.com/movies/summit/theperksofbeingawallflower/perksofbeingawallflower-tlr1_h640w.mov +http://trailers.apple.com/movies/lionsgate/thepossession/possession-tlr1_h640w.mov +http://trailers.apple.com/movies/fox_searchlight/thesessions/thesessions-tlr1_h640w.mov +http://trailers.apple.com/movies/independent/thetallman/thetallman-tlr1_h640w.mov +http://trailers.apple.com/movies/independent/troublewiththetruth/troublewiththetruth-tlr1_h640w.mov +http://trailers.apple.com/movies/wb/thetroublewiththecurve/troublewiththecurve-tlr1_h640w.mov +http://trailers.apple.com/movies/summit/twilightbreakingdawn2/twilightbd2-tlr2_h640w.mov +http://trailers.apple.com/movies/independent/thevictim/thevictim-tlr1_h640w.mov +http://trailers.apple.com/movies/fox/thewatch/thewatch-tlr1_h640w.mov +http://trailers.apple.com/movies/independent/thewords/thewords-tlr1_h640w.mov +http://trailers.apple.com/movies/universal/thisis40/thisis40-tlr3_h640w.mov +http://trailers.apple.com/movies/weinstein/thismustbetheplace/thismustbetheplace-tlr1_h640w.mov +http://trailers.apple.com/movies/wb/thunderstruck/thunderstruck-tlr1_h640w.mov +http://trailers.apple.com/movies/sony_pictures/totalrecall/totalrecall-tlr4_h640w.mov +http://trailers.apple.com/movies/independent/toysintheattic/toysintheattic-tlr1_h640w.mov +http://trailers.apple.com/movies/independent/unconditional/unconditional-tlr1_h640w.mov +http://trailers.apple.com/movies/magnolia_pictures/vhs/vhs-tlr1_h640w.mov +http://trailers.apple.com/movies/weinstein/warofthebuttons/warofthebuttons-tlr1_h640w.mov +http://trailers.apple.com/movies/fox/wontbackdown/wontbackdown-tlr1_h640w.mov +http://trailers.apple.com/movies/disney/wreckitralph/wreakitralph-tlr1_h640w.mov diff --git a/abs/extra/mythappletrailers/apple_shuffle_trailers b/abs/extra/mythappletrailers/apple_shuffle_trailers new file mode 100644 index 0000000..f2d3a5e --- /dev/null +++ b/abs/extra/mythappletrailers/apple_shuffle_trailers @@ -0,0 +1,134 @@ +http://trailers.apple.com/movies/lionsgate/expendables2/expendables2-tlr2_h640w.mov +http://trailers.apple.com/movies/dreamworks/riseoftheguardians/riseoftheguardians-tlr2_h640w.mov +http://trailers.apple.com/movies/focus_features/hydeparkonthehudson/hydeparkonthehudson-tlr1_h640w.mov +http://trailers.apple.com/movies/weinstein/themaster/themaster-tlr1_h640w.mov +http://trailers.apple.com/movies/sony/searchingforsugarman/searchingforsugarman-tlr1_h640w.mov +http://trailers.apple.com/movies/focus_features/paranorman/paranorman-tlr2_h640w.mov +http://trailers.apple.com/movies/summit/theperksofbeingawallflower/perksofbeingawallflower-tlr1_h640w.mov +http://trailers.apple.com/movies/independent/flyingswords/flyingswords-tlr1b_h640w.mov +http://trailers.apple.com/movies/magnolia_pictures/aroyalaffair/aroyalaffair-tlr1_h640w.mov +http://trailers.apple.com/movies/dreamworks/madagascar3/madagascar3-tlr1_h640w.mov +http://trailers.apple.com/movies/paramount/funsize/funsize-tlr1_h640w.mov +http://trailers.apple.com/movies/independent/samsara/samsara-tlr2_h640w.mov +http://trailers.apple.com/movies/universal/despicableme2/despicableme2-tsr1_h640w.mov +http://trailers.apple.com/movies/independent/killerjoe/killerjoe-tlr1_h640w.mov +http://trailers.apple.com/movies/universal/ted/ted-tlr1_h640w.mov +http://trailers.apple.com/movies/independent/luv/luv_h640w.mov +http://trailers.apple.com/movies/fox/thewatch/thewatch-tlr1_h640w.mov +http://trailers.apple.com/movies/independent/thewords/thewords-tlr1_h640w.mov +http://trailers.apple.com/movies/independent/chained/chained-tlr1_h640w.mov +http://trailers.apple.com/movies/wb/thedarkknightrises/darkknightrises-tlr4_h640w.mov +http://trailers.apple.com/movies/magnolia_pictures/thegooddoctor/gooddoctor-tlr1_h640w.mov +http://trailers.apple.com/movies/paramount/gijoeretaliation/gijoeretaliation-tlr2_h640w.mov +http://trailers.apple.com/movies/independent/escapefire/escapefire-tlr1_h640w.mov +http://trailers.apple.com/movies/lionsgate/thebigwedding/bigwedding-tlr1_h640w.mov +http://trailers.apple.com/movies/disney/monstersinc3d/monstersinc3d-tlr3_h640w.mov +http://trailers.apple.com/movies/sony/hopesprings/hopesprings-tlr1_h640w.mov +http://trailers.apple.com/movies/wb/cloudatlas/cloudatlas-trailer1b_h640w.mov +http://trailers.apple.com/movies/independent/somewherebetween/somewherebetween-tlr1_h640w.mov +http://trailers.apple.com/movies/sony_pictures/herecomestheboom/herecomestheboom-tlr1_h640w.mov +http://trailers.apple.com/movies/independent/soldiersoffortune/soldiersoffortune-tlr1_h640w.mov +http://trailers.apple.com/movies/summit/sinister/sinister-tlr1_h640w.mov +http://trailers.apple.com/movies/wb/thehobbit1/thehobbit-tlr1_h640w.mov +http://trailers.apple.com/movies/independent/after/after-tlr2_h640w.mov +http://trailers.apple.com/movies/paramount/hanselandgretel/hanselandgretel-tlr1_h640w.mov +http://trailers.apple.com/movies/independent/thevictim/thevictim-tlr1_h640w.mov +http://trailers.apple.com/movies/independent/7500/7500-tlr1_h640w.mov +http://trailers.apple.com/movies/wb/thunderstruck/thunderstruck-tlr1_h640w.mov +http://trailers.apple.com/movies/independent/championsofthedeep/championsofthedeep-tlr1_h640w.mov +http://trailers.apple.com/movies/summit/twilightbreakingdawn2/twilightbd2-tlr2_h640w.mov +http://trailers.apple.com/movies/paramount/cirque/cirque-tl1_h640w.mov +http://trailers.apple.com/movies/fox/taken2/taken2-tlr1_h640w.mov +http://trailers.apple.com/movies/independent/10years/10years-tlr1_h640w.mov +http://trailers.apple.com/movies/independent/stolen/stolen-tlr2_h640w.mov +http://trailers.apple.com/movies/weinstein/thismustbetheplace/thismustbetheplace-tlr1_h640w.mov +http://trailers.apple.com/movies/marvel/theavengers/avengers-7c7b7a-tlr3_h640w.mov +http://trailers.apple.com/movies/newline/thelaststand/laststand-tlr1_h640w.mov +http://trailers.apple.com/movies/independent/klown/klown-tlr1_h640w.mov +http://trailers.apple.com/movies/lionsgate/freelancers/freelancers-tlr1_h640w.mov +http://trailers.apple.com/movies/disney/finding_nemo/findingnemo-tlr1_h640w.mov +http://trailers.apple.com/movies/independent/hitandrun/hitandrun-tl1_h640w.mov +http://trailers.apple.com/movies/independent/theoranges/oranges-tlr1_h640w.mov +http://trailers.apple.com/movies/magnolia_pictures/jackanddiane/jackanddiane-tlr1_h640w.mov +http://trailers.apple.com/movies/independent/arbitrage/arbitrageroad-tlr1_h640w.mov +http://trailers.apple.com/movies/weinstein/lawless/lawless-tlr1_h640w.mov +http://trailers.apple.com/movies/summit/stepuprevolution/stepuprevolution-tlr1_h640w.mov +http://trailers.apple.com/movies/wb/thetroublewiththecurve/troublewiththecurve-tlr1_h640w.mov +http://trailers.apple.com/movies/independent/leastamongsaints/leastamongsaints-tlr1_h640w.mov +http://trailers.apple.com/movies/independent/middleofnowhere/middleofnowhere-tlr1_h640w.mov +http://trailers.apple.com/movies/focus_features/foragoodtimecall/foragoodtimecall-tlr1_h640w.mov +http://trailers.apple.com/movies/independent/endofwatch/endofwatch-tlr1_h640w.mov +http://trailers.apple.com/movies/paramount/flight/flight-tlr1zyx77_h640w.mov +http://trailers.apple.com/movies/magnolia_pictures/2daysinny/2daysinny-tlr1_h640w.mov +http://trailers.apple.com/movies/magnolia_pictures/vhs/vhs-tlr1_h640w.mov +http://trailers.apple.com/movies/independent/sevenpsychopaths/sevenpsychopaths-tlr1_h640w.mov +http://trailers.apple.com/movies/independent/helloimustbegoing/helloimustbegoing_h640w.mov +http://trailers.apple.com/movies/universal/lesmiserables/lesmiserables-tsr1_h640w.mov +http://trailers.apple.com/movies/weinstein/warofthebuttons/warofthebuttons-tlr1_h640w.mov +http://trailers.apple.com/movies/independent/redhooksummer/redhooksummer-tlr1_h640w.mov +http://trailers.apple.com/movies/independent/saintsandsoldiers2/saintsandsoldiers2-tlr1_h640w.mov +http://trailers.apple.com/movies/universal/pitchperfect/pitchperfect-tlr1_h640w.mov +http://trailers.apple.com/movies/disney/frankenweenie/frankenweenie-tlr2_h640w.mov +http://trailers.apple.com/movies/independent/toysintheattic/toysintheattic-tlr1_h640w.mov +http://trailers.apple.com/movies/sony_pictures/battleoftheyear/battleoftheyear-tlr1_h640w.mov +http://trailers.apple.com/movies/independent/oogieloves/oog-tlr2_h640w.mov +http://trailers.apple.com/movies/summit/theimpossible/theimpossible-tlr1_h640w.mov +http://trailers.apple.com/movies/sony_pictures/sparkle/sparkle-tlr1_h640w.mov +http://trailers.apple.com/movies/fox/wontbackdown/wontbackdown-tlr1_h640w.mov +http://trailers.apple.com/movies/wb/argo/argo-tlr1_h640w.mov +http://trailers.apple.com/movies/universal/themanwiththeironfists/manwiththeironfists-tlr1_h640w.mov +http://trailers.apple.com/movies/magnolia_pictures/360/360-tlr1_h640w.mov +http://trailers.apple.com/movies/lionsgate/alexcross/alexcross-tlr1_h640w.mov +http://trailers.apple.com/movies/magnolia_pictures/rec3/rec3-tlr1_h640w.mov +http://trailers.apple.com/movies/weinstein/silverliningsplaybook/silverlinings-tlr1_h640w.mov +http://trailers.apple.com/movies/sony_pictures/looper/looper-tlr2_h640w.mov +http://trailers.apple.com/movies/lionsgate/thehungergames/thehungergames-tlr1a_h640w.mov +http://trailers.apple.com/movies/sony_pictures/premiumrush/premiumrush-tlr2_h640w.mov +http://trailers.apple.com/movies/lionsgate/dredd/dredd-tlr1_h640w.mov +http://trailers.apple.com/movies/fox/chasingmavericks/chasingmaverics-tlr2_h640w.mov +http://trailers.apple.com/movies/independent/doggieb/doggieb-tlr1_h640w.mov +http://trailers.apple.com/movies/weinstein/djangounchained/django-tsr1_h640w.mov +http://trailers.apple.com/movies/fox/iceage4/iceage4-tlr2_h640w.mov +http://trailers.apple.com/movies/independent/thetallman/thetallman-tlr1_h640w.mov +http://trailers.apple.com/movies/independent/troublewiththetruth/troublewiththetruth-tlr1_h640w.mov +http://trailers.apple.com/movies/fox_searchlight/thesessions/thesessions-tlr1_h640w.mov +http://trailers.apple.com/movies/independent/sacrifice/sacrifice-tlr1_h640w.mov +http://trailers.apple.com/movies/independent/houseattheendofthestreet/houseattheendofthestreet-tlr3_h640w.mov +http://trailers.apple.com/movies/disney/theoddlifeoftimothygreen/oddlifeoftimothygreen-tlr2_h640w.mov +http://trailers.apple.com/movies/independent/babymakers/babymakers-tlr1_h640w.mov +http://trailers.apple.com/movies/independent/robotfrank/robotandfrank-tlr1_h640w.mov +http://trailers.apple.com/movies/weinstein/killingthemsoftly/killingthemsoftly-tlr1_h640w.mov +http://trailers.apple.com/movies/magnolia_pictures/compliance/compliance-tlr1_h640w.mov +http://trailers.apple.com/movies/sony_pictures/celesteandjesseforever/celesteandjesse-tlr1_h640w.mov +http://trailers.apple.com/movies/sony_pictures/skyfall/skyfall-tlr2_h640w.mov +http://trailers.apple.com/movies/independent/thepaperboy/thepaperboy-tlr1_h640w.mov +http://trailers.apple.com/movies/paramount/paranormalactivity4/paranormalactivity4-tlr1_h640w.mov +http://trailers.apple.com/movies/independent/generaleducation/generaleducation-tlr1_h640w.mov +http://trailers.apple.com/movies/wb/thegreatgatsby/greatgatsby-tlr1_h640w.mov +http://trailers.apple.com/movies/sony_pictures/residentevilretribution/residentevil-tlr2_h640w.mov +http://trailers.apple.com/movies/fox/diaryofawimpykiddogdays/diaryofawimpykiddogday-tlr1_h640w.mov +http://trailers.apple.com/movies/independent/unconditional/unconditional-tlr1_h640w.mov +http://trailers.apple.com/movies/universal/thisis40/thisis40-tlr3_h640w.mov +http://trailers.apple.com/movies/independent/theawakening/awakening-tlr1_h640w.mov +http://trailers.apple.com/movies/disney/ozthegreatandpowerful/oz-tlr1-2938tyz_h640w.mov +http://trailers.apple.com/movies/sony_pictures/totalrecall/totalrecall-tlr4_h640w.mov +http://trailers.apple.com/movies/wb/thecampaign/thecampaign-tlr1_h640w.mov +http://trailers.apple.com/movies/independent/solomonkane/solomonkane-tlr1_h640w.mov +http://trailers.apple.com/movies/wb/manofsteel/manofsteel-tlr1-r_h640w.mov +http://trailers.apple.com/movies/wb/theapparition/theapparition-tlr1_h640w.mov +http://trailers.apple.com/movies/universal/bournelegacy/bournelegacy-tlr2_h640w.mov +http://trailers.apple.com/movies/independent/bachelorette/bachelorette-tlr1_h640w.mov +http://trailers.apple.com/movies/magnolia_pictures/nobodywalks/nobodywalks-tlr1_h640w.mov +http://trailers.apple.com/movies/fox_searchlight/beastsofthesouthernwild/beastsofthesouthernwild-tlr1_h640w.mov +http://trailers.apple.com/movies/magnolia_pictures/deadfall/deadfall-tlr1_h640w.mov +http://trailers.apple.com/movies/independent/branded/branded-tlr1_h640w.mov +http://trailers.apple.com/movies/independent/thebay/thebay-tlr_h640w.mov +http://trailers.apple.com/movies/sony/chickenwithplums/chickenwithplums-tlr1_h640w.mov +http://trailers.apple.com/movies/disney/brave/brave-tlr5_h640w.mov +http://trailers.apple.com/movies/focus_features/annakarenina/annakerenina-tlr1_h640w.mov +http://trailers.apple.com/movies/lionsgate/thepossession/possession-tlr1_h640w.mov +http://trailers.apple.com/movies/fox/lifeofpi/lifeofpi-tlr1_h640w.mov +http://trailers.apple.com/movies/disney/wreckitralph/wreakitralph-tlr1_h640w.mov +http://trailers.apple.com/movies/sony_pictures/hoteltransylvania/hoteltransylvania-tlr2_h640w.mov +http://trailers.apple.com/movies/disney/monstersuniversity/monstersuniversity-tlr1_h640w.mov +http://trailers.apple.com/movies/independent/goats/goats-tlr1_h640w.mov diff --git a/abs/extra/mythappletrailers/fix_aple_url.sh b/abs/extra/mythappletrailers/fix_aple_url.sh deleted file mode 100644 index a08be65..0000000 --- a/abs/extra/mythappletrailers/fix_aple_url.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/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/mythappletrailers/gen_trailer_menu.sh b/abs/extra/mythappletrailers/gen_trailer_menu.sh index 43b2fae..fabf0e0 100644 --- a/abs/extra/mythappletrailers/gen_trailer_menu.sh +++ b/abs/extra/mythappletrailers/gen_trailer_menu.sh @@ -4,26 +4,29 @@ sed -n -e 's/.*\(.*\)<\/action>.*/\1/p' /tmp/appletrailer.xml > /tmp/a.l awk < /tmp/a.log '{ print $NF }' > /tmp/b.log sort -R /tmp/b.log > /tmp/c.log echo "" > /tmp/appletrailer.2.xml -echo " " >> /tmp/appletrailer.2.xml +echo " " >> /tmp/appletrailer.2.xml echo "" >> /tmp/appletrailer.2.xml -echo " " >> /tmp/appletrailer.2.xml echo "" >> /tmp/appletrailer.2.xml -echo " " >> /tmp/appletrailer.2.xml +echo " " >> /tmp/appletrailer.2.xml +echo "" >> /tmp/appletrailer.2.xml echo "" >> /tmp/appletrailer.2.xml - -grep -v TRAILERS /tmp/appletrailer.xml >> /tmp/appletrailer.2.xml -mv /tmp/b.log /home/mythtv/all_trailers -mv /tmp/c.log /home/mythtv/shuffle_trailers +mv /tmp/b.log /home/mythtv/apple_all_trailers +mv /tmp/c.log /home/mythtv/apple_shuffle_trailers mv /tmp/appletrailer.2.xml /home/mythtv/appletrailer.xml + diff --git a/abs/extra/mythappletrailers/loading.sh b/abs/extra/mythappletrailers/loading.sh index 55321fa..8b191e1 100755 --- a/abs/extra/mythappletrailers/loading.sh +++ b/abs/extra/mythappletrailers/loading.sh @@ -1,5 +1,4 @@ #!/bin/bash -msg_client.py --timeout 10 --msg "Loading . . . " #. /etc/osd_cat.cfg || { # color=yellow @@ -11,3 +10,14 @@ msg_client.py --timeout 10 --msg "Loading . . . " #} #echo -e "Loading . . . " | osd_cat --pos=middle --align=center --delay=10 --color=$color --outline=$outline --outlinecolour=$outlinecolour --shadow=$shadow --shadowcolour=$shadowcolour --font=$font + +msg_client.py --timeout 10 --msg "Loading Trailer..." --tag "trailers" & +sleep 2 +cacheFill=0 +while [[ cacheFill -eq 0 ]] +do + cacheFill=$(tail -n 1 /tmp/.mplayer-status | grep -ci "Cache fill") +done +#sleep 1 +msg_client.py --clear --tag "trailers" +msg_client.py --kill diff --git a/abs/extra/mythappletrailers/myth_trailers_grabber b/abs/extra/mythappletrailers/myth_trailers_grabber index ae32e75..074c879 100755 --- a/abs/extra/mythappletrailers/myth_trailers_grabber +++ b/abs/extra/mythappletrailers/myth_trailers_grabber @@ -1,25 +1,25 @@ - * + * * Description: Apple Trailer Grabber for mythtv - * + * * Version 0.4.3 - * + * * Apple Trailer Grabber is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. - * + * * Apple Trailer Grabber is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * + * * Usage: read the INSTALL file * Setup as a cron script to run as frequently as you want * @@ -30,8 +30,8 @@ // CONFIGURATION // command to use when streaming content from the internet - cache 50% before displaying and use 32MB of memory -$STREAMING_EXEC_CMD = 'loading.sh && mplayer-wrapper.pl -fs -zoom -really-quiet -user-agent "QuickTime/7.6.2" -cache 16000'; -$APPLE_FEED = 'http://www.apple.com/trailers/home/xml/current.xml'; +$STREAMING_EXEC_CMD = 'loading.sh & mplayer-wrapper.pl -fs -zoom -user-agent "QuickTime/7.6.2" -cache 16000'; +$APPLE_FEED = 'https://trailers.apple.com/trailers/home/xml/current.xml'; /************************************************************************/ // Shouldn't Need To modify anything beyond here @@ -43,58 +43,54 @@ define("XMLFEED", $APPLE_FEED); init_main(); -// Function: returns null | init_main () +// Function: returns null | init_main () // Description: Outputs Apple Trailer XML feed to watchable movie urls in MythTV menu XML format function init_main() { print "\n"; - + if(valid_url(XMLFEED)){ - - // Gather Array of Current Movie Trailers + //Gather Array of Current Movie Trailers //XML Data $xml_data = url_to_string(XMLFEED); //Creating Instance of the Class $xmlObj = new XmlToArray($xml_data); $arrayData = $xmlObj->createArray(); - + foreach($arrayData['records']['movieinfo'] as $Row){ - + $MovieTitle = $Row['info'][0]['title']; $MovieLink = $Row['preview'][0]['large']; + $MovieLink = preg_replace("/http:\/\//i", "https://", $MovieLink); //change http:// to https:// $VideoPlayCMD = PLAYERCMD . ' ' . $MovieLink; - + if(!valid_url($MovieLink)){ $MovieTitle = $MovieTitle . '*VIDEO ERROR*'; - $VideoPlayCMD = ''; + $VideoPlayCMD = ''; } - + print "\t\n\n"; - + print "\t\n\n"; + } }else{ print "\t\n\n"; + print "\t\n\n"; } - print "\n"; - - - } -// Function: returns boolean | valid_url ( var | url to check) -// Description: Checks to see if a url is a valid page +// Function: returns boolean | valid_url ( var | url to check) +// Description: Checks to see if a url is a valid page function valid_url($str) { if(@fopen($str, "r")) { @@ -104,36 +100,32 @@ function valid_url($str) } } -// Function: returns string | all elements of XML ( var | url to feed) +// Function: returns string | all elements of XML ( var | url to feed) // Description: Converts each element in an XML feed to single line string -// Notes: must have 'allow_url_fopen = On' in php.ini +// Notes: must have 'allow_url_fopen = On' in php.ini function url_to_string($url){ $lines = file($url); foreach ($lines as $line) { $lineR = trim($line); } - $lineR = eregi_replace("<" . "large" . "[^>]*>", "", $lineR); //hack for apple goofy xml + $lineR = preg_replace("/<" . "large" . "[^>]*>/i", "", $lineR); //hack for apple goofy xml return $lineR; } -// Class: returns (~) x array | elements of XML ( var | XML in string) +// Class: returns (~) x array | elements of XML ( var | XML in string) // Description: Converts each element in an XML feed to an Array class XmlToArray { - var $xml=''; - /** * Default Constructor * @param $xml = xml data * @return none */ - function XmlToArray($xml) { - $this->xml = $xml; + $this->xml = $xml; } - /** * _struct_to_array($values, &$i) * @@ -145,34 +137,34 @@ class XmlToArray * @param int $i this is the current location in the array * @return Array */ - + function _struct_to_array($values, &$i) { $child = array(); if (isset($values[$i]['value'])) array_push($child, $values[$i]['value']); - + while ($i++ < count($values)) { switch ($values[$i]['type']) { case 'cdata': array_push($child, $values[$i]['value']); break; - + case 'complete': $name = $values[$i]['tag']; if(!empty($name)){ $child[$name]= ($values[$i]['value'])?($values[$i]['value']):''; - if(isset($values[$i]['attributes'])) { + if(isset($values[$i]['attributes'])) { $child[$name] = $values[$i]['attributes']; } - } + } break; - + case 'open': $name = $values[$i]['tag']; $size = isset($child[$name]) ? sizeof($child[$name]) : 0; $child[$name][$size] = $this->_struct_to_array($values, $i); break; - + case 'close': return $child; break; @@ -180,7 +172,7 @@ class XmlToArray } return $child; }//_struct_to_array - + /** * createArray($data) * @@ -207,8 +199,6 @@ class XmlToArray $array[$name] = $this->_struct_to_array($values, $i); return $array; } - - } ?> diff --git a/abs/extra/mythappletrailers/mythappletrailers.install b/abs/extra/mythappletrailers/mythappletrailers.install index 602b96a..b8e3b97 100644 --- a/abs/extra/mythappletrailers/mythappletrailers.install +++ b/abs/extra/mythappletrailers/mythappletrailers.install @@ -9,7 +9,7 @@ post_upgrade() { /usr/LH/bin/gen_is_xml.py if [ -e /usr/share/mythtv/themes/defaultmenu/appletrailer.xml ] then - exit + exit else ln -s /$MYTHHOME/appletrailer.xml /usr/share/mythtv/themes/defaultmenu/appletrailer.xml fi diff --git a/abs/extra/mythappletrailers/play_trailer.sh b/abs/extra/mythappletrailers/play_trailer.sh index b584bd1..7ea6e9d 100644 --- a/abs/extra/mythappletrailers/play_trailer.sh +++ b/abs/extra/mythappletrailers/play_trailer.sh @@ -1,8 +1,6 @@ #!/bin/bash for TRAILER in $(cat $1) do - /usr/bin/loading.sh - mplayer -fs -zoom -really-quiet -user-agent "QuickTime/7.6.2" -cache 16000 $TRAILER + loading.sh & + mplayer-wrapper.pl -fs -zoom -user-agent "QuickTime/7.6.2" -cache 16000 $TRAILER done - - diff --git a/abs/extra/mythappletrailers/shuffle_trailers b/abs/extra/mythappletrailers/shuffle_trailers deleted file mode 100644 index f2d3a5e..0000000 --- a/abs/extra/mythappletrailers/shuffle_trailers +++ /dev/null @@ -1,134 +0,0 @@ -http://trailers.apple.com/movies/lionsgate/expendables2/expendables2-tlr2_h640w.mov -http://trailers.apple.com/movies/dreamworks/riseoftheguardians/riseoftheguardians-tlr2_h640w.mov -http://trailers.apple.com/movies/focus_features/hydeparkonthehudson/hydeparkonthehudson-tlr1_h640w.mov -http://trailers.apple.com/movies/weinstein/themaster/themaster-tlr1_h640w.mov -http://trailers.apple.com/movies/sony/searchingforsugarman/searchingforsugarman-tlr1_h640w.mov -http://trailers.apple.com/movies/focus_features/paranorman/paranorman-tlr2_h640w.mov -http://trailers.apple.com/movies/summit/theperksofbeingawallflower/perksofbeingawallflower-tlr1_h640w.mov -http://trailers.apple.com/movies/independent/flyingswords/flyingswords-tlr1b_h640w.mov -http://trailers.apple.com/movies/magnolia_pictures/aroyalaffair/aroyalaffair-tlr1_h640w.mov -http://trailers.apple.com/movies/dreamworks/madagascar3/madagascar3-tlr1_h640w.mov -http://trailers.apple.com/movies/paramount/funsize/funsize-tlr1_h640w.mov -http://trailers.apple.com/movies/independent/samsara/samsara-tlr2_h640w.mov -http://trailers.apple.com/movies/universal/despicableme2/despicableme2-tsr1_h640w.mov -http://trailers.apple.com/movies/independent/killerjoe/killerjoe-tlr1_h640w.mov -http://trailers.apple.com/movies/universal/ted/ted-tlr1_h640w.mov -http://trailers.apple.com/movies/independent/luv/luv_h640w.mov -http://trailers.apple.com/movies/fox/thewatch/thewatch-tlr1_h640w.mov -http://trailers.apple.com/movies/independent/thewords/thewords-tlr1_h640w.mov -http://trailers.apple.com/movies/independent/chained/chained-tlr1_h640w.mov -http://trailers.apple.com/movies/wb/thedarkknightrises/darkknightrises-tlr4_h640w.mov -http://trailers.apple.com/movies/magnolia_pictures/thegooddoctor/gooddoctor-tlr1_h640w.mov -http://trailers.apple.com/movies/paramount/gijoeretaliation/gijoeretaliation-tlr2_h640w.mov -http://trailers.apple.com/movies/independent/escapefire/escapefire-tlr1_h640w.mov -http://trailers.apple.com/movies/lionsgate/thebigwedding/bigwedding-tlr1_h640w.mov -http://trailers.apple.com/movies/disney/monstersinc3d/monstersinc3d-tlr3_h640w.mov -http://trailers.apple.com/movies/sony/hopesprings/hopesprings-tlr1_h640w.mov -http://trailers.apple.com/movies/wb/cloudatlas/cloudatlas-trailer1b_h640w.mov -http://trailers.apple.com/movies/independent/somewherebetween/somewherebetween-tlr1_h640w.mov -http://trailers.apple.com/movies/sony_pictures/herecomestheboom/herecomestheboom-tlr1_h640w.mov -http://trailers.apple.com/movies/independent/soldiersoffortune/soldiersoffortune-tlr1_h640w.mov -http://trailers.apple.com/movies/summit/sinister/sinister-tlr1_h640w.mov -http://trailers.apple.com/movies/wb/thehobbit1/thehobbit-tlr1_h640w.mov -http://trailers.apple.com/movies/independent/after/after-tlr2_h640w.mov -http://trailers.apple.com/movies/paramount/hanselandgretel/hanselandgretel-tlr1_h640w.mov -http://trailers.apple.com/movies/independent/thevictim/thevictim-tlr1_h640w.mov -http://trailers.apple.com/movies/independent/7500/7500-tlr1_h640w.mov -http://trailers.apple.com/movies/wb/thunderstruck/thunderstruck-tlr1_h640w.mov -http://trailers.apple.com/movies/independent/championsofthedeep/championsofthedeep-tlr1_h640w.mov -http://trailers.apple.com/movies/summit/twilightbreakingdawn2/twilightbd2-tlr2_h640w.mov -http://trailers.apple.com/movies/paramount/cirque/cirque-tl1_h640w.mov -http://trailers.apple.com/movies/fox/taken2/taken2-tlr1_h640w.mov -http://trailers.apple.com/movies/independent/10years/10years-tlr1_h640w.mov -http://trailers.apple.com/movies/independent/stolen/stolen-tlr2_h640w.mov -http://trailers.apple.com/movies/weinstein/thismustbetheplace/thismustbetheplace-tlr1_h640w.mov -http://trailers.apple.com/movies/marvel/theavengers/avengers-7c7b7a-tlr3_h640w.mov -http://trailers.apple.com/movies/newline/thelaststand/laststand-tlr1_h640w.mov -http://trailers.apple.com/movies/independent/klown/klown-tlr1_h640w.mov -http://trailers.apple.com/movies/lionsgate/freelancers/freelancers-tlr1_h640w.mov -http://trailers.apple.com/movies/disney/finding_nemo/findingnemo-tlr1_h640w.mov -http://trailers.apple.com/movies/independent/hitandrun/hitandrun-tl1_h640w.mov -http://trailers.apple.com/movies/independent/theoranges/oranges-tlr1_h640w.mov -http://trailers.apple.com/movies/magnolia_pictures/jackanddiane/jackanddiane-tlr1_h640w.mov -http://trailers.apple.com/movies/independent/arbitrage/arbitrageroad-tlr1_h640w.mov -http://trailers.apple.com/movies/weinstein/lawless/lawless-tlr1_h640w.mov -http://trailers.apple.com/movies/summit/stepuprevolution/stepuprevolution-tlr1_h640w.mov -http://trailers.apple.com/movies/wb/thetroublewiththecurve/troublewiththecurve-tlr1_h640w.mov -http://trailers.apple.com/movies/independent/leastamongsaints/leastamongsaints-tlr1_h640w.mov -http://trailers.apple.com/movies/independent/middleofnowhere/middleofnowhere-tlr1_h640w.mov -http://trailers.apple.com/movies/focus_features/foragoodtimecall/foragoodtimecall-tlr1_h640w.mov -http://trailers.apple.com/movies/independent/endofwatch/endofwatch-tlr1_h640w.mov -http://trailers.apple.com/movies/paramount/flight/flight-tlr1zyx77_h640w.mov -http://trailers.apple.com/movies/magnolia_pictures/2daysinny/2daysinny-tlr1_h640w.mov -http://trailers.apple.com/movies/magnolia_pictures/vhs/vhs-tlr1_h640w.mov -http://trailers.apple.com/movies/independent/sevenpsychopaths/sevenpsychopaths-tlr1_h640w.mov -http://trailers.apple.com/movies/independent/helloimustbegoing/helloimustbegoing_h640w.mov -http://trailers.apple.com/movies/universal/lesmiserables/lesmiserables-tsr1_h640w.mov -http://trailers.apple.com/movies/weinstein/warofthebuttons/warofthebuttons-tlr1_h640w.mov -http://trailers.apple.com/movies/independent/redhooksummer/redhooksummer-tlr1_h640w.mov -http://trailers.apple.com/movies/independent/saintsandsoldiers2/saintsandsoldiers2-tlr1_h640w.mov -http://trailers.apple.com/movies/universal/pitchperfect/pitchperfect-tlr1_h640w.mov -http://trailers.apple.com/movies/disney/frankenweenie/frankenweenie-tlr2_h640w.mov -http://trailers.apple.com/movies/independent/toysintheattic/toysintheattic-tlr1_h640w.mov -http://trailers.apple.com/movies/sony_pictures/battleoftheyear/battleoftheyear-tlr1_h640w.mov -http://trailers.apple.com/movies/independent/oogieloves/oog-tlr2_h640w.mov -http://trailers.apple.com/movies/summit/theimpossible/theimpossible-tlr1_h640w.mov -http://trailers.apple.com/movies/sony_pictures/sparkle/sparkle-tlr1_h640w.mov -http://trailers.apple.com/movies/fox/wontbackdown/wontbackdown-tlr1_h640w.mov -http://trailers.apple.com/movies/wb/argo/argo-tlr1_h640w.mov -http://trailers.apple.com/movies/universal/themanwiththeironfists/manwiththeironfists-tlr1_h640w.mov -http://trailers.apple.com/movies/magnolia_pictures/360/360-tlr1_h640w.mov -http://trailers.apple.com/movies/lionsgate/alexcross/alexcross-tlr1_h640w.mov -http://trailers.apple.com/movies/magnolia_pictures/rec3/rec3-tlr1_h640w.mov -http://trailers.apple.com/movies/weinstein/silverliningsplaybook/silverlinings-tlr1_h640w.mov -http://trailers.apple.com/movies/sony_pictures/looper/looper-tlr2_h640w.mov -http://trailers.apple.com/movies/lionsgate/thehungergames/thehungergames-tlr1a_h640w.mov -http://trailers.apple.com/movies/sony_pictures/premiumrush/premiumrush-tlr2_h640w.mov -http://trailers.apple.com/movies/lionsgate/dredd/dredd-tlr1_h640w.mov -http://trailers.apple.com/movies/fox/chasingmavericks/chasingmaverics-tlr2_h640w.mov -http://trailers.apple.com/movies/independent/doggieb/doggieb-tlr1_h640w.mov -http://trailers.apple.com/movies/weinstein/djangounchained/django-tsr1_h640w.mov -http://trailers.apple.com/movies/fox/iceage4/iceage4-tlr2_h640w.mov -http://trailers.apple.com/movies/independent/thetallman/thetallman-tlr1_h640w.mov -http://trailers.apple.com/movies/independent/troublewiththetruth/troublewiththetruth-tlr1_h640w.mov -http://trailers.apple.com/movies/fox_searchlight/thesessions/thesessions-tlr1_h640w.mov -http://trailers.apple.com/movies/independent/sacrifice/sacrifice-tlr1_h640w.mov -http://trailers.apple.com/movies/independent/houseattheendofthestreet/houseattheendofthestreet-tlr3_h640w.mov -http://trailers.apple.com/movies/disney/theoddlifeoftimothygreen/oddlifeoftimothygreen-tlr2_h640w.mov -http://trailers.apple.com/movies/independent/babymakers/babymakers-tlr1_h640w.mov -http://trailers.apple.com/movies/independent/robotfrank/robotandfrank-tlr1_h640w.mov -http://trailers.apple.com/movies/weinstein/killingthemsoftly/killingthemsoftly-tlr1_h640w.mov -http://trailers.apple.com/movies/magnolia_pictures/compliance/compliance-tlr1_h640w.mov -http://trailers.apple.com/movies/sony_pictures/celesteandjesseforever/celesteandjesse-tlr1_h640w.mov -http://trailers.apple.com/movies/sony_pictures/skyfall/skyfall-tlr2_h640w.mov -http://trailers.apple.com/movies/independent/thepaperboy/thepaperboy-tlr1_h640w.mov -http://trailers.apple.com/movies/paramount/paranormalactivity4/paranormalactivity4-tlr1_h640w.mov -http://trailers.apple.com/movies/independent/generaleducation/generaleducation-tlr1_h640w.mov -http://trailers.apple.com/movies/wb/thegreatgatsby/greatgatsby-tlr1_h640w.mov -http://trailers.apple.com/movies/sony_pictures/residentevilretribution/residentevil-tlr2_h640w.mov -http://trailers.apple.com/movies/fox/diaryofawimpykiddogdays/diaryofawimpykiddogday-tlr1_h640w.mov -http://trailers.apple.com/movies/independent/unconditional/unconditional-tlr1_h640w.mov -http://trailers.apple.com/movies/universal/thisis40/thisis40-tlr3_h640w.mov -http://trailers.apple.com/movies/independent/theawakening/awakening-tlr1_h640w.mov -http://trailers.apple.com/movies/disney/ozthegreatandpowerful/oz-tlr1-2938tyz_h640w.mov -http://trailers.apple.com/movies/sony_pictures/totalrecall/totalrecall-tlr4_h640w.mov -http://trailers.apple.com/movies/wb/thecampaign/thecampaign-tlr1_h640w.mov -http://trailers.apple.com/movies/independent/solomonkane/solomonkane-tlr1_h640w.mov -http://trailers.apple.com/movies/wb/manofsteel/manofsteel-tlr1-r_h640w.mov -http://trailers.apple.com/movies/wb/theapparition/theapparition-tlr1_h640w.mov -http://trailers.apple.com/movies/universal/bournelegacy/bournelegacy-tlr2_h640w.mov -http://trailers.apple.com/movies/independent/bachelorette/bachelorette-tlr1_h640w.mov -http://trailers.apple.com/movies/magnolia_pictures/nobodywalks/nobodywalks-tlr1_h640w.mov -http://trailers.apple.com/movies/fox_searchlight/beastsofthesouthernwild/beastsofthesouthernwild-tlr1_h640w.mov -http://trailers.apple.com/movies/magnolia_pictures/deadfall/deadfall-tlr1_h640w.mov -http://trailers.apple.com/movies/independent/branded/branded-tlr1_h640w.mov -http://trailers.apple.com/movies/independent/thebay/thebay-tlr_h640w.mov -http://trailers.apple.com/movies/sony/chickenwithplums/chickenwithplums-tlr1_h640w.mov -http://trailers.apple.com/movies/disney/brave/brave-tlr5_h640w.mov -http://trailers.apple.com/movies/focus_features/annakarenina/annakerenina-tlr1_h640w.mov -http://trailers.apple.com/movies/lionsgate/thepossession/possession-tlr1_h640w.mov -http://trailers.apple.com/movies/fox/lifeofpi/lifeofpi-tlr1_h640w.mov -http://trailers.apple.com/movies/disney/wreckitralph/wreakitralph-tlr1_h640w.mov -http://trailers.apple.com/movies/sony_pictures/hoteltransylvania/hoteltransylvania-tlr2_h640w.mov -http://trailers.apple.com/movies/disney/monstersuniversity/monstersuniversity-tlr1_h640w.mov -http://trailers.apple.com/movies/independent/goats/goats-tlr1_h640w.mov diff --git a/abs/extra/mythappletrailers/trailers b/abs/extra/mythappletrailers/trailers index 9611439..fb03498 100755 --- a/abs/extra/mythappletrailers/trailers +++ b/abs/extra/mythappletrailers/trailers @@ -1,2 +1,2 @@ #!/bin/sh -su mythtv -c '/usr/bin/php -q /usr/bin/myth_trailers_grabber > /home/mythtv/appletrailer.xml && /usr/bin/fix_aple_url.sh && /usr/bin/gen_trailer_menu.sh' 2>/dev/null +su mythtv -c '/usr/bin/php -q /usr/bin/myth_trailers_grabber > /home/mythtv/appletrailer.xml && /usr/bin/gen_trailer_menu.sh' 2>/dev/null -- cgit v0.12