Apple Movie Trailers (AMT) script suggestion

Filed under:hznp.com — webmaster @ January 8, 2009 edit
  • First off let me say that this is a huge improvement over the other script.

    I use the download and save option in the settings. I was using it the other day and downloaded a trailer that I didn't want to keep. So, I went to the directory that I specified and noticed that there are 3 different files for each trailer.

    This got me to thinking. How about an option in the settings screen that is basicly a file browser. But, instead of showing all 3 files it would show just the title of the trailer and maybe the poster. This would give the users a way to easily delete all the files for a given trailer with fewer buttons presses.

    Maybe you could even have it setup so that this option would not be available unless the download and save option was selected.

    Even if you can't add a feature like this it is still a great script.


  • I just did a checkout from SVN and experienced the same issue. Your fix worked perfectly, but I found it on Line 97, not Line 69.
    The file I'm talking about is "gui.py" contained in the archive called "Apple_Movie_Trailers-0.91.zip" (the most recent version of this script, as far as I know) which can be downloaded from XBMCScripts.com.
    In that file you have to change line 69.

    Line 97 says:

    self.controls['X Button On']['control'].setVisible( xbmc.getCondVisibility( self.controls['X Button On']['visible'] ) )

    and has nothing to do with the incompatibility issue.


  • Hi,
    I've updated the whole database (takes a long long time) can use studio and actor now but the search function is still not available.

    any ideas?


  • found onother bug: settings menue doesn't work under MC360 skin


  • there is no 0.94.
    latest version is 0.93.5, and svn is svn (no version)


  • I'm wondering why Nuka hasn't changed this in the SVN (I just looked at it)


  • Mikeypr, change your thumbs to poster in settings.


  • Harsh is right, the initial database creation doesn't download the trailer, it downloads all info and poster, then creates thumbs. It is a slow process that I'm currently trying to figure out a better way.

    It use to be able to only download the info as the trailer was highlighted, but no thumbnail. I may look at changing it back to work that way. The problem is, now everything is an sql command. Unless you create the whole database, Actor list, studio list, rating, genre list..., search and so on will not be complete. The genre may be able to be done.

    Any suggestions will be considered.

    there are 1218 trailers in my database. :)

    I was going to work on a playlist (check the context menu), but couldn't figure out a good way. Maybe once the code is cleaned up, I'll take another look.

    Again any suggestions.


  • I *think* if you make a bookmark in my videos you get exactly that.

    here's what the 3 files do:
    .mov = trailer
    .conf = mplayer need this, otherwise it has problem playing the stream "Locally", it shouldnt be visible under my videos
    .tbn = I haven't tested, but this oughta show up as the ICOn for the file in.. My Videos


  • AMT won't start in latest SVN from XBMC compiled a few days ago.

    error message:
    "There was an error setting up your GUI.
    Check your skinfile:
    q:scriptsApple Movie TrailersskinsDefaultskin.xml"

    entries in xbmc.log:
    22:22:48 M: 42643456 ERROR: Texture manager unable to load file: Q:skinProject Mayhem IIImediascrollbar_background.png
    22:22:48 M: 42643456 ERROR: Texture manager unable to load file: Q:skinProject Mayhem IIImediascrollbar_bar.png
    22:22:48 M: 42643456 ERROR: Texture manager unable to load file: Q:skinProject Mayhem IIImediascrollbar_bar_focus.png
    22:22:48 M: 42643456 ERROR: Texture manager unable to load file: Q:skinProject Mayhem IIImediascrollbar_nib.png
    22:22:48 M: 42643456 ERROR: Texture manager unable to load file: Q:skinProject Mayhem IIImediascrollbar_nib_focus.png
    22:22:54 M: 36753408 ERROR: Keymapping error: no such action 'q:scriptsapple movie trailersdefault.py' defined

    regards cy


  • Nuka1195 thanks for adding this feature. Nuka1195 can you check out my other thread and let me know if it is really a bug or not?

    Affini follow this link and you should be able to find it

    http://xbmc-scripting.googlecode.com/svn/trunk/

    anyway to DL the entire script at once... instead of each individual file in the set?


  • Because it's not a fix, it's a work around. All it does is not allow tags.

    I'll fix it soon.


  • i added the delete saved trailer to the context menu. good idea

    http://code.google.com/p/xbmc-scripting/


  • Nuka, your most recent settings alterations seem to have a glitch. When I try and start the script it gives me the settings error.


  • Like I said, I am using the very latest version of the script as obtained via the SVN here:
    http://xbmc-scripting.googlecode.com/svn/trunk/
    can be obtained if you have SVN installed by running this command:
    SVN co http://xbmc-scripting.googlecode.com/svn/trunk/ [Local directory you want to checkout to here]

    The same fix has to be applied to the AccuWeather script, which I also got via SVN.


  • No offense... but 2nd post and not thought through before it was made...

    You take the time to create the initial database but that isnt downloading the trailer itself. Cache wont take long true enough but that is playing AFTER you download the thing. At this point I will asume you are talking about playing previously downloaded trailers because nobody is foolish enough to start trying to play all without a local (which was my original understanding as you didnt specify taking the time to scalp the entire site).

    But for a simple play all fix, just add your trailer directory to my videos as a bookmark and make a playlist to run through there. I would think the scripts initial purpose is to update you to new and upcoming films (unless you get everything and I see some pretty old ones there). Once you have picked your downloads and completed them just play them in XBMC like you would any other playlist since the script isnt really needed.


  • also working under MC360


  • also it took a really long time to build the database the first time I ran this script, would it be possible to distribute the database file along with the script and then just update that instead of building it 100% from scratch every time?


  • Hi.
    I'm using AMT 0.93.5 and there is one thing that REALLY bugs me: on every hop to next title on the genre, app loads the cover and basic data from the net. This is irritating when I would like to step ie. 5 titles over.

    Can there be a conf flag for "load data when title is focused" instead of or stroke.
    :)


  • you will easily run out of memory if you try and update all genres with 93.5, you can grab the latest files from svn (not tagged) and when asked, do a complete database creation. This will take a long time, but you will have more options and no memory issues.


  • additional info:
    tried with other skin in XBMC (PM I) and AMT works


  • Sorry I don't have the time to check thoroughly if someone already suggested this, but the apple movie trailers script _needs_ a playlist or at least sequential automatic playing of all trailers.
    Thank you.


  • I'm not sure if this is a bug or something wrong with my setup. I'm using AMT 0.93.5 and am trying to update the database. I go through each category/genre to download or thumbnails to cache. However, it has a problem updating AMT.pk I've gone through it a few times and figured maybe there is a corrupt movie info so I check each category one by one. Instead of a category being the problem, it appears AMT.pk is unable to update once it gets to a certain size (haven't verified what the size is when it fails). I have ample space on the partition where it is being written (>32GB). Using AMT 0.91 I am able to update all on the database and not have this issue. I have already tried removing AMT completely and reinstalling it from both the FAT and SLIM packs of XBMC 2.0.1. I have not yet tried the SVN version but will give it a shot when I have time. I'm just curious to know if anyone else is experiencing the same issue and what the workaround might be.


  • I don't see what this has to do with anything, you can just interrupt the process if you are done watching. BTW caching takes like 5 seconds, so even that doesn't matter.


  • stream and save anyone?


  • I just did a checkout from SVN and experienced the same issue. Your fix worked perfectly, but I found it on Line 97, not Line 69.


  • Nuka1195 I checked out the svn build from yesterday and the delete function works great. Thanks for putting it in. It looks like you are going to add some cool features. If you need anyone to beta test them for you pm me.


  • pikes technically right, it's not versioned until it's tagged even though it says 0.94. I should probably change that to pre 0.94.

    Search function isn't created yet, so no point in enabling it.


  • Thanks for the reply, look forward to it


  • Nuka1195 Sorry I didn't post a link because my other thread was only down about 6 threads. But here's the link

    http://xbmc.org/forum/showthread.php?t=22562

    Affini Here is the program that you need to install to allow you to download everything at once

    http://tortoisesvn.net/downloads


  • hmm, maybe a flag that shows it's downloaded in the trailer list itself, then an option on the context menu to delete.

    Won't happen for a while though.


  • if you are using a new build, there is a problem with creating the gui.

    add fastMethod=True to the call to guibuilder, or wait until i fix it.



    if this is the same probem I described - where must I add "fastMethod=True" ?


  • You guys ever considered a revamp of Launchbrowser in your trunk... I imagine the script itself might be a bit overdue (I am a code idiot or I would make the attempt myself) and your deign skills are great!


  • It has favorites, apple has over 300 trailers on their site at any given time. Think about how long it would take to cache or DL all of them in addition to playing them


  • Wasnt the intent Akor and no offense taken... to be honest playlist for a stream would be kind of foolish I suppose as the script wont actually "stream" as I have come to know it (like the other versions Ive come across anyway) but for the record.. I'm on cable ;)

    As for post count.. everybody started at one and the only way to increase is by asking questions and I can honestly say I have asked ALOT of questions.. and not all of them were the brightest questions to be sure... but in the end its the only way to learn.


  • sorry but forgot to mention: I am using latest version from svn: 0.94


  • if you are using a new build, there is a problem with creating the gui.

    add fastMethod=True to the call to guibuilder, or wait until i fix it.

    realjobe, this has been covered many times, just set the thumbs to poster.


  • i added the fastMethod option and fixed another bug in SVN. I'm not going to do the search until I get guibuilder fixed. I'm having issues with that so it may be a while.


  • Since installing the latest build of XBMC/Apple Movie Trailers, scroling through the movie list has been a nightmare. I have to wait for it to get the information for each fille as I scroll through. This only happens the first time I scroll through the list.

    Where has the Update all button gone? Was so much faster.

    Thanks To anybody that can help.


    Mikey


  • if this is the same probem I described - where must I add "fastMethod=True" ?

    Open file scriptsApple Movie Trailerslibgui.py and edit line 69 changing from

    guibuilder.GUIBuilder( self, os.path.join( self.skinPath, skin ), self.imagePath, useDescAsKey=True, title=default.__scriptname__, line1=__line1__, dlg=dialog, pct=pct, debug=False )

    to

    guibuilder.GUIBuilder( self, os.path.join( self.skinPath, skin ), self.imagePath, useDescAsKey=True, title=default.__scriptname__, line1=__line1__, dlg=dialog, pct=pct, fastMethod=True, debug=False )


  • Not sure if this has been brought up before - any chance if possible to add a stream and save option in AMT? so if i wish to watch a trailer at a later time its saved - but i can stream it the first time so i dont have to wait for it?

    Over in Australia - we have crappy slow broadband :no:


  • Affini, I can't reproduce your "Bug", if you're using an older version, update.

    Abe87, I'm not going searching for your other thread :)


  • Hi Nuka,

    I installed AMT (latest SVN release) recently and after using it for a few days now I would like to thank you for the excellent work! Still there's is some "features" I would like to suggest:

    1. I can see if I have already watched a trailer in the context menu, as it states "Mark unwatched" here. But I do not have a single chance to see that from the trailer list. Is that only with me? If not it would be rather cool to mark the watched trailers in the list, maybe with a red dot or something alike.

    2. I would like to download trailers "on demand" and not by changing my settings. Example: I have watched a trailer and get back to the list. Now I press "Black" and the video downloads to the location I have specified in my settings... (Maybe that is already implemented but I am just too stupid to use it properly :) )

    Would love to hear what you think of these ideas...

    akaigotchi


  • Just tried this and I have to say its WONDERFUL! Cant wait till the additional list parameters are in (Studio) and the search and favorites are going. Keep up the good work guys its certainly appreciated.


  • OK, next stupid question on my part... search function? Predictions?

    BTW, not meaning to sound pushy at all but I do love the work done thus far, it saves me alot of headache when my wife wants me to see a trailer for a show she wants to see.


  • Nuka1195 thanks for adding this feature. Nuka1195 can you check out my other thread and let me know if it is really a bug or not?

    Affini follow this link and you should be able to find it

    http://xbmc-scripting.googlecode.com/svn/trunk/


  • 2 questions...

    1) where on the site is the script?

    2) did you fix the issue where the text was black and should have been white?

    thx 4 the great work!


  • 1. if you are using the default skin, theres an overlay icon on the poster.
    red checkmark means it's downloaded and saved
    magnifying glass means it's been watched
    yellow star means it's a favorite.
    if you want that in the list, like the asterix for favorite. it can be added, but where? Maybe to the left or right of rating. It kinda clutters the line to have too many symbols.

    2. So you have mode set to stream and after you watch a trailer you decide you want to keep it, so an option in the context menu to download and save? Maybe, i'll think about it.


  • when I use the translated Includes.xml (German) for MC360 from here: http://forums.xbox-scene.com/index.php?showtopic=551551
    AMT also doesn't work in MC360.
    with the original english one AMT works.


  • But for a simple play all fix, just add your trailer directory to my videos as a bookmark and make a playlist to run through there. I would think the scripts initial purpose is to update you to new and upcoming films (unless you get everything and I see some pretty old ones there). Once you have picked your downloads and completed them just play them in XBMC like you would any other playlist since the script isnt really needed.

    I was going to work on a playlist (check the context menu), but couldn't figure out a good way. Maybe once the code is cleaned up, I'll take another look.

    Thank you and thank you - and Harsh, no offense - but I don't even want to know what part of 'playlist' you didn't understand. Are you on dial-up or something? For me it doesn't even make a difference playing a trailer from HDD or streaming it.

    Also if you try to equal the post count on a forum to knowledge, you will utterly fail.







  • #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about Apple Movie Trailers (AMT) script suggestion , Please add it free.
    end