Kodi Community Forum

Full Version: [RELEASE] MyMovies.DK Video Scraper
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Introducing the MyMovies.DK Video Scraper for XBMC. It is now possible to use the MyMovies.DK meta database via an API - without the need for a PC or Server.

MyMovies.DK wiki with information about this scraper and the use of it.

It has taken along time to create this scraper but it has been a lot of fun and I've learned stuff along the way about both XBMC and regular expressions. I've even had to create a few patches to get XBMC to "behave" to my needs (fixed a bug in NfoUrl and made it possible to overrule XBMC's sorting). The support for error dialogs was added by Spiff so that login problems can be reported to the user.
Now it's out there and I hope at least a few people will like it and use it.

Finally I would like to thank Spiff and Nicezia for their help.

Version 1.1 has been released...

- Support for trailers from filmtrailer.com
- Added support for SortTitle

- MPAA rating now just shows PG-13 instead of longer localized text. This means a rating should always be visible for all languages
Hi, ultrabrutal. I did not notice post earlier. Splendid job you did with Brian. Thanks guys!

BTW, don't know why it is in trac and forum that this scraper is commercial only. It can be also freely used by anybody that contributed some amount of DVD titles to mymovies.dk

I recently moved to XBMC from other options, delighted apart from the scraping which I find really hit & miss.

I used metaBrowser before and would like to continue doing so; easy GUI for managing fanart, poster & movie/TV data. http://themetabrowser.com/

The result is a MyMovies.xml file which stores the metadata.

  <LocalTitle>Public Enemies</LocalTitle>
  <OriginalTitle>Public Enemies</OriginalTitle>
  <SortTitle>Public Enemies</SortTitle>
  <Added>20/10/2009 19:14:06</Added>
  <Description>Public Enemies is a 2009 crime film directed by Michael Mann. Set during the Great Depression, it focuses on the true story of FBI agent Melvin Purvis's attempt to stop criminals John Dillinger, Baby Face Nelson, and Pretty Boy Floyd.</Description>
  <Type />
      <Name>Michael Mann</Name>
      <Role />
      <Name>Christian Bale</Name>
      <Role>Melvin Purvis</Role>
      <Name>Johnny Depp</Name>
      <Role>John Dillinger</Role>
      <Name>Giovanni Ribisi</Name>
      <Role>Alvin Karpis</Role>
      <Name>Billy Crudup</Name>
      <Role>J. Edgar Hoover</Role>
      <Name>Emilie de Ravin</Name>
      <Role>Anna Patzke</Role>
      <Name>Channing Tatum</Name>
      <Role>Pretty Boy Floyd</Role>
      <Name>Marion Cotillard</Name>
      <Role>Billie Frechette</Role>
      <Name>Leelee Sobieski</Name>
      <Role>Polly Hamilton</Role>
    <Studio>Forward Pass</Studio>
    <Studio>Universal Pictures</Studio>

My question is - would it be possible to develop a plugin which reads in this file rather for metadata than the MyVideos SQLite DB? There is also the default filename for fanart & posters but think I have a fix for that (although I suppose if it is possible to replace the text then the image name should be possible also?)

If anybody with any experience in this area thinks it would be possible I will give it my best shot; competent developer on other platforms but this is my first go on Linux/XBMC.

Perhaps the best bet would be to modify the metaBrowser tool to write to the SQLite DB - unsure if that would really be possible though.. maybe a script which reads all the XML and stores it in SQLite (including the alternate fanart/poster image file names)

Thanks for any advice/tips etc. Smile

XBMC reads MyMovies.xml during a scan.
I am just recently doing the same thing as you, and ran into similar need. I found that letting XBMC scan my directory with the mymovies.xml files, was not properly finding some titles, and some images.

I wrote a small vbs script that reads the mymovies.xml files, and then outputs a .NFO file that XBMC reads. inside the NFO file, I have put the info needed for the URL to the IMDB library with the movie ID that was already stored into the mymovies.xml file, and the Movie name and Set name tags so I can properly group movie sets.

See my script here... hope its helpful for you..

BTW... just wanted to add, that I am also using the Metabrowser software, and found it to be really good. I only wish I could get it to run under Linux/Ubuntu. I am currently dual booting my system... I use Windows 7 with the metabrowser, and my script shown above to manage the file library, but then I boot into Ubuntu to actual use XBMC.
Please note that the mymovies.xml parsing is unmaintained and kind of limited compared to the builtin .nfo parser. You should consider using the mymovies scraper or stick with the .nfo files XBMC handles. There are tools out there to generate those as well.
Thanks for the responses.

@sdellutri - I tried your script and that worked ok, thanks. To get around the dual boot problem my files are on a Samba share which Metabrowser (on a different PC) and XBMC (on ASRock Ion) can access.

@vdrfan - thanks; I guess I am used to a really good scraper so reluctant to change. I will look for manual tools which can generate the .nfo files, perhaps they aren't so bad!
Version 1.2 has been released...


- Disc data. Support for loading from Disc database rather than Movie database.
- Support for uniquely matching titles via barcode. NFO file must contain a barcode in the following format; barcode://027616704429.
- Loading movie data via barcode. Alternative to using IMDb ID.


- Support for URL encoding of username, password and country. No more needs for doing this manually. NB! Requires a new SVN build later than r26777 of XBMC.
- IMDb rating is now shown with decimals.

- - - - -

This is AFAIK the only scraper which can actually fetch Disc data rather than just Movie data which most other sites contain. This means you can finally find info on DVD/Blu-ray releases which are not listed in IMDb.

Scraper is downloadable here. Wiki also shows how to use Disc info.

Update has been submitted here:trac and if/when approved, it can be accessed via next nightly build of XBMC
bleze Wrote:Version 1.2 has been released...

Update has been submitted here:trac and if/when approved, it can be accessed via next nightly build of XBMC

Some very useful changes/additions. Thanks!
I have the same issue. I thought mymovies.xml (is there a cASe problem?) would be read by XBMC 9.11.

I use metabrowser on my windows laptop across samba, to get the metadata for the movies.

Is there an update on what is the best way to tell XBMC to recognise the mymovies.xml files?
this uses features not available in 9.11.
dnadna, reading of mymovies.xml files has _nothing_ to do with this scraper. mymovies.xml reading works the same way as NFO reading in XBMC. Infact mymovies.xml files are picked up before the NFO file if available
Thanks bleze! I think I've been getting it wrong. In fact all the metadata has been picked up quite nicely now Smile.
bleze Wrote:dnadna, reading of mymovies.xml files has _nothing_ to do with this scraper. mymovies.xml reading works the same way as NFO reading in XBMC. Infact mymovies.xml files are picked up before the NFO file if available

I think that was the case. If I'm not mistaken, it was changed recently so NFOs are being processed first.

Could someone from devs confirm?
Pages: 1 2