Kodi Community Forum
Media Info Plus - Manage your Movies, Shows, Tunes, NFO and more (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)
+--- Thread: Media Info Plus - Manage your Movies, Shows, Tunes, NFO and more (Open Source VB.NET) (/showthread.php?tid=47071)



- fekker - 2009-04-13

Necromancyr Wrote:I tried searching...and unfortunately wasn't able to find what I needed and I've tried a few different things and can't get this to work properly.

The issue is on an original import, some excess characters were left in my movie names. All of my movies are name as follows : Movie name [Year] (IMDB).

Now, I went back and realized why this happened and have the proper ignores setup - (*) is turned on and another one for /[*/] is as well.

However, while clicking on a movie with download setup, then clicking change 'fixes' the movie title name (in editable title), running autopilot doesn't change them.

Now I may be misunderstanding a setting - is the 'rename movie' the setting that allows this? My first assumption is that will actually rename the movie file - which I don't want...I just want the movie title in XBMC to be the movie name only.

Thanks in advance.

modify the field for the movie, display title.


- midgetspy - 2009-04-13

fekker Wrote:hmm.. i haven't touched that code in forever (as far as updated go, it's been the same code since early mip 1 days).. so it should work correctly.

anyone else having problems with it?
do the other ones work?

are you using file level or folder level movies?

File level (all movies in one folder).


- Walhalla - 2009-04-13

i want to thank much for this great software. it makes our / my life(s) so much easier Smile

it works great, but there are some points were it needs some adjustments.

1. would it be possible to get the title, genre and plot from ofdb or or the german title from imdb if you select german as language in the settings?
2. can you add an option were you enter the words were the movie name stops separated with a comma.

As example : James.Bond.Casino.Royale.1080p or James.Bond.Casino.Royale.HD so the words will be "1080p, HD"

i think this would improve the movie recognition (imdb search) a lot.


- 2-7offsuit - 2009-04-13

fekker Wrote:It should work under wine for os x .. it for sure works under wine under ubuntu and wine under gentoo..

install wine
install .net 2.0 (i like wine tricks for doing that part)
install MIP
update MIP

there's more details in the wiki on wine install under ubuntu.. i'm guessing it's similar under os x

I've been having trouble with Darwine lately and a look on google shows that I'm not the only one. Is there any plan for an OSX port?


- Necromancyr - 2009-04-13

fekker Wrote:modify the field for the movie, display title.

Fekker, problem is doing it by hand is going to take forever for 300 movies because of the slower loading times as my movies are on a centralized server. There's no way to do this in an automated fashion? (Found the wiki...which I somehow missed since my first post...and realize the checkbox is for renaming file - apologies for that...completely missed the wiki in my thread searching insanity...)

After screwing around more I figured out what the issue actually is - some .nfo's have the filename as the title for some reason and some don't. If I ignore everything in ()'s in the filename, MIP names the .NFO's as <movienameonly>.nfo. If I don't ignore them, it names it as the filename - though the name of the movie includes the (year) and (IMDBID) i have in the filenames.

Tried to not specify whether to use <moviename>.nfo or movie.nfo and MIP just amends the .oldversion to the .nfo file and doesn't remove it after editing.

What I'm trying to do is not modify my filenames at all as I prefer everything named the same and just rename/strip the ()'s in the movie names in the .nfos. I have a feeling I can't do it with MIP but just want to confirm. If it were 1-2 movies it would be fine...the large number I need to go through manually is killing me.

I am definitely going to use this for future movie additions though...the program is great.


- bobrap - 2009-04-13

I'm hoping someone can help getting me a little less Huh. My question is simple...if I want images downloaded to be displayed in XBMC for windows, what is the format? TBN, jpg, not jpg if it Tuesday, fanart with movie name....I just don't really see the need for me to have images stored that are not being used. Make sense? Please help this confused old manBig Grin


- JiveTalker - 2009-04-13

bobrap Wrote:I'm hoping someone can help getting me a little less Huh. My question is simple...if I want images downloaded to be displayed in XBMC for windows, what is the format? TBN, jpg, not jpg if it Tuesday, fanart with movie name....I just don't really see the need for me to have images stored that are not being used. Make sense? Please help this confused old manBig Grin

At the moment different versions of XBMC use different image files when importing your movies/shows. MIP produces all of the files used by all of the different versions. When the new XBMC version is released I believe there will be an option to only create the image files required for that version, and perhaps to delete any unused images and NFO files. Until then there will be 2 posters, 2 fanart images and 2 NFO files for each title.


