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

solis66

MP Donator
  • Premium Supporter
  • January 22, 2007
    141
    20
    Home Country
    Sweden Sweden
    Sorry, cant reproduce your error.
    It works on both of my computers. My x264 are 720p, but my isos are regular DVD:s. I use ffdshow and haali splitter as main codecs. Perhaps you can give me your log files so I can try to compare them.
    I will take a deeper look soon.
     

    stoked

    MP Donator
  • Premium Supporter
  • December 14, 2007
    297
    8
    Home Country
    Canada Canada
    Sorry, cant reproduce your error.
    It works on both of my computers. My x264 are 720p, but my isos are regular DVD:s. I use ffdshow and haali splitter as main codecs. Perhaps you can give me your log files so I can try to compare them.
    I will take a deeper look soon.

    I upgraded to latest SVN, problem doesn't exist anymore. Checked out Running Pictures, really really cool mod.
     

    dreamwalker

    Portal Member
    July 16, 2008
    10
    0
    RegEx Error while trying to scan??

    Hi Solis, I just tried the plugin on RC2 with SVN20010 and I'm gettnig a regular expression error. What I did to trigger this is:

    Load MP > Goto My Videos > Right click on my top level videos and tried Scan.

    IMDB option also doesn't work anymore. I'm assuming your plugin was suppose to override these behaviors or is there a new menu to do scanning that I'm not aware of??


    2008-09-03 23:43:08.390625 [ERROR][MPMain]: Exception :confused:ystem.ArgumentException: parsing "[-_ .]\b)\b" - Too many )'s.
    at System.Text.RegularExpressions.RegexParser.ScanRegex()
    at System.Text.RegularExpressions.RegexParser.Parse(String re, RegexOptions op)
    at System.Text.RegularExpressions.Regex..ctor(String pattern, RegexOptions options, Boolean useCache)
    at System.Text.RegularExpressions.Regex.IsMatch(String input, String pattern)
    at MyModdedMethods.ModdedMethods.ScanIMDB(IProgress progress, ArrayList paths, Boolean fuzzyMatching, Boolean skipExisting, Boolean getActors, Boolean bSearchByFolder)
    at MediaPortal.GUI.Video.GUIVideoFiles.OnShowContextMenu()
    at MediaPortal.GUI.Library.GUIWindow.OnAction(Action action)

    I've attached the full error log as well. Do you know what could be the cause of this?

    Thanks!




    Hi guys.
    Vacation is over and I'm back with a release for RC2.

    This WindowPlugins.dll now supports:
    * Enhanced stacking option, allows files including name.cd1.avi (with a dot) to get stacked, not only [_- ]cd1.

    * Option to not show the filestackingdialog that asks you which part to play, just resume or start from the beginning. (default: Not show dialog)

    * Option to scan movies at IMDB (or similar) with foldername instead of filename as search option. It is now possible to exclude files or folder that contains specific strings, like 'sample' to avoid some weird results from search. (Default: Use foldername).

    * OneClickOption. If folder contains only one movie, there is no need to drill down into this folder and then click on the movie. This fixes this. If folder has files like:
    /MovieName/movie.avi
    /MovieName/movie-sample.avi, it's possible to exclude the sample file with the
    exclude option, or a folder named sample (or whatever, configurable). (Default: on)
    Thanks Stoked, for this idea. This is a very nice feature in my eyes:)

    The downloadfile includes the Windowplugins.dll and a small tool to configure all settings.
    Replace the original WindowPlugins.dll in <MP-path>\plugins\windows\, or rename the old one first.
    Put MyModdedVideosConfig.dll in <MP-path>\plugins\process\.

    Now there is possible to configure these settings in MP Configuration - plugins - processplugins - Modded MyVideos.

    This is buildt on SVN 20010, but in my own test on a clean RC2 install I have not
    noticed any problems. The biggest difference between these seems to be the removed
    support for some MSN functionality, feel free to try.

    Download here

    Edit: The folder scanning only works like this from within MP itself, since no changes are done to MP Configuration.

    Enjoy...
     

    solis66

    MP Donator
  • Premium Supporter
  • January 22, 2007
    141
    20
    Home Country
    Sweden Sweden
    Stoked: I upgraded to latest SVN, problem doesn't exist anymore.
    Nice that it got solved, a little peculiar that it didn work for you, since it did for me but who knows...

    Hi dreamwalker,
    I made an option to remove specific words from the search string, like x264 or divx... and it works fine but I then missed the case where no words were entered, which gave the wrong regex parsing. I think the words now are case sensitive, but I'll fix that too in a couple of days.

    Thanks for testing.:)

    Edit: These issues are fixed now, feel free to try the new version.
     

    jiggier

    Portal Member
    January 15, 2008
    9
    0
    Hi Solis66,

    Thank you for you time and effort writing this mod. I was the feature that I was looking forward for long time.

    Though I still don't get completely how to use it :) Funny :) Should I go INTO the folder with movies and then press scan or should I press scan ON the folder containing movies?

    And, If I press IMDB on a folder with a movie, does it scan all everything or only this movie? (like there is directory of "D:\movies\The greatest movie ever" and I press IMDB on it, does it scan "D:\movies" directory or only "D:\movies\ The greatest movie ever")?

    EDIT:

    Hmmm, tried various combinations, but there is still no info about movies in movie database (the one in the config tool). Should your mod import IMDB info there? As it looks like, information there is essential if you want to view movies in "title" view.

    Thanks in advance :)

    Btw, :D a lot again
     

    solis66

    MP Donator
  • Premium Supporter
  • January 22, 2007
    141
    20
    Home Country
    Sweden Sweden
    Hi jiggier
    there is still no info about movies in movie database (the one in the config tool)
    Yes, it really should import it here. It's the whole point with this mod, to just enhance the original MyVideos with small improvments like better search. I have not done anything to the original info fetching from internet or how it stores it into the db. I only modified how it gets the string to search for, filename or foldername, so this should really work.:confused:

    The mod works like this:
    * If you press 'IMDB' on a folder, it thinks this folder contains one movie and searches for a movie file in the folder (not recursive, just this folder). If no file is found, no info is fetched from internet. If a file is found, this file is used as the movie file and the foldername is used as searchstring to get info for this file.

    For this purpose I added support to exclude files/folders with certain strings.
    Ex. if you have two files in a folder: sample-terminator.avi and terminator.avi it would pick up sample-terminator.avi as the moviefile (the first found). Therefore it's possible to add 'sample' as an exclude string in the configtool I supplied, ModdedMyVideos, under plugins/process in MP Configuration.

    * If you press 'scan' on a folder, it scans this folder and all subfolders (recursive) for moviefiles. For every folder where a file is found, it uses the first found file in the folder as moviefile, and its foldername as searchstring for fetching movie info.

    * If you press IMDB on a file it will fetch info based on the foldername, and if you press 'IMDB on file' it will use the file name as searchstring.

    As pointed out there is a small bug. If no string is added as 'Exclude from searchstring' there can be an exception in the regexp parsing when scanning info so please add any string ther first, like 'divx, xvid or whatever.:(
    I will upload a new version any day now...

    Edit: New files for RC2 and svn20143 avaliable for download here
     

    solis66

    MP Donator
  • Premium Supporter
  • January 22, 2007
    141
    20
    Home Country
    Sweden Sweden
    The new files for RC2 and svn20143 avaliable for download here
    I've experienced some problems with the original new svn's and had to get new scripts inside MP Configuration for IMDB info, so if anyone has problems with this, be sure that it works with the original fil first...
     

    stoked

    MP Donator
  • Premium Supporter
  • December 14, 2007
    297
    8
    Home Country
    Canada Canada
    The new files for RC2 and svn20143 avaliable for download here
    I've experienced some problems with the original new svn's and had to get new scripts inside MP Configuration for IMDB info, so if anyone has problems with this, be sure that it works with the original fil first...

    Thanks Solis66! I'm hoping grubi updates his auto refresh rate changer for SVN20143 before I upgrade.
     

    stoked

    MP Donator
  • Premium Supporter
  • December 14, 2007
    297
    8
    Home Country
    Canada Canada
    The new files for RC2 and svn20143 avaliable for download here
    I've experienced some problems with the original new svn's and had to get new scripts inside MP Configuration for IMDB info, so if anyone has problems with this, be sure that it works with the original fil first...

    How about SVN20227?
     

    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
    981
    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
    798
    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
    867
    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