Kodi Community Forum
Ember Media Manager NFO/Poster/FanArt Manager for Movies (Open Source VB.NET) - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Supplementary Tools for Kodi (https://forum.kodi.tv/forumdisplay.php?fid=116)
+---- Forum: Ember Media Manager (https://forum.kodi.tv/forumdisplay.php?fid=195)
+---- Thread: Ember Media Manager NFO/Poster/FanArt Manager for Movies (Open Source VB.NET) (/showthread.php?tid=50348)



- nul7 - 2009-08-01

Tolriq Wrote:Thanks

Some bugs i'll post later on the site when i find time to create an account Smile

Genre modification via Right Click menu don't use the option to only use the selected languages.

You have to add genres to Genres.xml. If you add French genres, please post the updated Genres.xml and I'll add to release package.

Tolriq Wrote:The Edit meta Data is available on right click on multiple selection, as is the open folder (witch have just openned 500 folder when i cliked should have a warning )

Done.

Tolriq Wrote:So new thing : The download addon should show what is already downloaded (Add 2 more fields in the xml : EmberBuild and TranslationBuild to do the checks and help downloading)

Just look at the date. lol Most people don't use SVN version, so it's not a problem to only update when a new version is out (we'll have an auto-updater sometime in the future, as well). I don't think it's necessary to have a translation version.

Tolriq Wrote:Edit : One More : The new option to auto save fanart to extra is great but when you edit a film even if already extra the fan are always selected so can be added 100 times if don't take care

Does it? lol Have you tried downloading fanart twice for the same movie? What happens? Wink

Tolriq Wrote:Just seen that you reuse old text ids to other functions. It's quite impossible to follow that for trads Sad (Here it was easy new function and traduction of download addons was Color that"s why i didn't see it first )

Please never do that again Smile

Yeah... got rid of all the color stuff from the GUI since it's all handled by themes now so had some unused IDs (somewhere around 444 I believe). Just wanted to fill that gap. lol You can always use a diff to see the changes between the current version and the last version you had. Wink But it shouldn't happen again. Shouldn't..... lol

RockDawg Wrote:Now I get all the fields, but the data returned in some of them is wrong. Out of the dozen or so movies I tried, all have incorrect duration. Some are only a couple minutes off and others are way off. Aspect ratio seems to be detected correctly for 1.333 movies, but all widescreen movies return 1.778 even if they are 2.35 or other. I have yet to see any aspect ratio reported other than 1.333 or 1.778. The rest of the fields seem to report correct data as far as I can tell.

I didn't notice any difference between enabling or disabling IFO parsing. I get the same results either way.

If there is no different between enabling IFO parsing and not, then your IFOs are completely borked. As mentioned, in this case, it falls back to scanning via mediainfo.dll. In doing so it adds the duration of all VTS_*_*.vob files in the folder (since there's no way for it to know which ones are the actual movie) to use as the duration of the movie. There is the option to edit the meta data though... so you can fix it. Wink


- clackerdacker - 2009-08-01

For VIDEO_TS or virtual VIDEO_TS I think the code should be doing this. Notice it's also checking for single VTS*.IFO file. This fixes all the run time issues with DVDs.

Code:
ElseIf IFOFiles.Count = 1 Then
                ParsedIFOFile = fctParseIFO_VSTFile(IFOFiles(0))
                Return True

Code:
If IFOFiles.Count > 1 Then
                'find the one with the longest duration
                For Each fFile As String In IFOFiles
                    ParsedIFOFile = fctParseIFO_VSTFile(fFile)
                    currDuration = Convert.ToInt32(GetProgramChainPlayBackTime(1, True))
                    If currDuration > currLongest Then
                        currLongest = currDuration
                        tIFOFile = ParsedIFOFile
                    End If
                Next

                ParsedIFOFile = tIFOFile
                Return True

            ElseIf IFOFiles.Count = 1 Then
                ParsedIFOFile = fctParseIFO_VSTFile(IFOFiles(0))
                Return True
            ElseIf Path.GetExtension(strPath).ToLower = ".ifo" AndAlso Not Path.GetFileName(strPath).ToLower = "video_ts.ifo" Then
                ParsedIFOFile = fctParseIFO_VSTFile(strPath)
                Return True
            End If

Whereas it's currently doing this

Code:
If IFOFiles.Count > 1 Then
                'find the one with the longest duration
                For Each fFile As String In IFOFiles
                    ParsedIFOFile = fctParseIFO_VSTFile(fFile)
                    currDuration = Convert.ToInt32(GetProgramChainPlayBackTime(1, True))
                    If currDuration > currLongest Then
                        currLongest = currDuration
                        tIFOFile = ParsedIFOFile
                    End If
                Next

                ParsedIFOFile = tIFOFile
                Return True
            ElseIf Path.GetExtension(strPath).ToLower = ".ifo" AndAlso Not Path.GetFileName(strPath).ToLower = "video_ts.ifo" Then
                ParsedIFOFile = fctParseIFO_VSTFile(strPath)
                Return True
            End If

There's another issue in the code relating to aspect ratio where it's simply dividing the DVD default size values 720x480 or 576 to get 1.5 or 1.25 which are meaningless values, although to be honest I've no idea how to get the actual 1.85, 1.77, 2.35 etc value correctly either.

This is code from the latest SVN trunk (r930) BTW.


Fanart Question - wintermut3 - 2009-08-01

Hey guys. I love the program and it helped a great deal in organizing my collection. I have one small issue with it though: There's about 70-80 movies that XBMC will not display the fanart or poster, regardless of skin. The files are located there, and my other movies display fine. Here is my directory structure:

\The 6th Day\
-The 6th Day.avi
-The 6th Day.jpg
-The 6th Day.nfo
-The 6th Day-fanart.jpg

Now I have a couple hundred other directories with that same structure that display just fine. When I was scanning with EMM I was choosing the highest resolution pictures available, could this by my problem?

Let me know if you want a debug log of me scanning the database or something else?

Thanks a lot in advance!


Feature request - Naser - 2009-08-01

1 very important feature that would be very handy :

since i used many other programs before (mymovies,yammy,etc), each movie folder has lots of junk these:

movies..dvdid (xml) for VMC
movie.info (original info file)
backdrop.jpg 1-4
folder.original.jpg
mymovies.xml
folder.bkp
etc etc
some times i have as many as 21 different files, would be great for EMM to delete "everything except the ticked files in options & movies files.


very painful to clean each folder manually "ouch"


Hope this gets implemented.

Just realized the expert whitelist, i guess you already thought of everything Smile excellent work


- nul7 - 2009-08-01

clackerdacker Wrote:For VIDEO_TS or virtual VIDEO_TS I think the code should be doing this. Notice it's also checking for single VTS*.IFO file. This fixes all the run time issues with DVDs.

...snip code...

There's another issue in the code relating to aspect ratio where it's simply dividing the DVD default size values 720x480 or 576 to get 1.5 or 1.25 which are meaningless values, although to be honest I've no idea how to get the actual 1.85, 1.77, 2.35 etc value correctly either.

This is code from the latest SVN trunk (r930) BTW.

Ah, yes... applied. Thanks!

For aspect ratio... that's what it is... width / height. The aspect ratio of a 720x480 film is 1.5 (3:2).


- nul7 - 2009-08-01

wintermut3 Wrote:Hey guys. I love the program and it helped a great deal in organizing my collection. I have one small issue with it though: There's about 70-80 movies that XBMC will not display the fanart or poster, regardless of skin. The files are located there, and my other movies display fine. Here is my directory structure:

\The 6th Day\
-The 6th Day.avi
-The 6th Day.jpg
-The 6th Day.nfo
-The 6th Day-fanart.jpg

Now I have a couple hundred other directories with that same structure that display just fine. When I was scanning with EMM I was choosing the highest resolution pictures available, could this by my problem?

Let me know if you want a debug log of me scanning the database or something else?

Thanks a lot in advance!

If Ember is creating and naming the files correctly, there's not much more we can do about it. It appears (just from the example you posted) that everything is correct. Have you tried refreshing the movie in XBMC to see if it grabs the fanart? Or try removing the xbmc source, then re-adding it to let xbmc rescan all data/files for every movie.

The highest resolution I've seen for fanart is, of course, 1920x1080 and I use the highest resolution I find as well.... and I have no problems with XBMC picking up the fanart that I've noticed. If you do find the problem and it is something to do with Ember, please let us know.


- clackerdacker - 2009-08-01

nul7 Wrote:Ah, yes... applied. Thanks!

For aspect ratio... that's what it is... width / height. The aspect ratio of a 720x480 film is 1.5 (3:2).

Not really, 2.35 has black bars top and bottom whilst 1.78 fills the screen entirely etc. It's then complicated further with anamorphic and non anamorphic DVDs.

If we follow the above then all NTSC DVDs are exactly the same AR which is wrong.


- nul7 - 2009-08-01

clackerdacker Wrote:Not really, 2.35 has black bars top and bottom whilst 1.78 fills the screen entirely etc. It's then complicated further with anamorphic and non anamorphic DVDs.

If we follow the above then all NTSC DVDs are exactly the same AR which is wrong.

Bah, yes, you're right... dvds... I am thinking general video. Hmmm... don't think there's anything we can do about it. I can get the internal aspect as stored in the ifo (4:3 or 16:9) and whether dvd is letterboxed or not.... but I don't think that would help much. Maybe do something like if aspect = 1.78 and DVD is marked letterboxed then assume 2.35 (or 1.85)?

EDIT: Something like this:

Code:
If ParsedIFOFile.VideoAtt_VTS_VOBS.Aspect_Ratio = 3 AndAlso ParsedIFOFile.VideoAtt_VTS_VOBS.LetterBoxed Then
                    ReturnArray(2) = "1.85"
                ElseIf ParsedIFOFile.VideoAtt_VTS_VOBS.Aspect_Ratio = 3 OrElse ParsedIFOFile.VideoAtt_VTS_VOBS.LetterBoxed Then
                    ReturnArray(2) = "1.78"
                ElseIf ReturnArray(1).Contains("x") Then
                    Dim strAspect() As String = ReturnArray(1).Split(New Char() {"x"})
                    Dim strReturn As String = Master.ConvertToSingle(FormatNumber(Master.ConvertToSingle(strAspect(0)) / Master.ConvertToSingle(strAspect(1)), 2, TriState.False))
                    If strReturn.EndsWith("0") Then
                        ReturnArray(2) = strReturn.Substring(0, strReturn.Length - 1)
                    Else
                        ReturnArray(2) = strReturn
                    End If
                Else
                    ReturnArray(2) = String.Empty
                End If

EDIT Again: Committed to SVN to test if it makes any difference (the test rip i have is standard format :/)


- Tolriq - 2009-08-01

Quote:
Quote:Genre modification via Right Click menu don't use the option to only use the selected languages.

You have to add genres to Genres.xml. If you add French genres, please post the updated Genres.xml and I'll add to release package.
The problem is not to add a lang it's that in the option you can choose to have only english used for exemple. But in the right click deutch will show whatever checked.

The problem to add lang to Genre.xlm is that most skin won't have the trads Smile so skin that add genre labels for exemple won't work so the usage is limited i think.


Quote:
Quote:So new thing : The download addon should show what is already downloaded (Add 2 more fields in the xml : EmberBuild and TranslationBuild to do the checks and help downloading)

Just look at the date. lol Most people don't use SVN version, so it's not a problem to only update when a new version is out (we'll have an auto-updater sometime in the future, as well). I don't think it's necessary to have a translation version.

the translation version is to handle better translation that comes out Smile so to have a perfect software it's good to be able to follow.
The prog version is so peoples can check that the files are new or not and to help you show the files that are allready downloaded. When you'll make release, translatation can arrive 1 month later Smile but only idea to help Smile


Quote:
Quote:Edit : One More : The new option to auto save fanart to extra is great but when you edit a film even if already extra the fan are always selected so can be added 100 times if don't take care

Does it? lol Have you tried downloading fanart twice for the same movie? What happens?

I use permanent cache, what the option do is auto check when you scrape fanart. So if you scrape one time, it will add all the files to extra. But if in big you find the fanart not perfect and want to change, you click scrape again, with the cache it opens and it's perfect Smile but the fanart are another time selected and when click ok to change it another copie of the file in extra .you do it 4 times you have 4 times all the fanart in extra Smile


- Tolriq - 2009-08-01

Quote:Yeah... got rid of all the color stuff from the GUI since it's all handled by themes now so had some unused IDs (somewhere around 444 I believe). Just wanted to fill that gap. lol You can always use a diff to see the changes between the current version and the last version you had. But it shouldn't happen again. Shouldn't..... lol

To make a diff between two version i need to know witch version i have so the ember release in the xml would help :p:p:p:p


- Tolriq - 2009-08-01

New french Trad :

http://www.leetzone.org/French_r942.rar


- nul7 - 2009-08-01

Tolriq Wrote:The problem is not to add a lang it's that in the option you can choose to have only english used for exemple. But in the right click deutch will show whatever checked.

The problem to add lang to Genre.xlm is that most skin won't have the trads Smile so skin that add genre labels for exemple won't work so the usage is limited i think.

I can't replicate that... if I filter genres by "English", it only shows English genres.... if I select "All" it shows all... "German" only shows German genres... are you sure you've set the genre filter?

XBMC will use whatever genre you throw at it. If you add "aslkdf28" as genre in an nfo file, then it will display that as genre.

Tolriq Wrote:the translation version is to handle better translation that comes out Smile so to have a perfect software it's good to be able to follow.
The prog version is so peoples can check that the files are new or not and to help you show the files that are allready downloaded. When you'll make release, translatation can arrive 1 month later Smile but only idea to help Smile

And when you check for downloads you'll see the the language file hasn't been updated since before the last release... so you know it hasn't been updated for the newest version. Basically the update date IS the version number.

Tolriq Wrote:I use permanent cache, what the option do is auto check when you scrape fanart. So if you scrape one time, it will add all the files to extra. But if in big you find the fanart not perfect and want to change, you click scrape again, with the cache it opens and it's perfect Smile but the fanart are another time selected and when click ok to change it another copie of the file in extra .you do it 4 times you have 4 times all the fanart in extra Smile

Have you actually done this? It generates hashes for all current extrathumbs and for all fanart images.... if an image matches the preferred size and it's hash is not in the list of current extrathumbs hashes then it checks the box.


- nul7 - 2009-08-01

Tolriq Wrote:To make a diff between two version i need to know witch version i have so the ember release in the xml would help :p:p:p:p

Just compare with the version in Release Files folder on SVN. Wink


- Tolriq - 2009-08-01

For the Genre : In option i select english only but i see german with right click / genre.

For the Genre names : Yes i know i can put whatever in the nfo, but more and more xbmc skin have the fanart for movie genre now, so if the genre don't have the corresponding image it won't work, with english it will allways work Smile

And for the fanart yes i have do it i stopped at 3 times Smile You scrape a film with cache, you the edit the fanart with the scrape option the fanart will be selected and when click ok they are copied.

For the revision in xml i will try to find better exemples later :p (but at this time there s no way to know if you already have dl a file :p so this will generate lots of traffic )


- Tolriq - 2009-08-01

Ok more information for the bug for genres Smile

It seems the problem is due to translations of the all.
To reproduce : Put language in english. Choose All. Then change lang.
At this moment the genre list is empty.
Go choose English genre : The genre list is full (US + DE)

Go back to English lang select english genre apply then select all apply the filter is corrected.
Then select English genre then change the language, it works until you choose all then it's broken again.

And info for the fanart bug, it"s related to cache, if i purge and download again files it works.