fanart.tv api v3

Discussion in 'General' started by Kode, July 23, 2014.

  1. Kode

    Kode Portal Member

    Joined:
    April 26, 2011
    Messages:
    13
    Likes Received:
    2
    Ratings:
    +10 / 0
    Home Country:
    United Kingdom United Kingdom
    Not sure where to post this, so feel free to move this to the right place.

    Can any devs that use the fanart.tv API please consider moving to the new version, docs can be found here: http://docs.fanarttv.apiary.io/ it's a lot less resource intensive for us, where the old API can handle about 50 requests a second the new API can handle about 1000 requests a second for the same data but with a LOT less cpu overhead.


     
    • Thank You! Thank You! x 3
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. HomeY
    • Team MediaPortal

    HomeY Test Group

    Joined:
    February 23, 2008
    Messages:
    6,460
    Likes Received:
    2,627
    Gender:
    Male
    Occupation:
    Network Engineer
    Location:
    ::1
    Ratings:
    +4,737 / 16
    Home Country:
    Netherlands Netherlands
    Show System Specs
  4. breese
    • Team MediaPortal

    breese Retired Team Member

    Joined:
    July 11, 2011
    Messages:
    3,903
    Likes Received:
    325
    Gender:
    Male
    Occupation:
    Sr. Systems Engineer
    Location:
    Arlington Heights, Illinois
    Ratings:
    +768 / 0
    Home Country:
    United States of America United States of America
    Show System Specs
    Guys, I would love to test this.... (y)
    From what I see, movies can be handled by tmbd or imdb. Might help with all my naming labels
    As for 50 requests to a possible 1000 requests per second, I would love to see what this does do my DSL when working on all my music :p
     
  5. morpheus_xx
    • Team MediaPortal

    morpheus_xx Lead Dev MP2

    Joined:
    March 24, 2007
    Messages:
    10,953
    Likes Received:
    4,719
    Ratings:
    +6,759 / 11
    Home Country:
    Germany Germany
    Show System Specs
    I think I've registered at fanart.tv years before, but never started work on the API. Maybe someone likes to contribute a C# library ;)
     
  6. Kode

    Kode Portal Member

    Joined:
    April 26, 2011
    Messages:
    13
    Likes Received:
    2
    Ratings:
    +10 / 0
    Home Country:
    United Kingdom United Kingdom
    Well I know moving-pictures uses the API (one of the biggest still on the old API), the new API has a slightly different output which should make it a lot easier to integrate.

    If anyone has any questions please let me know.

    The output is gzip compressed so for example the output for Thor once compressed is 1.8KB * 1000 (requests a second) * 8 (bytes to bits) = around 14.4mbit/s

    That is just on a single low powered VPS though, I have been unit testing it to get performance up and allow us to scale up as demand requires.

    There is still extra work to do, I need to investigate HAproxy, but the deployment of the new API has been a great success so far.

    A couple of months ago couchpotato started using our API (the old version) and tripled the traffic to the API, the old API couldn't handle it and load was constantly around 40 (approx 500%-1000% load) and that was with 2 seperate dedicated servers handling the load, I got them to move to the new API, now all the traffic is running off the VPS I set up for unit testing and it isn't breaking a sweat.
     
  7. MJGraf
    • Team MediaPortal

    MJGraf Retired Team Member

    Joined:
    January 13, 2006
    Messages:
    2,475
    Likes Received:
    796
    Ratings:
    +1,372 / 1
    Thanks Kode for the hint and Morph for clarification.
    I already thought I am blind because I didn't find any link to FanArt.TV in the MP2 codebase :D
    The new APIv3 looks very clean - but I guess we first need to finish our rework with respect to MetadataExtractor priorities before it makes sense to add another online MDE. And there is also more need for a local nfo-MDE currently.
    I've taken it on my todo list...
     
    • Like Like x 1
  8. BigGranu
    • Team MediaPortal

    BigGranu Development Group

    Joined:
    February 7, 2013
    Messages:
    238
    Likes Received:
    113
    Gender:
    Male
    Ratings:
    +178 / 0
    Home Country:
    Germany Germany
    • Like Like x 1
  9. MJGraf
    • Team MediaPortal

    MJGraf Retired Team Member

    Joined:
    January 13, 2006
    Messages:
    2,475
    Likes Received:
    796
    Ratings:
    +1,372 / 1
    Thanks, but doesn't this use the old api?
     
  10. Kode

    Kode Portal Member

    Joined:
    April 26, 2011
    Messages:
    13
    Likes Received:
    2
    Ratings:
    +10 / 0
    Home Country:
    United Kingdom United Kingdom
    Looks like it
     
  11. ltfearme
    • Premium Supporter

    ltfearme Community Plugin Dev

    Joined:
    June 10, 2007
    Messages:
    6,455
    Likes Received:
    4,239
    Gender:
    Male
    Occupation:
    Software Test Engineer
    Location:
    Sydney
    Ratings:
    +5,379 / 0
    Home Country:
    Australia Australia
    Thanks for the update Kode, I added fanart.tv support for MovingPictures so will take care of the upgrade ;)
     
    • Thank You! Thank You! x 3
    • Like Like x 2
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!