YANG - Yet Another Nfo Generator (Very Basic)

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
snoxbox Offline
Fan
Posts: 472
Joined: Aug 2005
Reputation: 0
Thumbs Up  YANG - Yet Another Nfo Generator (Very Basic) Post: #1
Hi,
I knocked up a little app to assist with 2 distinct problems:

1. A friend wanted an easy way to get his home movies into the video library.
2. My file/folder structure for music videos wouldn't work in the Library.

So I created a basic app to solve those 2 problems, and thought I'd share it in case anyone else finds a use for it. Obviously this is no XBMC Media Companion. It is just a tool to easily and quickly get video files into the Library that cannot be scraped from websites.

Select a directory, check whether you want to do a recursive search or not.
Then there's basically 2 modes:

1. Movies

[Image: movieslg0.th.jpg]

This will create a basic nfo, with just the <title> (taken from filename) and the <genre> (which the user inputs in the textbox). So, you could have 'Home Movies' as the genre, and the title just as the filename. All your home movies will show up under the genre 'Home Movies' in the Library.

Similarly, you can do the same thing for documentaries, music concerts etc.

2. Music Videos

[Image: musicvideoszu7.th.jpg]

My music vids layout of:
Artist\
----->Song.avi

wouldn't work with the scraper, so I added this in. There's 2 modes.
1. Take the artist name from the parent folder.
2. Take the artist name from the filename (In this mode, artist is grabbed from the string before a dash '-', and song from after i.e. Artist - Song.avi)

Both of these modes will create basic nfo's containing only Artist and Title values.


As mentioned, this tool is intended to quickly create basic nfo's for video's that cannot be scraped. If you want additional info in the nfo, at least this will cut out some of the work. If anyone actually uses it and has an issue, or has a suggestion for something that can be added, I'll look into it. Otherwise it will stay as is, because it's fulfilled it's purpose for me.

Download
find quote
sho Offline
Team-XBMC Member
Posts: 4,133
Joined: May 2004
Reputation: 3
Post: #2
Cool app

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.
find quote
eQUIV Offline
Senior Member
Posts: 202
Joined: Aug 2007
Reputation: 0
Post: #3
This is a cool little program. Do you plan to add TV Show support? Here's my problem. I like to download my local news podcasts and watch them, however currently I've been just been manually creating NFOs for them. The nfos are pretty basic, most of them look something like this...

Quote:<episodedetails>
<title>Friday January 23rd 2009</title>
<season></season>
<episode>23</episode>
<plot>Friday January 23rd 2009</plot>
<watched>false</watched>
<credits>Writer</credits>
<director>Global TV BC</director>
<aired>2009-01-23</aired>
<thumb>http://a123.g.akamai.net/f/123/12465/1d/www.canada.com/globaltv/bc/features/podcast/images/gbcnhpod300.jpg</thumb>
</episodedetails>

I was also wondering if anyone was aware of a mass nfo creator program. I'd like to just generate a whole months worth of .nfo files ... "January 1st 2009.nfo" - January 31st 2009.nfo" etc etc... and then I just have to download the .flv podcast everyday into the folder. With the nfo files being there, then my show will be good to go and show up in XBMC.
find quote
fekker Offline
Posting Freak
Posts: 1,545
Joined: Oct 2008
Reputation: 30
Post: #4
Very cool stuff

If your interested, MIP source is up on source forge and has all the tv show data organized into main xml classes and tvcollection.vb - should be easy to incorporate into other applications, it's open source under the GPL, way easier then starting from scratch Big Grin .. feed it the tv show name and pick where it's going, the configuration class in located in maincollection.vb as well. I can help if there's any questions with it
find quote
azido Offline
Posting Freak
Posts: 1,881
Joined: Nov 2008
Reputation: 1
Location: Stuttgart, Germany
Post: #5
i'd like to see such a thing for tv-shows, too.. that way one could add his homebrew "episodes" of anything he filmed and put it up in library.

cheers,azido :;):

-=[ NOTE: The official Aeon Showmix Project is dead due to a hack of the website ]=-
But some cool guys keep coding stuff to it and made it dharma-compatible, see here:
http://forum.xbmc.org/showthread.php?tid=82899
find quote
zeltak Offline
Senior Member
Posts: 119
Joined: Oct 2008
Reputation: 0
Post: #6
+1 for for tv-shows..that would be awesome Smile

Zeltak
find quote
azido Offline
Posting Freak
Posts: 1,881
Joined: Nov 2008
Reputation: 1
Location: Stuttgart, Germany
Post: #7
azido Wrote:i'd like to see such a thing for tv-shows, too.. that way one could add his homebrew "episodes" of anything he filmed and put it up in library.

i found a cool way to add anything as a tv-show to the library:

1. name all the homebrew movies to something useful, i e
S01E01-My_Last_Holiday.avi

2. use your app to create the movie-nfos for all the videos in that directory automatically

3. put a valid tvshow.nfo into that dir (with a unique id)

scan that dir as it would be a tv-show - xbmc reads all the nfos and lists all videos as episodes of your fake tv-show.

Wink

you can even get "valid" tv-show nfo files when you afterwards export your video database and choose seperate files so they get written into your dir again.

one thing though: when doing this, for some reason xbmc changes <episode> and <season> to -1 instead of the correct numbering. manually editing them again fixes this.

cheers,azido :;):

-=[ NOTE: The official Aeon Showmix Project is dead due to a hack of the website ]=-
But some cool guys keep coding stuff to it and made it dharma-compatible, see here:
http://forum.xbmc.org/showthread.php?tid=82899
find quote
PainToad Offline
Senior Member
Posts: 217
Joined: Aug 2008
Reputation: 0
Post: #8
Is this one .net? I'm dying for one that can run under (dar)wine...
find quote
JDizzy Offline
Fan
Posts: 330
Joined: Apr 2009
Reputation: 0
Location: Californication
Post: #9
Sorry, dumb question!
(This post was last modified: 2009-05-11 18:05 by JDizzy.)
find quote
zeltak Offline
Senior Member
Posts: 119
Joined: Oct 2008
Reputation: 0
Post: #10
azido

Can you give an example of a "valid" tvshow.nfo xml?

thx

Zeltak
(This post was last modified: 2009-05-12 05:58 by zeltak.)
find quote
Post Reply