Kodi Community Forum
What is the details structure for tvshows? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Scrapers (https://forum.kodi.tv/forumdisplay.php?fid=60)
+--- Thread: What is the details structure for tvshows? (/showthread.php?tid=223758)



What is the details structure for tvshows? - pewpew1 - 2015-04-08

Hey
Can someone provide me with the tvshows details, which needs to be return in GetDetails function?
I have looked and looked, but cannot find it. In "HOW-TO write Media Info Scrapers - Scraper creation for dummies" there is an example for movies
Code:
<details>
    <title></title>
    <year></year>
    <director></director>
    <top250></top250>
    <mpaa></mpaa>
    <tagline></tagline>
    <runtime></runtime>
    <thumb></thumb>
    <credits></credits>
    <rating></rating>
    <votes></votes>
    <genre></genre>
    <actor>
        <name></name>
        <role></role>
    </actor>
    <outline></outline>
    <plot></plot>
</details>
but I need the one for tvshows.


RE: What is the details structure for tvshows? - mkortstiege - 2015-04-08

Unfortunately they are not well documented. You can grab all possible info tags from source though. See https://github.com/xbmc/xbmc/blob/master/xbmc/video/VideoInfoTag.cpp#L569-L787
Our default tvshow scraper is a good place to check as well. See https://github.com/xbmc/repo-scrapers/blob/gotham/metadata.tvdb.com/tvdb.xml


RE: What is the details structure for tvshows? - pewpew1 - 2015-04-08

I tried to run tvdb (and other) tvshows scrapers in ScraperEdit to get the xml values - but could not get it to work (possible because of kodi variables (eg. $INFO[language]) in the scrapers).
But thanks for the link to the source - it will help me a lot Smile

Thanks for the quick reply and have a good day Smile


RE: What is the details structure for tvshows? - RockerC - 2015-04-08

Doesn't the "NFO" import and export information in the Wiki cover this if it uses the same XML data?

http://kodi.wiki/view/NFO_files

http://kodi.wiki/view/NFO_files/tvshows

http://kodi.wiki/view/NFO_files/tvepisodes

http://kodi.wiki/view/Import-export_library


RE: What is the details structure for tvshows? - mkortstiege - 2015-04-08

In theory yes but i am not sure how up-to-date the wiki is. You better trust the code Wink