Jump to content


Photo

New Plugin: TV Maze Metadata Provider

plugin meta data metadata provider tvmaze tv series shows

  • Please log in to reply
22 replies to this topic

#1 softworkz OFFLINE  

softworkz

    Advanced Member

  • Developers
  • 1892 posts
  • Local time: 05:36 PM

Posted 25 August 2016 - 12:22 AM

Hi,

 

this is a new metadata provider plugin for Emby, supporting TV Series, Seasons and Episodes as well as Season-Images.

 

The data is retrieved from http://www.tvmaze.com/

 

The plugin should operate pretty stable, I've been running the code for a few months now without problems.

 

 

But what's the benefit, now?

 

Well, you got to make your own decision about how useful that additional data could be for you!

Metadata handling in Emby is not a very transparent process. To compare the different metadata retrieved by the installed providers, it's probably best to use the Metadata Viewer Plugin (http://emby.media/co...etadata-viewer/).

 

After installing, you need to check your metadata settings for Series, Seasons and Episodes. You should choose the priorities based on your experience from comparing metadata results as described in the previous paragraph.

 

 

If you're already satisfied with your current metadata retrieval or just don't want to make a significant change at this time, I recommend the following:

  • Disable TV Maze for Series and Episodes (Emby already comes with 3 built-in providers for those)
  • But enable TV Maze for Seasons (and Season images): The reason: Currently, there's only one provider for Season data and there are many cases where TV Maze has some season descriptions when the other (MovieDb) doesn't

 

Download: https://github.com/s...tag/TvMazeBeta1

 

 


  • Abobader, CBers, aspdend and 2 others like this

#2 mgworek OFFLINE  

mgworek

    Advanced Member

  • Members
  • 646 posts
  • Local time: 11:36 AM

Posted 25 August 2016 - 09:34 AM

I like that  http://www.tvmaze.com/ has all the hallmark mystery series that no one else has like Murder she Baked. I have been having to manually edit like 4 or 5 different series. I have worked hard on my metadata so I won't be jumping in first but I will keep my eye on it.

 

Thanks!



#3 shad0h OFFLINE  

shad0h

    Advanced Member

  • Members
  • 53 posts
  • Local time: 02:36 AM
  • LocationSydney

Posted 25 August 2016 - 10:41 AM

Hi @softworkz

 

Windows server only, or will it work on *nix platforms - e.g. Synology ?

 

Thanks

Shane



#4 softworkz OFFLINE  

softworkz

    Advanced Member

  • Developers
  • 1892 posts
  • Local time: 05:36 PM

Posted 26 August 2016 - 04:24 PM

It's supposed to work on Mono as well, could you please try and report?



#5 Griffo OFFLINE  

Griffo

    Advanced Member

  • Members
  • 56 posts
  • Local time: 04:36 PM

Posted 19 September 2016 - 09:32 PM

Hi,

 

I've been trying this plugin. It's just filling my logs with the following however

 

2016-09-20 11:04:21.7448 Error App: Error in TvMazeSeasonProvider.HasChanged
    *** Error Report ***
    Version: 3.1.81.0
    Command line: C:\Users\Administrator\AppData\Roaming\MediaBrowser-Server\system\MediaBrowser.ServerApplication.exe -service
    Operating system: Microsoft Windows NT 6.2.9200.0
    Processor count: 2
    64-Bit OS: True
    64-Bit Process: True
    Program data path: C:\Users\Administrator\AppData\Roaming\MediaBrowser-Server
    Application Path: C:\Users\Administrator\AppData\Roaming\MediaBrowser-Server\system\MediaBrowser.ServerApplication.exe
    Unable to cast object of type 'MediaBrowser.Controller.Entities.TV.Season' to type 'MediaBrowser.Controller.Entities.TV.Episode'.
    System.InvalidCastException
     at MediaBrowser.Providers.TV.TvMaze.TvMazeSeasonProvider.HasChanged(IHasMetadata item, IDirectoryService directoryService)
     at MediaBrowser.Providers.Manager.MetadataService`2.HasChanged(IHasMetadata item, IHasItemChangeMonitor changeMonitor, IDirectoryService directoryService)



#6 Happy2Play OFFLINE  

Happy2Play

    Trial and Error

  • Moderators
  • 16576 posts
  • Local time: 08:36 AM
  • LocationWashington State

Posted 19 September 2016 - 09:48 PM

@Griffo Are you aware you are on a rather old beta version (3.1.81.0)?  Current version is 3.1.159.0.



#7 ebr OFFLINE  

ebr

    Chief Bottle Washer

  • Administrators
  • 48153 posts
  • Local time: 11:36 AM

Posted 20 September 2016 - 11:19 AM

To get up to date, re-install from the web site.



#8 Griffo OFFLINE  

Griffo

    Advanced Member

  • Members
  • 56 posts
  • Local time: 04:36 PM

Posted 20 September 2016 - 08:16 PM

@Griffo Are you aware you are on a rather old beta version (3.1.81.0)?  Current version is 3.1.159.0.

 

Thanks I installed from the "plugins" section in the console so assumed it would be the latest. I've updated and all seems to work.

 

Cheers!



#9 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 142356 posts
  • Local time: 11:36 AM

Posted 20 September 2016 - 10:47 PM

Thanks I installed from the "plugins" section in the console so assumed it would be the latest. I've updated and all seems to work.

 

Cheers!

 

He meant the version of the server. Are you still on 3.1.81?



#10 PenkethBoy OFFLINE  

PenkethBoy

    Advanced Member

  • Members
  • 3434 posts
  • Local time: 04:36 PM
  • LocationWarrington,UK

Posted 24 September 2016 - 06:28 PM

Hi

 

As of tonights server update getting a few errors re the tvmaze plugin in the server logs

2016-09-24 21:19:31.2651 Error App: Error in TvMazeSeasonProvider.HasChanged
*** Error Report ***
Version: 3.1.6111.23367
Command line: C:\Users\TimSkull\AppData\Roaming\Emby-Server\System\MediaBrowser.ServerApplication.exe
Operating system: Microsoft Windows NT 6.2.9200.0
Processor count: 8
64-Bit OS: True
64-Bit Process: True
Program data path: C:\Users\TimSkull\AppData\Roaming\Emby-Server
Application Path: C:\Users\TimSkull\AppData\Roaming\Emby-Server\System\MediaBrowser.ServerApplication.exe
Unable to cast object of type 'MediaBrowser.Controller.Entities.TV.Season' to type 'MediaBrowser.Controller.Entities.TV.Episode'.
System.InvalidCastException
  at MediaBrowser.Providers.TV.TvMaze.TvMazeSeasonProvider.HasChanged(IHasMetadata item, IDirectoryService directoryService)
  at MediaBrowser.Providers.Manager.MetadataService`2.HasChanged(IHasMetadata item, IHasItemChangeMonitor changeMonitor, IDirectoryService directoryService)
 
