Kodi Community Forum

Full Version: Media Companion - Manage Icons, Posters, FanArt, .NFO's & more for Movies & TV Shows
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hitcher Wrote:Excellent, thanks.

That's what I thought but with 'Use Folder Names' checked and 'Keep file/folder name as movie title' unchecked the resulting nfo is still named after the actual movie file and not the folder. Huh

It should be 'Use Folder Names' checked
and
'Keep file/folder name as movie title' checked
Could someone tell me what is so useful about movie.tbn & movie.nfo? I must be missing something as I've seen it requested and then implimented in XBMC and now programs like this. What is better about it than than usual old method of <file name>.tbn & .nfo?
RockDawg Wrote:Could someone tell me what is so useful about movie.tbn & movie.nfo? I must be missing something as I've seen it requested and then implimented in XBMC and now programs like this. What is better about it than than usual old method of <file name>.tbn & .nfo?

I have to admit that i've wondered about this myself. It is certainly easier for me to have the filename contained in the nfo file.
To make movie.nfo work i'm going to have to start storing the filename in the nfo file to allow me link the nfo with the media for playback, mediainfo etc
Both version 2.203 and 2.201 crash at my pc during startup (version 2.141 runs fine):

Windows XP Pro, .NET 3.5

system.invalidoperationexception

