NFO for TV-Show don´t work
#1
I found in the online manual a description to use nfo-files also for tvshows
http://wiki.xbmc.org/?title=Import_-_Exp..._nfo_Files

But the nfo-file for the tvshow don´t work, if I try to add the tvshow to the database everytime the lookup to the tvdb is started and the dialog to choose the tvshow comes up, so as no nfo-file is available.

The nfo-files for the tvepisode works correct.

My structure is following:
Folder: Formel 1
In the folder Formel 1 following files available:
Formel 1.nfo
Formel 1 2008x12 - Grosser Preis von Europa (Valencia).mpg
Formel 1 2008x12 - Grosser Preis von Europa (Valencia).nfo
Formel 1 2008x13 - Grosser Preis von Belgien.mpg
Formel 1 2008x13 - Grosser Preis von Belgien.nfo

I don´t found in the debug log a part that XBMC try to load the info from the nfo for the tvshow
Quote:19:51:27 M: 42156032 DEBUG: Alloc resources: 16.12ms (16.11 ms skin load, 0.00 ms preload)
19:51:29 M: 41893888 DEBUG: CMultiPathDirectory::MergeItems, items = 16
19:51:29 M: 41893888 DEBUG: Testing path: [000] smb://INTEL5200/Serien/24/
19:51:29 M: 41893888 DEBUG: Testing path: [001] smb://TS-HTGLC25/Serien/E Ring/
19:51:29 M: 41893888 DEBUG: Testing path: [002] smb://TS-HTGLC25/Serien/Ein Herz und eine Seele/
19:51:29 M: 41893888 DEBUG: Testing path: [003] smb://INTEL5200/Serien/Eli Stone/
19:51:29 M: 41893888 DEBUG: Testing path: [004] smb://TS-HTGLC25/Serien/Es war einmal... Amerika/
19:51:29 M: 41893888 DEBUG: Testing path: [005] smb://INTEL5200/Serien/Es war einmal... Das Leben/
19:51:29 M: 41893888 DEBUG: Testing path: [006] smb://TS-HTGLC25/Serien/Es war einmal... Der Mensch/
19:51:29 M: 41893888 DEBUG: Testing path: [007] smb://TS-HTGLC25/Serien/Es war einmal... Entdecker und Erfinder/
19:51:29 M: 41893888 DEBUG: Testing path: [008] smb://INTEL5200/Serien/Formel 1/
19:51:29 M: 41893888 DEBUG: Testing path: [009] smb://INTEL5200/Serien/JAG - Im Auftrag der Ehre/
19:51:29 M: 41893888 DEBUG: Testing path: [010] smb://INTEL5200/Serien/Navy CIS/
19:51:29 M: 41893888 DEBUG: Testing path: [011] smb://TS-HTGLC25/Serien/Once Upon A Time... Space/
19:51:29 M: 41893888 DEBUG: Testing path: [012] smb://TS-HTGLC25/Serien/Once Upon A Time... The Discoverers/
19:51:29 M: 41893888 DEBUG: Testing path: [013] smb://TS-HTGLC25/Serien/Once Upon A Time... The Explorers/
19:51:29 M: 41893888 DEBUG: Testing path: [014] smb://TS-HTGLC25/Serien/Tatort Ballauf&Schenk/
19:51:29 M: 41893888 DEBUG: CMultiPathDirectory::MergeItems, items = 16, took 6 ms
19:51:29 M: 41893888 DEBUG: Saving fileitems [multipath://smb%3a%2f%2fINTEL5200%2fSerien%2f/smb%3a%2f%2fTS%2dHTGLC25%2fSerien%2f/]
19:51:29 M: 41893888 DEBUG: -- items: 16, sort method: 1, ascending: true
19:51:33 M: 39944192 DEBUG: CApplication::OnKey: 61480 pressed, action is 4
19:51:33 M: 39944192 DEBUG: CApplication::OnKey: 61480 pressed, action is 4
19:51:34 M: 39702528 DEBUG: CApplication::OnKey: 61480 pressed, action is 4
19:51:36 M: 40419328 DEBUG: CApplication::OnKey: 61513 pressed, action is 11
19:51:36 M: 40419328 INFO: Loading skin file: DialogProgress.xml
19:51:36 M: 40419328 DEBUG: Load DialogProgress.xml: 42.59ms
19:51:36 M: 40386560 DEBUG: Alloc resources: 17.32ms (0.00 ms skin load, 0.26 ms preload)
19:51:36 M: 39473152 INFO: Get URL: http://www.thetvdb.com/api/GetSeries.php...anguage=de
19:51:37 M: 39997440 INFO: Loading skin file: DialogSelect.xml
19:51:37 M: 39997440 DEBUG: Load DialogSelect.xml: 9.86ms
19:51:37 M: 39985152 DEBUG: Alloc resources: 1.04ms (0.00 ms skin load, 0.29 ms preload)
19:51:48 M: 39772160 DEBUG: CApplication::OnKey: 61453 pressed, action is 7
19:51:48 M: 40407040 INFO: Loading skin file: DialogProgress.xml
19:51:48 M: 40407040 DEBUG: Load DialogProgress.xml: 4.40ms
19:51:48 M: 40374272 DEBUG: Alloc resources: 1.70ms (0.00 ms skin load, 0.26 ms preload)
19:51:49 M: 39714816 INFO: Get URL: http://www.thetvdb.com/api/1D62F2F90030C...all/de.zip
19:51:49 M: 39661568 DEBUG: Adding new item to tvshowsConfusedmb://INTEL5200/Serien/Formel 1/
19:51:50 M: 39522304 ERROR: Failed to download fanart to q:\userdata\Thumbnails\Video\Fanart\99c1c469.tbn
19:51:50 M: 39092224 DEBUG: DIRECTORY::CSMBDirectory::OpenDir - Using authentication url smb://xbox:xbox@INTEL5200/Serien/Formel%201
19:51:50 M: 39108608 DEBUG: Checking if file 'formel 1 2008x12 - grosser preis von europa (valencia).mpg' is a Sample file
19:51:50 M: 39108608 DEBUG: running expression \[[Ss]([0-9]+)\]_\[[Ee]([0-9]+)\]?([^\\/]*)$ on label smb://intel5200/serien/formel 1/formel 1 2008x12 - grosser preis von europa (valencia).mpg
19:51:50 M: 39108608 DEBUG: running expression [\\/\._ \[-]([0-9]+)x([0-9]+)([^\\/]*)$ on label smb://intel5200/serien/formel 1/formel 1 2008x12 - grosser preis von europa (valencia).mpg
19:51:50 M: 39108608 DEBUG: found match smb://intel5200/serien/formel 1/formel 1 2008x12 - grosser preis von europa (valencia).mpg 2008 12
19:51:50 M: 39108608 DEBUG: running expression [Ss]([0-9]+)[\.-]?[Ee]([0-9]+)([^\\/]*)$ on label smb://intel5200/serien/formel 1/formel 1 2008x12 - grosser preis von europa (valencia).mpg
19:51:50 M: 39108608 DEBUG: running expression [\._ -]([0-9]+)([0-9][0-9])([\._ -][^\\/]*)$ on label smb://intel5200/serien/formel 1/formel 1 2008x12 - grosser preis von europa (valencia).mpg
19:51:50 M: 39108608 DEBUG: Checking if file 'formel 1 2008x13 - grosser preis von belgien.mpg' is a Sample file
19:51:50 M: 39108608 DEBUG: running expression \[[Ss]([0-9]+)\]_\[[Ee]([0-9]+)\]?([^\\/]*)$ on label smb://intel5200/serien/formel 1/formel 1 2008x13 - grosser preis von belgien.mpg
19:51:50 M: 39108608 DEBUG: running expression [\\/\._ \[-]([0-9]+)x([0-9]+)([^\\/]*)$ on label smb://intel5200/serien/formel 1/formel 1 2008x13 - grosser preis von belgien.mpg
19:51:50 M: 39108608 DEBUG: found match smb://intel5200/serien/formel 1/formel 1 2008x13 - grosser preis von belgien.mpg 2008 13
19:51:50 M: 39108608 DEBUG: running expression [Ss]([0-9]+)[\.-]?[Ee]([0-9]+)([^\\/]*)$ on label smb://intel5200/serien/formel 1/formel 1 2008x13 - grosser preis von belgien.mpg
19:51:50 M: 39108608 DEBUG: running expression [\._ -]([0-9]+)([0-9][0-9])([\._ -][^\\/]*)$ on label smb://intel5200/serien/formel 1/formel 1 2008x13 - grosser preis von belgien.mpg
19:51:50 M: 39047168 DEBUG: CVideoDatabase::GetEpisodeId (smb://INTEL5200/Serien/Formel 1/Formel 1 2008x12 - Grosser Preis von Europa (Valencia).mpg), query = select idEpisode from episode where idFile=6523
19:51:50 M: 39026688 DEBUG: Found matching nfo file: smb://INTEL5200/Serien/Formel 1/Formel 1 2008x12 - Grosser Preis von Europa (Valencia).nfo
19:51:50 M: 39030784 DEBUG: CFileSMB::Open - opened Serien/Formel 1/Formel 1 2008x12 - Grosser Preis von Europa (Valencia).nfo, fd=10000
19:51:50 M: 39030784 DEBUG: CFileSMB::Close closing fd 10000
19:51:50 M: 39030784 DEBUG: VIDEO::CVideoInfoScanner::OnProcessSeriesFolder Got details from nfo
19:51:50 M: 39030784 DEBUG: Adding new item to tvshowsConfusedmb://INTEL5200/Serien/Formel 1/Formel 1 2008x12 - Grosser Preis von Europa (Valencia).mpg
19:51:50 M: 38948864 ERROR: Failed to download fanart to q:\userdata\Thumbnails\Video\Fanart\45dc532b.tbn
19:51:50 M: 38948864 INFO: Get URL: http://thetvdb.com/banners/graphical/81084-g.jpg
19:51:52 M: 38846464 INFO: Creating album thumb from memory: q:\userdata\Thumbnails\Video\4\45dc532b.tbn
19:51:52 M: 38236160 DEBUG: Unable to resolve msvcr71.dll div
19:51:52 M: 38236160 DEBUG: Unable to resolve msvcr71.dll ??1type_info@@UAE@XZ
19:51:52 M: 38236160 DEBUG: Unable to resolve msvcr71.dll ?terminate@@YAXXZ
19:51:52 M: 38236160 DEBUG: kernel32.dll fake function DisableThreadLibraryCalls called
19:51:52 M: 38326272 DEBUG: CVideoDatabase::GetEpisodeId (smb://INTEL5200/Serien/Formel 1/Formel 1 2008x13 - Grosser Preis von Belgien.mpg), query = select idEpisode from episode where idFile=6524
19:51:52 M: 38326272 DEBUG: Found matching nfo file: smb://INTEL5200/Serien/Formel 1/Formel 1 2008x13 - Grosser Preis von Belgien.nfo
19:51:52 M: 38326272 DEBUG: CFileSMB::Open - opened Serien/Formel 1/Formel 1 2008x13 - Grosser Preis von Belgien.nfo, fd=10000
19:51:52 M: 38326272 DEBUG: CFileSMB::Close closing fd 10000
19:51:52 M: 38326272 DEBUG: VIDEO::CVideoInfoScanner::OnProcessSeriesFolder Got details from nfo
19:51:52 M: 38326272 DEBUG: Adding new item to tvshowsConfusedmb://INTEL5200/Serien/Formel 1/Formel 1 2008x13 - Grosser Preis von Belgien.mpg
19:51:52 M: 38326272 DEBUG: CVideoDatabase::GetStackedTvShowList query: select idShow from tvshow where c00 like (select c00 from tvshow where idShow=226) order by idShow
19:51:52 M: 38326272 DEBUG: CVideoDatabase::GetSeasonsNav query: select episode.c12,path.strPath,tvshow.c00,count(1),count(episode.c08) from episode join tvshow on tvshow.idshow=tvshowlinkepisode.idshow join tvshowlinkepisode on tvshowlinkepisode.idEpisode = episode.idEpisode join tvshowlinkpath on tvshowlinkpath.idShow = tvshow.idShow join path on path.idPath = tvshowlinkpath.idPath where tvshow.idShow = 226 group by episode.c12
19:51:52 M: 38326272 DEBUG: CVideoDatabase::GetMoviesByWhere query: select * from movieview join movielinktvshow on movielinktvshow.idMovie=movieview.idMovie where movielinktvshow.idShow = 226
19:51:52 M: 38264832 DEBUG: DIRECTORY::CSMBDirectory::OpenDir - Using authentication url smb://xbox:xbox@INTEL5200/Serien/Formel%201
19:51:53 M: 39358464 INFO: Loading skin file: DialogVideoInfo.xml
19:51:53 M: 39223296 DEBUG: Load DialogVideoInfo.xml: 118.08ms
19:51:53 M: 39161856 DEBUG: Alloc resources: 141.27ms (118.70 ms skin load, 0.79 ms preload)
#2
Instead of Formel 1.nfo it needs to be EXACTLY tvshow.nfo with the contents being http://www.thetvdb.com/?tab=series&id=81084&lid=14 if you use tvdb as your scraper.
#3
Here you go.
#4
Formula 1?

I guess the problem could be the season numbering, does xbmc support a season number with four digits? Would a regular expression help?

Also there is the possibility that although the seasons are 2008 on tvdb, perhaps it's stored internally as 01, 02...etc, have you tried renaming to S01E01....etc (i just tried this and your original way, and connot get it to pick up either)

On a related not, did you see todays race? Great stuff, edge of your seat for the last five laps Big Grin

Shorty
#5
Yeah, just noticed you are using nfo files.... this should work if you rename to S01E01....etc, not so pretty.... but you could make a season poster for each one (with the year on..)

Shorty
#6
Sorry for the multiple posts.

The nfo files i was referring to are the ones containing full info, not just the link.

I just tried the method with the link but cannot get it to pick up anything, i suspect because of the unusual season numbering, still does not work with S01E01 either.

Only possible other solution i can think of is a regular expression in advancedsettings.xml, but i suspect this is limited to two digit seasons though, anyone?

Shorty
#7
Generally it works with the season numbering 2008 if I add the information from the tvdb website.

My intention is not to use the information from the tvdb website, I will use different information to add to the database so I will use nfo file for tvshow and nfo files for tvepisode with my information.

From the online help
Quote:Nfo files can be used to provide data for a video file in XBMC or influence the search behavior of scrapers. In particular they are helpful if the information fetched from a web site does not match the video file, or data for that particular file does not exist.

By default at the time of scanning, if the media folder contains a correctly named *.nfo file, then XBMC will load the *.nfo file and attempt to either, in the case of it containing XML data get the metadata directly from the nfo file or will parse it for a direct URL to the scraper info page. This allows XBMC to skip it's normal lookup and/or search procedures, useful if a file's information is not available on any of the scraper sites, or if the filematching criteria fails for the particular file.

I try it with the structure from the tvdb website and with the structure from the online help, but both don´t work

I think the main problem is that xbmc not try to read the nfo-file for the tvshow.
For my point of view it is a bug or some information in the online help not correct or not complete.
#8
Please create a trac ticket and append the given non-working nfo and a full debug log.
#9
Have you tried the first suggestion you got in this thread?
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
#10
After I change the tvshow nfo name from "Formel 1.nfo" to "tvshow.nfo" it works.

Thanks for all your help.

Zippolighter
#11
After 4 hours of tests, I find out that something is wrong with the behavior to use nfo files episodes.

1. The episodes must have a filename for the movie and the nfo that includes a part of the tvshow season episode "Formel 1 2008x17 - Grosser Preis von Belgien.mpg" and "Formel 1 2008x17 - Grosser Preis von Belgien.nfo"

If the name is used described in the online help:
Quote:TV Episode Example:
The *.nfo must be named exactly as the episode filename (i.e. episodename.avi and episodename.nfo) and in the same folder, allowing multiple episode and *.nfo files within the same folder.

"Grosser Preis von Belgien.mpg" and "Grosser Preis von Belgien.nfo" the episode isn´t found and don´t add to the database.

2. If the episode is add to the database (filename have the correct syntax), the "Genre" isn´t set.

3. If the episode is add to the database (filename have the correct syntax), the "First Aired" have the value "1601", this value isn´t available in my nfo-file.

Biggest problem
4. After I update a episode from the file view or database view, all information are lost for this episode. A add or update of one episode is only possible by the update of the complete tvshow from the file view.

For my point of view have the feature at the moment so many restriction and missing information that usually available by the upload via a scraper from the internet, that it make sense. I try this feature because I would more information as available in the internet.

If anyone have an idea, how can I solve the problem with the episodes, I will try it soon as possible.

Thanks
#12
What exactly are you trying to do?
nfo containing xml or nfo containing URL?

I am assuming xml, but in case it's URL this is from the wiki:
TV Episode Example:
Episodename.nfo where Episodename is the name of the episode file.
Not currently supported!
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
#13
I have add the information in the nfo as xml, because I need some information that not available in the internet.

Example nfo tvshow.nfo
Quote: <tvshow>
<title>Formel 1</title>
<rating>0.000000</rating>
<year>2008</year>
<top250>0</top250>
<episode>18</episode>
<votes></votes>
<outline></outline>
<plot>Formel 1: Training, Rennen und Qualifying</plot>
<tagline></tagline>
<runtime></runtime>
<genre>Sport</genre>
<credits></credits>
<director></director>
<premiered></premiered>
<status></status>
<code></code>
<aired>2008</aired>
<studio></studio>
<album></album>
<trailer></trailer>
<actor></actor>
</tvshow>

example of episode nfo "Formel 1 2008x10 - Grosser Preis von Bahrain Rennen.nfo"
Quote: <episodedetails>
<title>Großer Preis von Bahrain (Manama) - Rennen</title>
<rating>0.000000</rating>
<season>2008</season>
<episode>10</episode>
<plot>Großer Preis von Bahrain (Manama) - Rennen am 06.04.2008
</plot>
<actor>
<name>L. Hamilton</name>
<role>Startplatz 1</role>
</actor>
</episodedetails>
#14
There is definitely something wrong here:
I have recycled your ticket:
http://trac.xbmc.org/ticket/4822
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
#15
My apologies, i did test this with some dummy files, but must have made a mistake somewhere.

I think i may have found something though, try these....

tvshow.nfo
Code:
<?xml version="1.0" encoding="UTF-8"?>
<tvshow>
    <title>Formel 1</title>
    <rating>0.000000</rating>
    <season>-1</season>
    <episode>0</episode>
    <displayseason>-1</displayseason>
    <displayepisode>-1</displayepisode>
    <plot>Formel 1: Training, Rennen und Qualifying</plot>
    <year>2008</year>
    <premiered>2008-09-07</premiered>
    <genre>Sport</genre>
    <studio></studio>
</tvshow>

(episode).nfo
Code:
<?xml version="1.0" encoding="UTF-8"?>
<episodedetails>
    <title>Großer Preis von Bahrain (Manama) - Rennen</title>
    <rating>0.000000</rating>
    <season>2008</season>
    <episode>10</episode>
    <plot>Großer Preis von Bahrain (Manama) - Rennen am 06.04.2008</plot>
    <aired>2008-04-06</aired>
    <actor>
        <name>L. Hamilton</name>
        <role>Startplatz 1</role>
    </actor>
</episodedetails>

It looks to me there are some incorrect/invalid/missing/extra tags in your nfo's, from what i've seen, if xbmc encounters an unexpected tag, the remaining tags will be skipped for that episode/show.

Specificalliy, i notice...

You have episode 18 in tvshow.nfo
You dont have all the season -1 stuff like above.
For the year to display (at least in the media stream skin) it's <premiered> and <aired> for show and episode respectivly and should be in the format yyyy-mm-dd

This seems to have been taken from the wiki which looks to be out of date/incorrect, i'll try to find out what the full range of valid tags are and update, any idea where to start, exported database or source code?

Shorty

P.S - TVDB seems to have been down the last ~12hrs, so you may have issues while it looks for fan art...etc, try disconnecting your internet while scanning.

Logout Mark Read Team Forum Stats Members Help
NFO for TV-Show don´t work1