- Talle - 2009-04-13

As far as I know (and I´ve just re-scaned my library from scratch) there will be egnough to make the movie.nfo and movie.tbn.

I un-rared all files and deleated all old fanart, folders, nfo´s and tbn´s then I scanned it all with MIP 2861.

I´ve got all info just fine, not all with the movie information though.... Sad

Using SVN build 19xxx something...


- masterosok - 2009-04-13

Does anyone know how to get MIP to allow you to manually edit the skin tag. When I make changes to it, it doesn't save them to the nfo file. If I manually edit the nfo, MIP changes it back to whatever it detects.


- diemos - 2009-04-13

this is probably a n00b question, but can I add Kinopoisk scraper to MIP and scrape russian movies or I can only do it through XBMC?


- fekker - 2009-04-13

midgetspy Wrote:File level (all movies in one folder).
bugged.. will add to fix list

Quote:1. would it be possible to get the title, genre and plot from ofdb or or the german title from imdb if you select german as language in the settings?
actually coding this now, could use your help.. where is the tagline on ofdb?
I've got it updating the following fields.
title
outline
plot
genre
rating
votes

but can't figure out where the tagline is.. i could just populate that with the plot outline data, but it's not quite the same.

initially this will be a tool menu item, update movie info from ofdb, later i'll work it into the app better
Quote:2. can you add an option were you enter the words were the movie name stops separated with a comma.

As example : James.Bond.Casino.Royale.1080p or James.Bond.Casino.Royale.HD so the words will be "1080p, HD"

i think this would improve the movie recognition (imdb search) a lot.
this should be possible with the filters in the setup and configuration.. there's file level and folder level filters.. if your movies are in there own folder, use the folder level filters.. if there are lots of movies in one folder, use the file level filters.

if that doesn't cover it.. post what the file / folder is named and i'll see if it's an option that possible right now, or needs to be added.
Quote:I'm hoping someone can help getting me a little less . My question is simple...if I want images downloaded to be displayed in XBMC for windows, what is the format?
i think jivetalker covered this, it all depends on what version of xbmc your using .. with 9.0.4 (xbmc) it'll be movie.tbn, fanart.jpg, folder.jpg(if folder level)

Quote:As far as I know (and I´ve just re-scaned my library from scratch) there will be egnough to make the movie.nfo and movie.tbn.

I un-rared all files and deleated all old fanart, folders, nfo´s and tbn´s then I scanned it all with MIP 2861.

I´ve got all info just fine, not all with the movie information though....

Using SVN build 19xxx something...
I'm not sure i understand the issue or problem, can you provide an example with details of the folder / file names and what's created, or not created, as well as what images it's got.. is this issue with MIP or when you load the movie in xbmc?

Quote:Does anyone know how to get MIP to allow you to manually edit the skin tag. When I make changes to it, it doesn't save them to the nfo file. If I manually edit the nfo, MIP changes it back to whatever it detects.
edit the tag and click on the save button, that should force it.


- fekker - 2009-04-13

Quote:... Kinopoisk scraper to MIP and scrape russian movies or I can only do it through XBMC?

currently mip only does english scraping, ofdb for german is almost done
after i get that one completed i can look at adding others, if anyone codes in .net, the methods used to update the data are pretty straightfoward, could use assistance.

