MP2 Custom Filters in Movies (1 Viewer)

adamgab

Portal Member
May 22, 2009
6
0
Hello,

I would really like to be able to build a custom filter for a movies in MP2...

Ultimately what I am after is the ability to list the "recently added" movies (like moving pictures for MP1)

Cheers
 

ge2301

Lead Design MP2
  • Team MediaPortal
  • January 11, 2014
    8,705
    3,491
    Stuttgart
    Home Country
    Germany Germany
    Hello,

    I would really like to be able to build a custom filter for a movies in MP2...

    Ultimately what I am after is the ability to list the "recently added" movies (like moving pictures for MP1)

    Cheers
    This feature is missing unfortunately. Besides an "un-/watched" flag I planned to add a "recently added" flag to mediaitems. This would require exactly the filter you're talking about.
    I have asked this to devs without feedback in the past, so I gave up this plan.

    There are two possibilities to see recently added media items. Enter to "LatestMedia". In BlueVision themes you find it in "others" group.
    Also the "Homescreen" shows the lastest 5 MI by category.
     

    Lehmden

    Retired Team Member
  • Premium Supporter
  • December 17, 2010
    12,554
    3,936
    Lehmden
    Home Country
    Germany Germany
    Hi.
    I planned to add a "recently added" flag to mediaitems.
    Don't think it is necessary to add an extra flag for this. There already is a "Date Added" field in the DB that can be used for estimate if a movie (or any other media) is recently added to the library. And iirr there is an option to sort media items by this field, so you at least can show the most recent added movies on top of the list...
     

    ge2301

    Lead Design MP2
  • Team MediaPortal
  • January 11, 2014
    8,705
    3,491
    Stuttgart
    Home Country
    Germany Germany
    Don't think it is necessary to add an extra flag for this. There already is a "Date Added" field in the DB that can be used for estimate if a movie (or any other media) is recently added to the library. And iirr there is an option to sort media items by this field, so you at least can show the most recent added movies on top of the list...
    You could also filter for "un-/watched" and remove the flags for that. Aren't the flags better as additonal visual indication? :) A flag lets you directly see which MI's are lately added (of course with possibility in settings to deactivate flags). This is also done in all other HTPC softwares, so user coming over to MP2 might miss it.
    The "date added" info is available, but the comparison with the current code is not done and code is needed for that. Also it needs to be defined what means "new". there are 2 possibilities "mark the latest 5 MI" (as in Home and atestMedia) or define a time span (e.g. within 2 weeks).
     

    Lehmden

    Retired Team Member
  • Premium Supporter
  • December 17, 2010
    12,554
    3,936
    Lehmden
    Home Country
    Germany Germany
    We agree in the result, there should be a visible sign and a filter "for this new" in the GUI. Only the way to achieve this we have different opinions.

    You could also filter for "un-/watched" and remove the flags for that.
    Indeed there are no watched flags in MP2 so you can not remove them. To determine if a media item is watched the playcount is used. (0 means un-watched, 1 or more means watched). So it is the same as to use "Date added". MP2 and also MP2-Edit sets the playcount to 0 if the user marks an item as un-watched.

    Aren't the flags better as additonal visual indication?
    Not if you see it from a DB or Program "point of view". Indeed it is really difficult to modify a DB entry after a given time automatically. This will add a huge amount of extra DB work and for this will lower the performance. It is much better to calculate the recently added value from the "date added" field than to use an extra flag for this... For watched flags it would be easier a lot to have a separate toggle in the DB as this is time independent and has to be set by an action from the GUI (play an item or mark it manually...) But it is not necessary, so it isn't existing.

    The user won't notice the difference (he gets a note "this is new" or "this is not watched") but it's much better for the program if you use "date added".

    This is also done in all other HTPC softwares
    I don't believe this. I only can tell about MP1 and Kodi as I only had a closer look at their databases. Both also are using "date added" fields to calculate the "recently added" values...

    Also it needs to be defined what means "new".
    This best should be configurable by the user. For special cases like the home screen it can be a fixed value (5 in BV case) but as filter it should be up to the user how long "recently" should be...

    Later I will have a look if this filter is already existing and only hidden in the deeper menu structure or if it is not available. I'm not on my HTPC, so I can't have a look now. Nevertheless this should be not too hard to add...
     

    Lehmden

    Retired Team Member
  • Premium Supporter
  • December 17, 2010
    12,554
    3,936
    Lehmden
    Home Country
    Germany Germany
    With flag I mean only the visual indicator representing the result
    This only is a simple calculation and should be easy to achieve. I'm not able to code in C# but in the language I know (AutoIt3) this would be a single line of code.
    Code:
    If $dateadded > $today - 15 Then $recent = "1";
    Probably a few more if you want to make it configurable as in this example "recent" means in the last two weeks...
     

    ge2301

    Lead Design MP2
  • Team MediaPortal
  • January 11, 2014
    8,705
    3,491
    Stuttgart
    Home Country
    Germany Germany
    This only is a simple calculation and should be easy to achieve. I'm not able to code in C# but in the language I know (AutoIt3) this would be a single line of code.
    I could even program it in #C I believe :) But I have no idea about the header in #C and how things are connected.
    Would be nice beeing able to calculate this directly in xmal, with my proposed math converter it would be. Let's see.

    Probably a few more if you want to make it configurable as in this example "recent" means in the last two weeks...
    Yes, I think a user should even be able to define what "recent" means. I have 2 weeks in my head, because I added often movies. A person, who adds new movies every 2 month might have a different perception about it ;)
     

    Users who are viewing this thread

    Similar threads

    Hi, I'll move this into an own thread under "feature requests". I like the idea, but I think we can currently not implement this with further changes. I've checked the models and there are no variables, that could be easily called.
    Hi, I'll move this into an own thread under "feature requests". I like the idea, but I think we can currently not implement this...
    MP2 is great, but I‘d rely one change. I can have optional help texts, which are nice for a first time use, but then do not have...
    Replies
    1
    Views
    662
    Yes, unfortunately, this would need a code change to support it. Next time I'm doing something on the plugin I'll try and remember to add support for this sort order.
    Yes, unfortunately, this would need a code change to support it. Next time I'm doing something on the plugin I'll try and...
    Hi, I was wondering if there is anyone who might be able to help me out. Is there a way to either use the sort feature and/or a...
    Replies
    6
    Views
    823
    I have all of my media on a NAS. I guess it might just be a network issue, then.
    I have all of my media on a NAS. I guess it might just be a network issue, then.
    Whenever I go into the back end for Moving Pictures, it almost immediately hangs on the Movie Importer tab. If I want to go into...
    Replies
    4
    Views
    479
    There is an issue with missing #fanarthandler.movie.clearart.selected path value when MovingPictures loads a list of movies. When the movie is changed from the first item in the list, the value populates. I have a working solution to this issue and it requires an update to the Cornerstone.MP.Extensions project class...
    There is an issue with missing #fanarthandler.movie.clearart.selected path value when MovingPictures loads a list of movies. When...
    There is an issue with missing #fanarthandler.movie.clearart.selected path value when MovingPictures loads a list of movies. When...
    Replies
    0
    Views
    115
    Didn't know computers are available in Canada's jails... :p
    Didn't know computers are available in Canada's jails... :p
    Hi folks, basically I have this m3u list with links I am trying to scan with the TV configuration tool but all the channels even...
    Replies
    5
    Views
    665
    Top Bottom