2016-09-24 21:19:32.6178 Error App: Error in TvMazeEpisodeProvider.HasChanged
*** Error Report ***
Version: 3.1.6111.23367
Command line: C:\Users\TimSkull\AppData\Roaming\Emby-Server\System\MediaBrowser.ServerApplication.exe
Operating system: Microsoft Windows NT 6.2.9200.0
Processor count: 8
64-Bit OS: True
64-Bit Process: True
Program data path: C:\Users\TimSkull\AppData\Roaming\Emby-Server
Application Path: C:\Users\TimSkull\AppData\Roaming\Emby-Server\System\MediaBrowser.ServerApplication.exe
Value cannot be null.
Parameter name: path1
System.ArgumentNullException
  at System.IO.Path.Combine(String path1, String path2)
  at MediaBrowser.Providers.TV.TvMaze.TvMazeEpisodeProvider.HasChanged(IHasMetadata item, IDirectoryService directoryService)
  at MediaBrowser.Providers.Manager.MetadataService`2.HasChanged(IHasMetadata item, IHasItemChangeMonitor changeMonitor, IDirectoryService directoryService)

couple of different errors - although they may be related



#11 softworkz OFFLINE  

softworkz

    Advanced Member

  • Developers
  • 1892 posts
  • Local time: 05:36 PM

Posted 25 September 2016 - 01:02 PM

The first error should be fixed. I sent you an updated version via PM, could you please try it?

For the second issue: Did you configure some specific cache path in Emby settings?



#12 PenkethBoy OFFLINE  

PenkethBoy

    Advanced Member

  • Members
  • 3434 posts
  • Local time: 04:36 PM
  • LocationWarrington,UK

Posted 25 September 2016 - 02:05 PM

My cache is standard i believe  C:\Users\<username>\AppData\Roaming\Emby-Server\cache

 

i do have a non standard metadata path on my D: drive

 

Have down loaded and rebooted



#13 softworkz OFFLINE  

softworkz

    Advanced Member

  • Developers
  • 1892 posts
  • Local time: 05:36 PM

Posted 26 September 2016 - 03:12 AM

PS: Issues identified, fixed version will be published soon...



#14 PenkethBoy OFFLINE  

PenkethBoy

    Advanced Member

  • Members
  • 3434 posts
  • Local time: 04:36 PM
  • LocationWarrington,UK

Posted 26 September 2016 - 06:58 AM

Just testing the new update and no errors - emby is working through a full "TV" library refresh - with no errors

 

All good so far

 

Thanks again



#15 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 142356 posts
  • Local time: 11:36 AM

Posted 26 September 2016 - 01:54 PM

Well done.



#16 PenkethBoy OFFLINE  

PenkethBoy

    Advanced Member

  • Members
  • 3434 posts
  • Local time: 04:36 PM
  • LocationWarrington,UK

Posted 27 September 2016 - 12:17 PM

Hi 

 

Have a minor error in NFO files

 

I have three tvmaze entries - one at the top and two together at the bottom

 

 

 

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<tvshow>
  <plot>Babylon 5 is a five-mile long space station located in neutral space. Built by the Earth Alliance in the 2250s, it's goal is to maintain peace among the various alien races by providing a sanctuary where grievances and negotiations can be worked out among duly appointed ambassadors. A council made up of representatives from the five major space-faring civilizations - the Earth Alliance, Minbari Federation, Centauri Republic, Narn Regime, and Vorlon Empire - work with the League of Non-Aligned Worlds to keep interstellar relations under control. Aside from its diplomatic function, Babylon 5 also serves as a military post for Earth and a port of call for travelers, traders, businessmen, criminals, and Rangers.</plot>
  <outline>Babylon 5 is a five-mile long space station located in neutral space. Built by the Earth Alliance in the 2250s, it's goal is to maintain peace among the various alien races by providing a sanctuary where grievances and negotiations can be worked out among duly appointed ambassadors. A council made up of representatives from the five major space-faring civilizations - the Earth Alliance, Minbari Federation, Centauri Republic, Narn Regime, and Vorlon Empire - work with the League of Non-Aligned Worlds to keep interstellar relations under control. Aside from its diplomatic function, Babylon 5 also serves as a military post for Earth and a port of call for travelers, traders, businessmen, criminals, and Rangers.</outline>
  <lockdata>false</lockdata>
  <dateadded>2016-07-22 11:35:49</dateadded>
  <title>Babylon 5</title>
  <trailer> <--removed
  <rating>9.2</rating>
  <year>1993</year>
  <mpaa>TV-PG</mpaa>
  <imdb_id>tt0105946</imdb_id>
  <tmdbid>3137</tmdbid>
  <premiered>1993-02-22</premiered>
  <releasedate>1993-02-22</releasedate>
  <enddate>1998-11-25</enddate>
  <votes>170</votes>
  <runtime>60</runtime>
  <genre>Science-Fiction</genre>
  <studio>US Studios</studio>
  <zap2itid>SH094234</zap2itid>
  <tvrageid>2693</tvrageid>
  <tvdbid>70726</tvdbid>
  <tvmazeid>475</tvmazeid>
 
and at the end
 

    <thumb>D:\Emby Metadata\metadata\People\J\Joshua Cox\poster.jpg</thumb>
  </actor>
  <id>70726</id>
  <episodeguide>
    <url cache="70726.xml">http://www.thetvdb.c...ll/en.zip</url>
  </episodeguide>
  <season>-1</season>
  <episode>-1</episode>
  <status>Ended</status>
  <airs_time>7:00 PM</airs_time>
  <airs_dayofweek>Monday</airs_dayofweek>
  <tvmazeid>475</tvmazeid>
  <tvmazeid>475</tvmazeid>
</tvshow>

 

 

 

 

Not sure if this is the result of the testing we did a couple of days ago - so specific to me or not?

 

Ok have deleted the nfo file and recreated it and only have two entries now one at top the other at the bottom - is the second one necessary?

 

Thanks Again



#17 BAS OFFLINE  

BAS

    Advanced Member

  • Alpha Testers
  • 544 posts
  • Local time: 12:36 PM
  • LocationOhio

Posted 12 March 2017 - 04:18 PM

Season Titles being replaced by this plugin. On this page that title appears to come from Season Info

http://www.tvmaze.co...vivor-season-31

 

@softworkz @Luke either no one has noticed or most people dont care but this plugin is messing with my season titles and I don't ever want my season titles touched. For example instead of Season 31 this reads survivor: cambodia - second chance in Emby along with other Seasons that have been messed with title wise in metadata.

 

So just looking for a behavior change here to ignore Season Info / replacing of titles on Seasons. Love the extra info this plugin provides everywhere else and nice to have a backup metadata provider for TV content.

 

Thanks



#18 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 142356 posts
  • Local time: 11:36 AM

Posted 12 March 2017 - 04:22 PM

A couple approaches are the plugin could add a setting about whether or not to pull season titles from tv maze. Or in lieu of the setting, the plugin could just not pull them at all.

 

Softworkz is still maintaining this but he's also helping us in other areas. Is there a community member who might like to help with this? The source code can be found here:

 

https://github.com/M....TvMazeProvider

 

Thanks !



#19 Happy2Play OFFLINE  

Happy2Play

    Trial and Error

  • Moderators
  • 16576 posts
  • Local time: 08:36 AM
  • LocationWashington State

Posted 12 March 2017 - 04:23 PM

Season Titles being replaced by this plugin. On this page that title appears to come from Season Info

http://www.tvmaze.co...vivor-season-31

 

@softworkz @Luke either no one has noticed or most people dont care but this plugin is messing with my season titles and I don't ever want my season titles touched. For example instead of Season 31 this reads survivor: cambodia - second chance in Emby along with other Seasons that have been messed with title wise in metadata.

 

So just looking for a behavior change here to ignore Season Info / replacing of titles on Seasons. Love the extra info this plugin provides everywhere else and nice to have a backup metadata provider for TV content.

 

Thanks

 

You sure it is not coming from TMDB?



#20 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 142356 posts
  • Local time: 11:36 AM

Posted 12 March 2017 - 04:27 PM

In order to make it easier for someone else to jump in, I've gone ahead and move the source code to it's own dedicated repository:

 

https://github.com/M...ser/emby-tvmaze

 

Thanks !







Also tagged with one or more of these keywords: plugin, meta, data, metadata, provider, tvmaze, tv, series, shows

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users