2012-01-02, 16:05
Here is a quick and dirty warkaround to get a Smart Playlist for the current Golden Globe nominees.
This should also work for other awards.
What you need:
How to do it:
Things that need to be optimized:
Its really sad, XBMC-smartplaylists don't support "imdbid".
This would make it much easier to generate such a playlist for every language.
Maybe someone could enhance the script to download the list of nominees with wget and still use the right localization.
Here is the finished smart playlist for the 2012 Golden Globe Nominees with german movie-titles.
globe_nominees_2012.xsp
I still got some problems regarding the licalization.
In XBMC "The Ides of March - Tage des Verrats" got the alternate german title "Die Iden des März".
I don't know why it does not use the german imdb-display title.
For "Carnage" it just uses the original title even though imdb has the german title "Der Gott des Gemezelts" and uses it for the nominee-list.
This should also work for other awards.
What you need:
- Browser
- Texteditor
- Linux-Shell
How to do it:
- Copy the list of nominees to a textfile.
http://www.imdb.com/oscars/nominations/golden-globes
Uploaded with ImageShack.us
Make sure IMDB displays the movie-tiltle in the same language you defined for the IMDB-scraper-plugin.
- Create a shell-script with this code:
Use the script to convert the raw list of nominees to a smart playlist for XBMC:Code:#!/bin/sh
echo -e "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\" ?>\n"
echo -e "<smartplaylist type=\"movies\">\n"
echo -e "<name>Golden Globe Nominees(2011)</name>\n"
echo -e "<match>one</match>\n"
echo -e ""
cat $1 | grep -i "(" | sed s/:.*//g | sed s/.*for\ //g | sed s/\"//g | sed 's/ *(.*//g' | sort | uniq \
| awk '{print "<rule field=\"title\" operator=\"is\">"$0"</rule>"}'
echo -e ""
echo -e "</smartplaylist>\n"
The script just filters the movie-titles, deletes duplicates and builds the xml-tags for the playlist around it.Code:./nominees2playlist.sh globe_nominees.txt > globe_nominees_2011.xsp
- Copy the generated XSP to your XBMC-folder (e.g. "c:\Users\<Username>\AppData\Roaming\XBMC\userdata\playlists\video\")
Things that need to be optimized:
- This works only if the List of nominees and the movie-titles in XBMC use the same localization.
- You need a Linux-Shell and basic know-how.
- Generate the same list for tvshows.
Its really sad, XBMC-smartplaylists don't support "imdbid".
This would make it much easier to generate such a playlist for every language.
Maybe someone could enhance the script to download the list of nominees with wget and still use the right localization.
Here is the finished smart playlist for the 2012 Golden Globe Nominees with german movie-titles.
globe_nominees_2012.xsp
Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<smartplaylist type="movies">
<name>Golden Globe Nominees (2012)</name>
<match>one</match>
<rule field="title" operator="is">30 Rock</rule>
<rule field="title" operator="is">50/50</rule>
<rule field="title" operator="is">Albert Nobbs</rule>
<rule field="title" operator="is">American Horror Story - Die dunkle Seite in dir</rule>
<rule field="title" operator="is">Appropriate Adult</rule>
<rule field="title" operator="is">Arthur Weihnachtsmann</rule>
<rule field="title" operator="is">Beginners</rule>
<rule field="title" operator="is">Boardwalk Empire</rule>
<rule field="title" operator="is">Boss</rule>
<rule field="title" operator="is">Brautalarm</rule>
<rule field="title" operator="is">Breaking Bad</rule>
<rule field="title" operator="is">Californication</rule>
<rule field="title" operator="is">Cars 2</rule>
<rule field="title" operator="is">Cinema Verite</rule>
<rule field="title" operator="is">Crazy, Stupid, Love.</rule>
<rule field="title" operator="is">Der Gott des Gemetzels</rule>
<rule field="title" operator="is">Der Junge mit dem Fahrrad</rule>
<rule field="title" operator="is">Der gestiefelte Kater</rule>
<rule field="title" operator="is">Die Abenteuer von Tim und Struppi</rule>
<rule field="title" operator="is">Die Borgias - Sex. Macht. Mord. Amen.</rule>
<rule field="title" operator="is">Die Eiserne Lady</rule>
<rule field="title" operator="is">Die Haut in der ich wohne</rule>
<rule field="title" operator="is">Die Kunst zu gewinnen - Moneyball</rule>
<rule field="title" operator="is">Downton Abbey</rule>
<rule field="title" operator="is">Dr. Dani Santino - Spiel des Lebens</rule>
<rule field="title" operator="is">Drive</rule>
<rule field="title" operator="is">Eine dunkle Begierde</rule>
<rule field="title" operator="is">Enlightened</rule>
<rule field="title" operator="is">Episodes</rule>
<rule field="title" operator="is">Game of Thrones - Das Lied von Eis und Feuer</rule>
<rule field="title" operator="is">Gefährten</rule>
<rule field="title" operator="is">Glee</rule>
<rule field="title" operator="is">Gnomeo & Juliet</rule>
<rule field="title" operator="is">Good Wife</rule>
<rule field="title" operator="is">Homeland</rule>
<rule field="title" operator="is">Hugo Cabret</rule>
<rule field="title" operator="is">Hung - Um Längen besser</rule>
<rule field="title" operator="is">In the Land of Blood and Honey</rule>
<rule field="title" operator="is">J. Edgar</rule>
<rule field="title" operator="is">Jin líng shí san chai</rule>
<rule field="title" operator="is">Luther</rule>
<rule field="title" operator="is">Machine Gun Preacher</rule>
<rule field="title" operator="is">Midnight in Paris</rule>
<rule field="title" operator="is">Mildred Pierce</rule>
<rule field="title" operator="is">Modern Family</rule>
<rule field="title" operator="is">My Week with Marilyn</rule>
<rule field="title" operator="is">Nader und Simin - eine Trennung</rule>
<rule field="title" operator="is">New Girl</rule>
<rule field="title" operator="is">Page Eight</rule>
<rule field="title" operator="is">Parks and Recreation</rule>
<rule field="title" operator="is">Rango</rule>
<rule field="title" operator="is">Revenge</rule>
<rule field="title" operator="is">Shame</rule>
<rule field="title" operator="is">The Artist</rule>
<rule field="title" operator="is">The Big Bang Theory</rule>
<rule field="title" operator="is">The Big C ... und jetzt ich</rule>
<rule field="title" operator="is">The Descendants - Familie und andere Angelegenheiten</rule>
<rule field="title" operator="is">The Guard - Ein Ire sieht schwarz</rule>
<rule field="title" operator="is">The Help</rule>
<rule field="title" operator="is">The Hour</rule>
<rule field="title" operator="is">The Ides of March - Tage des Verrats</rule>
<rule field="title" operator="is">The Killing</rule>
<rule field="title" operator="is">Too Big to Fail - Die große Krise</rule>
<rule field="title" operator="is">Verblendung</rule>
<rule field="title" operator="is">W.E.</rule>
<rule field="title" operator="is">We Need to Talk About Kevin</rule>
<rule field="title" operator="is">Young Adult</rule>
</smartplaylist>
I still got some problems regarding the licalization.
In XBMC "The Ides of March - Tage des Verrats" got the alternate german title "Die Iden des März".
I don't know why it does not use the german imdb-display title.
For "Carnage" it just uses the original title even though imdb has the german title "Der Gott des Gemezelts" and uses it for the nominee-list.