here's the code for ofdb, it uses the movies imdb id to get the data and slightly modified regex's from xbmc's scraper (some are exact matches, some needed a bit of tweaking)
Code:
Public Sub set_movie_details_from_ofdb(ByRef tmovie As movie)
        Dim s As String = ""
        s = downloadofdb_main_details(get_ofdbidlink(tmovie.pimdbnumber))

        Dim ofdb_title As String = ""
        Try
            Dim robjOfdbTitle As New Regex("<td width=""99.""><h2><font face=""Arial,Helvetica,sans-serif"" size=""3""><b>([^<]+)</b></font></h2></td>", RegexOptions.Singleline Or RegexOptions.IgnoreCase Or RegexOptions.Multiline)
            ofdb_title = robjOfdbTitle.Match(s).Groups(1).Value
        Catch ex As ArgumentException
            'Syntax error in the regular expression
        End Try
        tmovie.peditedmoviename = cleanimdbdata(ofdb_title)

        Dim ofdb_outline As String = ""
        Try
            Dim robjOfdbOutline As New Regex("<b>Inhalt:</b>([^<]+)", RegexOptions.Singleline Or RegexOptions.IgnoreCase Or RegexOptions.Multiline)
            ofdb_outline = robjOfdbOutline.Match(s).Groups(1).Value
        Catch ex As ArgumentException
            'Syntax error in the regular expression
        End Try
        tmovie.pplotoutline = cleanimdbdata(ofdb_outline)

        Dim ofdb_genre As String = ""
        Try
            Dim robjOfdbGenres As New Regex("view.php\?page=genre&Genre=[^""]+"">([^<]*)<", RegexOptions.Singleline Or RegexOptions.IgnoreCase Or RegexOptions.Multiline)
            Dim ofdbGenres As Match = robjOfdbGenres.Match(s)
            While ofdbGenres.Success
                ofdb_genre += ofdbGenres.Groups(1).Value.ToString + " / "
                ofdbGenres = ofdbGenres.NextMatch()
            End While
        Catch ex As ArgumentException
            'Syntax error in the regular expression
        End Try
        If Strings.Right(ofdb_genre, 3) = " / " Then
            ofdb_genre = Strings.Left(ofdb_genre, ofdb_genre.Length - 3)
        End If
        tmovie.pgenre = cleanimdbdata(ofdb_genre)

        Dim ofdb_rating As String = ""
        Try
            Dim robjOfdbRating As New Regex("Note: ([0-9\.]+)", RegexOptions.Singleline Or RegexOptions.IgnoreCase Or RegexOptions.Multiline)
            ofdb_rating = robjOfdbRating.Match(s).Groups(1).Value
        Catch ex As ArgumentException
            'Syntax error in the regular expression
        End Try
        tmovie.prating = cleanimdbdata(ofdb_rating)

        Dim ofdb_votes As String = ""
        Try
            Dim robjOfdbVotes As New Regex("Stimmen: ([0-9]+)", RegexOptions.Singleline Or RegexOptions.IgnoreCase Or RegexOptions.Multiline)
            ofdb_votes = robjOfdbVotes.Match(s).Groups(1).Value
        Catch ex As ArgumentException
            'Syntax error in the regular expression
        End Try
        tmovie.pvotes = cleanimdbdata(ofdb_votes)

        Dim ofdb_ploturl As String = ""
        Try
            Dim robjOfdbPlotUrl As New Regex("Inhalt:</b>[^<]*<a href=""plot/([0-9]+,[0-9]+,.*?)"">", RegexOptions.Singleline Or RegexOptions.IgnoreCase Or RegexOptions.Multiline)
            ofdb_ploturl = robjOfdbPlotUrl.Match(s).Groups(1).Value
        Catch ex As ArgumentException
            'Syntax error in the regular expression
        End Try
        Dim s1 As String
        If Not ofdb_ploturl = "" Then
            s1 = get_ofdb_plot("http://www.ofdb.de/plot/" & ofdb_ploturl)
        End If
        Dim ofdb_plotgroup As String = ""
        Try
            Dim robjOfdbPlotGroup As New Regex("Eine Inhaltsangabe von(.*)<option value=""All"">", RegexOptions.Singleline Or RegexOptions.IgnoreCase Or RegexOptions.Multiline)
            ofdb_plotgroup = robjOfdbPlotGroup.Match(s1).Groups(1).Value
        Catch ex As ArgumentException
            'Syntax error in the regular expression
        End Try

        Dim ofdb_plotMain As String = ""
        Try
            Dim robjOfdbPlotMain As New Regex("<br><br>([^<]+)", RegexOptions.Singleline Or RegexOptions.IgnoreCase Or RegexOptions.Multiline)
            ofdb_plotMain = robjOfdbPlotMain.Match(ofdb_plotgroup).Groups(1).Value
        Catch ex As ArgumentException
            'Syntax error in the regular expression
        End Try

        tmovie.ptagline = cleanimdbdata(ofdb_plotMain)
        tmovie.pplot = cleanimdbdata(ofdb_plotMain)

        Try
            Dim robjOfdbPlotMainAdd As New Regex("<br />([^<]+)", RegexOptions.Singleline Or RegexOptions.IgnoreCase Or RegexOptions.Multiline)
            Dim ofdbplotadd As Match = robjOfdbPlotMainAdd.Match(ofdb_plotgroup)
            While ofdbplotadd.Success
                tmovie.pplot += cleanimdbdata(ofdbplotadd.Groups(1).Value.ToString)
                
                ofdbplotadd = ofdbplotadd.NextMatch()
            End While
        Catch ex As ArgumentException
            'Syntax error in the regular expression
        End Try



    End Sub
    Private Function get_ofdb_plot(ByVal url As String) As String
        Dim baseurlsiid As String = ""
        baseurlsiid = url
        Dim s As String
        'openpagedata
        Dim request As HttpWebRequest = CType(WebRequest.Create(baseurlsiid), HttpWebRequest)
        Dim response As HttpWebResponse = CType(request.GetResponse(), System.Net.HttpWebResponse)
        Using reader As StreamReader = New StreamReader(response.GetResponseStream())
            s = reader.ReadToEnd()
        End Using
        Return s
    End Function
    Private Function get_ofdbidlink(ByVal imdbid As String) As String
        Dim s As String = get_ofdbid_from_imdbid_websearch(imdbid)
        Dim ofdburl As String = ""
        Try
            Dim robjOfdbID As New Regex("film/([0-9]*,.*?)\""", RegexOptions.Singleline Or RegexOptions.IgnoreCase Or RegexOptions.Multiline)
            ofdburl = robjOfdbID.Match(s).Groups(1).Value
        Catch ex As ArgumentException
            'Syntax error in the regular expression
        End Try
        Return "http://www.ofdb.de/film/" & ofdburl
    End Function

    Private Function downloadofdb_main_details(ByVal url As String, Optional ByVal tolower As Boolean = False) As String
        Dim baseurlsiid As String = ""
        baseurlsiid = url
        Dim s As String

        'openpagedata
        Dim request As HttpWebRequest = CType(WebRequest.Create(baseurlsiid), HttpWebRequest)
        Dim response As HttpWebResponse = CType(request.GetResponse(), System.Net.HttpWebResponse)
        Using reader As StreamReader = New StreamReader(response.GetResponseStream())
            s = reader.ReadToEnd()
        End Using
        If Not tolower Then Return s
        Dim tvarstolower As String = s.ToLower
        Return tvarstolower
    End Function

    Private Function get_ofdbid_from_imdbid_websearch(ByVal imdbid As String, Optional ByVal tolower As Boolean = True) As String
        If imdbid Is Nothing Then Return ""
        If imdbid Is "" Then Return ""
        Dim baseurlsiid As String = ""
        baseurlsiid = "http://www.ofdb.de/view.php?SText=" & imdbid & "&Kat=IMDb&page=suchergebnis&sourceid=mozilla-search"

        Dim s As String

        'openpagedata
        Dim request As HttpWebRequest = CType(WebRequest.Create(baseurlsiid), HttpWebRequest)
        Dim response As HttpWebResponse = CType(request.GetResponse(), System.Net.HttpWebResponse)
        Using reader As StreamReader = New StreamReader(response.GetResponseStream())
            s = reader.ReadToEnd()
        End Using

        If Not tolower Then Return s
        Dim tvarstolower As String = s.ToLower
        Return tvarstolower
    End Function



- Walhalla - 2009-04-13

fekker Wrote:actually coding this now, could use your help.. where is the tagline on ofdb?
I've got it updating the following fields.
title
outline
plot
genre
rating
votes

but can't figure out where the tagline is.. i could just populate that with the plot outline data, but it's not quite the same.

initially this will be a tool menu item, update movie info from ofdb, later i'll work it into the app better

You are totally right, ofdb has no tagline .. i think we should just leave it empty or empty it. Thats not the best i know, but i don't know another german movie database of that kind.

Can you implement the option in a way that you can select what you want to update from Ofdb, as i want to keep the rating as example from imdb.


fekker Wrote:this should be possible with the filters in the setup and configuration.. there's file level and folder level filters.. if your movies are in there own folder, use the folder level filters.. if there are lots of movies in one folder, use the file level filters.

if that doesn't cover it.. post what the file / folder is named and i'll see if it's an option that possible right now, or needs to be added.

hmm i think you need to much filters to cover all the possibilities don't know how to do it best. If have seperate folders for each film. i will send you some directory names through pm.

EDIT: hmm is PM not working here ?


- kautious - 2009-04-14

Is there anyway to resize all my Movies poster in this app? 500x777 is to big for my xbox and aeon.


- fekker - 2009-04-14

kautious Wrote:Is there anyway to resize all my Movies poster in this app? 500x777 is to big for my xbox and aeon.

there are smaller resolutions available, you'll need to resize them on a per movie basis, but the good part about that is you can see the filesize and fanart size as well.. both can be resized for movies.

if you running x64 windows, you'll need to download imagemagick 64bit, 32bit is embedded and requires no external apps be installed