HOW TOs

From EmberMediaManager
Jump to: navigation, search

EMM Command Line Reference

Movies:

Scraper Type:

-fullask

-fullauto

-fullskip

-missask

-missauto

-missskip

-newask

-newauto

-newskip

-markask

-markauto

-markskip

-file "FILEPATH" **** BROKEN ****

-folder "FOLDERPATH" **** BROKEN ****

Scraper Mode:


-all

-banner

-clearart

-clearlogo

-discart

-efanarts

-ethumbs

-fanart

-landscape

-nfo

-poster

-theme

-trailer

TV Shows (Episodes):

-tvupdate

Special:

-nowindow

-run "MODULENAME" **** BROKEN ****

Examples

Syntax is:

[-ScraperType -ScraperMode] [-tvupdate] [-Special]

Update movie database, autoscrape new movies and get all content (based on your settings):

-newauto -all

Update movie database, scrape new movies (ask if more then one movie search result) and get NFO and Posters, update also tv show database:

-newask -nfo -poster -tvupdate

Update tv show database only:

-tvupdate

Don't use -miss* with -all !

XBMC: Explanation of basic Ember 1.4 Scraper Behaviour

ScraperTuning in Ember

Scraper at the top of the list on right side will be used first and, as they cascade down, collect and replace each other as they are inherited. The general rule of thumb is that the last Scraper on that list will most likely define the outcome.

XBMC: How to sync playcount/watched state of NFO files with your movielibrary

Things you need:

  1. http://Trakt.tv account
  2. XBMC Addon trakt.tv tv/movie scrobbler http://forum.xbmc.org/showthread.php?tid=138745
  3. Ember

If you don't have a trakt.tv account already go and register on offical site and then install the XBMC Trakt.tv addon from above! Make sure that you sync/upload your watched episodes/movies to trakt.tv (check out the Addon settings!). Go and login into your trakt.tv online account and check out if your synced movies/episodes from XBMC are listed there


Trakt.tv sync in Ember
  1. Enable trakt.tv modul in Ember
  2. Fill your trakt.tv account data and save credentials
  3. Now scrape your watched movies/episodes from your trakt.tv account. The result will be displayed on the list on right side
  4. Save the playcount data in your movie/episode nfo in <PLAYCOUNT> Field!

When you rebuild/scan your XBMC library remember to set set "importwatchedstate" to true in advancedsettings.xml of xbmc, look here http://wiki.xbmc.org/?title=Advancedsettings.xml

Avoid duplicate images for extrafanarts

SettingExplained:ImageFilter

How to create your own HTML Export Template

First we take a look to an existing template in Ember Manager. Let’s take a look at „template“ in Ember:


template structure1

Each template in Ember consists of static and dynamic HTML. In the above picture all dynamic sections of the template are marked red. As you see we have GENRE, PLOT, TITLE, PATH and YEAR information of the movie as dynamic parts.

Now let’s take a look on the HTML file by opening the „English_(en_US).html“ file of the template. You can find this file under „../LANGS/html/template“ This HTML File is the basic file which is parsed during the Ember HTML Build process. Basically it’s simple HTML code mixed with javascript and maybe CSS style elements - for people who already have some experience in building homepages and internet sites this is nothing new. However there are some special rules which apply to the Ember template file. Now let’s open the template file with a text editor. As you see it starts with some CSS style definitions followed by some javascript functions. For now let’s move to the HTML section which produces the layout of the page:


template structure2

Now the interesting part is the declaration of ONE MOVIE section (using the <$MOVIE> tag). Following rules apply:

  1. Inside this tag you will define the layout of the movie information/presentation.
  2. Inside MOVIE section you can use valid Ember variables like $YEAR, §MOVIENAME, $FILENAME, $PLOT and $GENRES.... Each of this variable will be replaced with the specific information from Ember database.
  3. The MOVIE section will be repeated for every single movie during the Ember HTML Build process. Because of that the variable $COUNT is important as it is used to distinguish between movies in the template, i.e. if you have a colleciton of 43 movies, COUNT will range from 1 to 43

Maybe it’s easier to understand if you take a look at the HTML code created by Ember after exporting the HTML Template:


template structure3

As you can see the variables have been replaced with the specific Ember database information. Also you see that the MOVIE section is generated for each movie of your collection. Fort he first movie you see that number „1“ was inserted for COUNT , fort he second movie it’s „2“. This information is used in the „onclick“ event of the movie information to call a function and sending an ID (COUNT, like „1“, „2“) to the function at the same time.

This is it! You now have the basic knowledge to create some HTML Movie Templates of your own. Below is a list of valid EMBER variables you can use in the MOVIE section to query and output specific movie information:

<$MOVIE_PATH>
<$POSTER_FILE>
<$FANART_FILE>
<$MOVIENAME>
<$ORIGINALTITLE>
<$ACTORS>
<$DIRECTOR>
<$CERTIFICATION>
<$IMDBID>
<$MPAA>
<$RELEASEDATE>
<$RUNTIME>
<$TAGLINE>
<$RATING>
<$VOTES>
<$LISTTITLE>
<$YEAR>
<$COUNTRY>
<$COUNT>
<$FILENAME>
<$DIRNAME>
<$OUTLINE>
<$PLOT>
<$GENRES>
<$VIDEO>
<$VIDEO_DIMENSIONS>
<$AUDIO>
<$SIZE>
<$DATEADDED>
<$SET> 'All sets which movie belongs to, seperated with ";"
<$NOW> 'Save Build Date. might be useful info!
<$COUNTRY>
<$TMDBID>
<$PLAYCOUNT>
<$STUDIO>
<$TOP250>
<$TRAILER>
<$VIDEOSOURCE>
<$WATCHED>
<$VIDEOBITRATE>
<$VIDEOMULTIVIEW> 3D Support if > 1 -> 3D Movie
<$VIDEOENCODINGSETTINGS>
<$AUDIOBITRATE>
<$MOVIESETS> 'A long string of all moviesets, seperated with ";"