The media companion directory under C:\Documents and Settings\Caro\Application Data has not been created yet (even creating it, doesn't seem to do anything)

Any ideas?
beefke Wrote:Both version 2.203 and 2.201 crash at my pc during startup (version 2.141 runs fine):

Windows XP Pro, .NET 3.5

system.invalidoperationexception

The media companion directory under C:\Documents and Settings\Caro\Application Data has not been created yet (even creating it, doesn't seem to do anything)

Any ideas?

I have absolutely no idea what is causing this.



The following is the code that is raising this message and exiting the program :
Code:
Public applicationdatapath As String = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\Media Companion\"

Dim f As New IO.DirectoryInfo(applicationdatapath)
        If Not f.Exists Then
            Try
                Directory.CreateDirectory(applicationdatapath)
            Catch ex As Exception
                MsgBox(ex.Message.ToString)
                End
            End Try
        End If

I can't see why you are having an issue with this, for some reason the Directory.CreateDirectory(applicationdatapath) is failing and raising the exception and I don't know why, it has to be some kind of permissions problem
I was also thinking something like that, but it is an administrator account. And even if I create the directory, it crashes.

Some more info:

EventType clr20r3, P1 media companion 2.203.exe, P2 2.2.0.3, P3 49bbcbf5, P4 media companion 2.203, P5 2.2.0.3, P6 49bbcbf5, P7 77d, P8 dc, P9 system.invalidoperationexception, P10 NIL.


0000: 63 00 6c 00 72 00 32 00 c.l.r.2.
0008: 30 00 72 00 33 00 2c 00 0.r.3.,.
0010: 20 00 6d 00 65 00 64 00 .m.e.d.
0018: 69 00 61 00 20 00 63 00 i.a. .c.
0020: 6f 00 6d 00 70 00 61 00 o.m.p.a.
0028: 6e 00 69 00 6f 00 6e 00 n.i.o.n.
0030: 20 00 32 00 2e 00 32 00 .2...2.
0038: 30 00 33 00 2e 00 65 00 0.3...e.
0040: 78 00 65 00 2c 00 20 00 x.e.,. .
0048: 32 00 2e 00 32 00 2e 00 2...2...
0050: 30 00 2e 00 33 00 2c 00 0...3.,.
0058: 20 00 34 00 39 00 62 00 .4.9.b.
0060: 62 00 63 00 62 00 66 00 b.c.b.f.
0068: 35 00 2c 00 20 00 6d 00 5.,. .m.
0070: 65 00 64 00 69 00 61 00 e.d.i.a.
0078: 20 00 63 00 6f 00 6d 00 .c.o.m.
0080: 70 00 61 00 6e 00 69 00 p.a.n.i.
0088: 6f 00 6e 00 20 00 32 00 o.n. .2.
0090: 2e 00 32 00 30 00 33 00 ..2.0.3.
0098: 2c 00 20 00 32 00 2e 00 ,. .2...
00a0: 32 00 2e 00 30 00 2e 00 2...0...
00a8: 33 00 2c 00 20 00 34 00 3.,. .4.
00b0: 39 00 62 00 62 00 63 00 9.b.b.c.
00b8: 62 00 66 00 35 00 2c 00 b.f.5.,.
00c0: 20 00 37 00 37 00 64 00 .7.7.d.
00c8: 2c 00 20 00 64 00 63 00 ,. .d.c.
00d0: 2c 00 20 00 73 00 79 00 ,. .s.y.
00d8: 73 00 74 00 65 00 6d 00 s.t.e.m.
00e0: 2e 00 69 00 6e 00 76 00 ..i.n.v.
00e8: 61 00 6c 00 69 00 64 00 a.l.i.d.
00f0: 6f 00 70 00 65 00 72 00 o.p.e.r.
00f8: 61 00 74 00 69 00 6f 00 a.t.i.o.
0100: 6e 00 65 00 78 00 63 00 n.e.x.c.
0108: 65 00 70 00 74 00 69 00 e.p.t.i.
0110: 6f 00 6e 00 20 00 4e 00 o.n. .N.
0118: 49 00 4c 00 0d 00 0a 00 I.L.....
billyad2000 Wrote:I have absolutely no idea what is causing this.



The following is the code that is raising this message and exiting the program :
Code:
Public applicationdatapath As String = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\Media Companion\"

Dim f As New IO.DirectoryInfo(applicationdatapath)
        If Not f.Exists Then
            Try
                Directory.CreateDirectory(applicationdatapath)
            Catch ex As Exception
                MsgBox(ex.Message.ToString)
                End
            End Try
        End If

I can't see why you are having an issue with this, for some reason the Directory.CreateDirectory(applicationdatapath) is failing and raising the exception and I don't know why, it has to be some kind of permissions problem

I have the same problem on two different installs. I just add the folder and it works great
Sorry - just a suggestion, but are these folders in the root of a drive, and what OS are are you running.

the evil vista hates you creating folders in the root of the system drive, and does somekind of shaddowing to the user folder which has messed up more than one of my programs, sometimes right-clicking and doing 'run as administrator...' helps - but not always.
Quote: Originally Posted by RockDawg View Post
Could someone tell me what is so useful about movie.tbn & movie.nfo? I must be missing something as I've seen it requested and then implimented in XBMC and now programs like this. What is better about it than than usual old method of <file name>.tbn & .nfo?
billyad2000 Wrote:I have to admit that i've wondered about this myself. It is certainly easier for me to have the filename contained in the nfo file.
To make movie.nfo work i'm going to have to start storing the filename in the nfo file to allow me link the nfo with the media for playback, mediainfo etc

I can chime in on those two as I did the initial request and patch after movie.nfo was created, which i believe was done for mymovies.xml support.

The key reason for them deals with folder level movies.

If you have a folder, and that folder contains any valid movie file and a movie.nfo, it will load that nfo file. It doesn't care what the file name is for the movie, or what the folder name is, stacking doesn't matter, rar doesn't matter, movie.nfo says this is a movie and here are the details. It only does one check when loading into xbmc, make sure it's not a folder.

The same thing applies for movie.tbn and fanart.jpg as well as movie-trailer.<ext> .. later it was changed so that you could different extensions for the images as well.. .png, .gif, .jpg, etc instead of .tbn

The new formats make it easier to explain as well, folks don't have to understand how stacking works, or the requirements for the filename.
fekker & Billy... I always wondered why you both did not combine efforts with coding your apps?
JackieBrown Wrote:I have the same problem on two different installs. I just add the folder and it works great

I think you were victim to a different issue that I fixed in version 2.203

Gangsta Wrote:Sorry - just a suggestion, but are these folders in the root of a drive, and what OS are are you running.

the evil vista hates you creating folders in the root of the system drive, and does somekind of shaddowing to the user folder which has messed up more than one of my programs, sometimes right-clicking and doing 'run as administrator...' helps - but not always.

I had reports of people having the above issue, to fix it Media Companion now creates a "Media Companion" Directory, located in the users "Application Data" folder. This is a system path so language and location does not affect the program.

With version 2.203 there is no reason for this error, if anyone else has this issue using version 2.203 then could you please post.

@beefke
Could you try using the program on another machine

I suspect that this could be a .net issue, could you try reinstalling .net 3.5
fekker Wrote:I can chime in on those two as I did the initial request and patch after movie.nfo was created, which i believe was done for mymovies.xml support.

The key reason for them deals with folder level movies.

If you have a folder, and that folder contains any valid movie file and a movie.nfo, it will load that nfo file. It doesn't care what the file name is for the movie, or what the folder name is, stacking doesn't matter, rar doesn't matter, movie.nfo says this is a movie and here are the details. It only does one check when loading into xbmc, make sure it's not a folder.

The same thing applies for movie.tbn and fanart.jpg as well as movie-trailer.<ext> .. later it was changed so that you could different extensions for the images as well.. .png, .gif, .jpg, etc instead of .tbn

The new formats make it easier to explain as well, folks don't have to understand how stacking works, or the requirements for the filename.

I can understand the logic, but by that same logic would we not be calling our media
"movie.avi"
I will add support for the scheme even if it isn't my personal choice. The option of using this method will be down to the user.
I have another suggestion, that i havn't seen yet in a media renaming/scraping type program. It has been mulling over in my head for a few days now...

using a treeview control to 'define' how the media is stored on the computer, then using a set of rules to decide whats what. thatway the proper info would be picked from how 'me/I' define my folder structure.

An allow the user to decide what kind of output he/she wants, eg xbmc/mediaportal/plex/etc - the software then either copies/renames/symlinks the files and/or creates nfo's/downloads thumbs/etc to suit the target system. (or a custom layout for an system yet to be invented)

this is a brief mockup of what i mean

Image

if you think the idea has any merit - let me know and i'll pm you my thoughts - (i dont have time to do much coding these days, and have never tried writing a scraper)

if its not a concept your interested in - I'll give it a bash myself when I get the time - but it seems that there are a lot of people who struggle because they created there media library before setting up xbmc (or one of the others) and this was the best way we could come up with to 'define' what our structure is.
@Gangsta

It's an interesting idea, but it seems like a lot of work to achieve what can already be achieved using regular expressions.

If someone wanted help in setting up regex for a particular format then they only need to ask.
Ive tried allsorts - and tried all the suggested regex's too and still have problems.

Ive still got no library working in xbmc (XBOX), although now when in file view I get dvd covers/posters (only after running media companion on it), but they are not added to library views, and I cant get the series to work properly either - although I now get show banners at the top level, no season banners, or episode banners - and I still need to click on the VIDEO_TS.IFO as its not recognised properly. Although the otherfiles in these folders now have thumbnailsHuh

anyhoo - I will have a bash at it as time allows, as RegEx's arn't for everyone. Thanks for your input Smile