Possible to scan folders instead of files? (2 Viewers)

solis66

MP Donator
  • Premium Supporter
  • January 22, 2007
    141
    20
    Home Country
    Sweden Sweden
    Hello
    Now I have done a little fix to search by folders instead. As always with home compiled stuff everything goes away when an update to a newer svn is done but nevertheless...

    This is tested with svn after 17044, 080116, and is not guaranteed to work with prior svn:s.

    Replace the existing WindowPlugin.dll with this one: WindowPlugin.dll.

    1. Here the default search on IMDB is done by foldername instead of the filename.
    2. The filestackingdialog is also removed when trying to watch movies with several files (cd1. cd2...).

    These changes are configurable if you edit MediaPortal.xml and add the following lines under section "movies":
    (If you dont add the lines, the default behaviour is like above)

    <section name="movies">
    <entry name="searchIMDBbyFolder">yes</entry>
    <entry name="showDlgFileStacked">no</entry>

    <entry name="repeat">yes</entry>
    <entry name="markwatched">yes</entry>
    ...


    Try it and see if you like it. If there is some important updates in svn I can hopefully recompile a new version if requested.
    I will try to get it in by the devs.

    Have fun...
    and I would be glad to get a hint on the result:)
     

    lowcrust

    Portal Member
    January 1, 2007
    35
    0
    118
    Home Country
    Norway Norway
    Tack som fan! But.... I tried with a SVN from 16/11/2007 but that didn't work. So I downloaded and installed a fresh stable .2.3.0, that didn't work, so I took todays SVN (01-20-2008--05-05-Rev17106) but no luck there either. So I tried 17044 and lo and behold it STILL doesn't work. It's exactly like before.

    The content of the folder '28.Weeks.Later.2007.DVDRip.XviD-LPD' comes up as 28wl.xvid-lpd which, of course, is the filename.

    What am I doing wrong?
     

    cieje

    New Member
    January 20, 2008
    3
    0
    Home Country
    United States of America United States of America
    it seems to work only when you right click a directory and selec "IMDB" - not scan.

    Is there any way to make it simply parse all my directories? or do I need to do this for each one.
     

    solis66

    MP Donator
  • Premium Supporter
  • January 22, 2007
    141
    20
    Home Country
    Sweden Sweden
    Hi guys.
    Nice to see someone else like this fix.

    Sorry for the inconvenience.
    I didnt realize at first that there were different commands to IMDB when scanning via "IMDB" and "scan". i'll look into that and be back when/if I got the solution.


    ----------------------------------------
    OK, now I've looked into it.
    The collecting of movie data is done by the database plugin included in MP, and there are many components in MP which are dependent on this.

    So a fix for all scanning possibilities means a change of about 27 core files (almost like a new svn update) not just the WindowPlugin.dll, but I think it is doable so I might do an attempt if someone is interested in this.
    Otherwise, the IMDB option in MP is the only way to do this right now.
     

    lowcrust

    Portal Member
    January 1, 2007
    35
    0
    118
    Home Country
    Norway Norway
    I'm not sure I know what you guys mean with "IMDB not scan". Could anyone please elaborate on that a little?
     

    solis66

    MP Donator
  • Premium Supporter
  • January 22, 2007
    141
    20
    Home Country
    Sweden Sweden
    OK, it's like this,
    If you press F3 when you have a listitem selected, MP will search IMDB for the file in the directory (or folder with the fix). The same goes with the contextmenu and the choice "IMDB".

    If you on the other hand choose "scan" from the contextmenu, MP will search IMDB with every media file in the direcory and subdirectory.

    This last alternative involves several core components, but the first choice affects only the changed dll-file.
    Hope that this makes things a bit more clear.
     

    cieje

    New Member
    January 20, 2008
    3
    0
    Home Country
    United States of America United States of America
    It's an inconvenience that it won't scan a whole directory, but it's not the end of the world. At least there's functionality to do one at a time! thank you for your hard work.:D
     

    lowcrust

    Portal Member
    January 1, 2007
    35
    0
    118
    Home Country
    Norway Norway
    I'm sorry but I still don't get it. I know what this part means (because that's how I use it now);
    If you on the other hand choose "scan" from the contextmenu, MP will search IMDB with every media file in the direcory and subdirectory.

    But this part;
    If you press F3 when you have a listitem selected, MP will search IMDB for the file in the directory (or folder with the fix). The same goes with the contextmenu and the choice "IMDB".

    If I have "listitem selected"? Where exactly?
     

    cieje

    New Member
    January 20, 2008
    3
    0
    Home Country
    United States of America United States of America
    I'm sorry but I still don't get it. I know what this part means (because that's how I use it now);
    If you on the other hand choose "scan" from the contextmenu, MP will search IMDB with every media file in the direcory and subdirectory.

    But this part;
    If you press F3 when you have a listitem selected, MP will search IMDB for the file in the directory (or folder with the fix). The same goes with the contextmenu and the choice "IMDB".

    If I have "listitem selected"? Where exactly?

    lowcrust, the basic jist is that the "scan" functionality, the ability to SCAN an entire directory for every IMDB entry does not work with this fix. However, if you select "IMDB", which is a different option other than scan, on an item it'll request IMDB info ONLY for the item (directory or file) that is selected.
     

    Users who are viewing this thread

    Similar threads

    My problem is that I would like to switch from Kodi to Mediaportal. In Kodi, putting an Extras folder in the same folder as the movie automatically manages all the extras on the Bluray, so my library is organized in this way. Moving everything would be a very long job (I have more than 2800 movies), plus I would lose the Extras...
    My problem is that I would like to switch from Kodi to Mediaportal. In Kodi, putting an Extras folder in the same folder as the...
    Hello, is it possible to exclude some folders from the Moving Pictures scan? My movies are organized in separate folders...
    Replies
    4
    Views
    984
    I've updated dlls in first post. Fixes: Summary / Overview was always empty Collections were not filtered to official ones Studios were not populated Fallback to english tagline didn't work Score / Popularity now empty instead of dummy rating and unknown popularity numbers Also I've tried to compile plugin against MP 1.34 x64 and...
    I've updated dlls in first post. Fixes: Summary / Overview was always empty Collections were not filtered to official ones Studios...
    Hi! TheTVDB.com has movies in their API now. API itself looks ok now so I decided to add TVDB to Moving Pictures. Check it if you...
    Replies
    2
    Views
    799
    I don't organise my media in the way that you do, so I don't know whether MediaPortal provides the capability that you want. All that I can suggest is that you read this page in the MP Wiki and experiment to see if it will merge the separate folders to give you a unified view of the media. -- from CyberSimian in the UK
    I don't organise my media in the way that you do, so I don't know whether MediaPortal provides the capability that you want. All...
    Hi i have a collection of 9208(Still growing on a daily basis)) music videos(ripped in m2ts format from blu-rays) which are stored...
    Replies
    1
    Views
    1K
    I removed all sign of MySQL, rebooted, did a clean reinstall. It reinstalled 5.6, But I've still got both the same problem - unable to connect to any of the specified MySQL hosts. And Hostname is still in red. I don't understand - this is a dedicated TV computer. Unless an update did this I don't know why there's a problem in the...
    I removed all sign of MySQL, rebooted, did a clean reinstall. It reinstalled 5.6, But I've still got both the same problem -...
    I've been using MediaPortal for 20 or so years. Last night it recorded perfectly. This arvo it doesn't - will run videos but not...
    Replies
    2
    Views
    868
    Mistake
    Mistake
    I've been using MediaPortal for 20 or so years. Last night it recorded perfectly. This arvo it doesn't - will run videos but not...
    Replies
    26
    Views
    4K
    Top Bottom