INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Creating a Last viewed AND last scipped List  (Read 1795 times)

kimaru

  • Recent member
  • *
  • Posts: 6
Creating a Last viewed AND last scipped List
« on: September 25, 2012, 01:41:28 pm »

I think the number one feature of MC still is creating your own views. I usere it in many ways in my large collection of movieclips, which where created as footage for teaching movies.

I still try to create a special type of list, and I cant figure out how to set the sort algorithm for this:
  • I want to create a list of all movie files
  • I want files that I haven't viewed for a long time, and which I haven't skipped to be first
  • Files that I skipp while I view them and files that view should be put at the end of the list

I tried this:
  • I created a new fibrary field called LPS
  • I filled it with either last skipped or last played, depending on which value is higher >>> If(Field(Zuletzt übersprungen,0)>=Field(Zuletzt gespielt,0)),Field(Zuletzt übersprungen,0) ,Field(Zuletzt gespielt,0)
  • Then I tried to simply sort LPS

Seemed logical to me, but it didn't work.

So any Ideas how I can create this list correctly?

Thanks,

Kimaru
Logged

kimaru

  • Recent member
  • *
  • Posts: 6
Re: Creating a Last viewed AND last scipped List
« Reply #1 on: September 25, 2012, 02:57:31 pm »

Sorry, I forgot ;)

when exactly does MC set the last played date? on pressing play? on finished file? on pressing stop? And when exactiy does it set the last skipped date?

Thanks  :D
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Creating a Last viewed AND last scipped List
« Reply #2 on: September 26, 2012, 01:31:29 am »

How about something like this to force non-played/non-skipped values to sort first, and recently played/skipped items with their larger date values to sort later:

IfElse(
   isempty([Last Played,0][Last Skipped,0]),          0,
   compare([Last Played,0], >, [Last Skipped,0]),  [Last Played,0],
   1,                                                                   [Last Skipped,0]
)

I think Last Played is updated near the end of the track (along with [# plays]), or if the track has advanced past 50% of its duration, and [last skipped] is updated if the track is skipped when playback is < 50% of its duration.
Logged
The opinions I express represent my own folly.

kimaru

  • Recent member
  • *
  • Posts: 6
Re: Creating a Last viewed AND last scipped List
« Reply #3 on: September 26, 2012, 11:19:58 am »

Thank you very much for your quick answer :)

I tried this, but it doesn't seem to work as I expected it to.

It seems the problem is that MC doesnt update the last skipped and last played fields when I expected them to.

Is there a way to have a field update when play or skipp are pressed?

thank again :)
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Creating a Last viewed AND last scipped List
« Reply #4 on: September 26, 2012, 11:44:04 am »

Not that I'm aware of.  These stats are managed and set internally by MC.

They are clear-only stats (but workarounds allow a way to manually set a timestamp by editing the field via an expression).
Logged
The opinions I express represent my own folly.

kimaru

  • Recent member
  • *
  • Posts: 6
Re: Creating a Last viewed AND last scipped List
« Reply #5 on: September 26, 2012, 12:17:28 pm »

Thank you again :)

Can you please tell me how this works?
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Creating a Last viewed AND last scipped List
« Reply #6 on: September 26, 2012, 12:26:25 pm »

Here's a more complex thread that should explain it, as well as how to modify certain date/time fields:

   http://yabb.jriver.com/interact/index.php?topic=71968.0

and this is based on the simple workaround for changing some read-only fields:

   http://wiki.jriver.com/index.php/Changing_the_number_of_plays
Logged
The opinions I express represent my own folly.

kimaru

  • Recent member
  • *
  • Posts: 6
Re: Creating a Last viewed AND last scipped List
« Reply #7 on: September 26, 2012, 12:46:09 pm »

Thank you again,

I read this post, but I don't understand how it could help me.

I know how to create a new field and use expressions for it. This shouldn't be a problem.

I need a way to update this new field with the current timestamp, when play or skip is pressed.

I think the only problem is the exact update moment, because MC updates only after playing some while.

 :(
Logged
Pages: [1]   Go Up