INTERACT FORUM

Please login or register.

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

Author Topic: How-to: Expression to display Episode No. + Episode Name ?  (Read 931 times)

Manfred

  • Citizen of the Universe
  • *****
  • Posts: 1023
How-to: Expression to display Episode No. + Episode Name ?
« on: March 10, 2019, 04:41:27 am »

I have created the following expression to display Episode No. + Episode Name :

[Episode,1]: - [Name,1]

I expected the following e.g. 1 - Snow if the Episode Name is Snow. Only Snow is displayed in Standard View.

So what's wrong?

Thank you very much!
Logged
WS (AMD Ryzen 7 5700G, 32 GB DDR4-3200, 2x2 TB SDD, LG 34UC98-W)-USB|ADI-2 DAC FS|Canton AM5 - File Server (i3-3.9 GHz, 16GB ECC DDR4-2400, 46 TB disk space) - Media Renderer (i3-3.8 GHz, 8GB DDR4-2133, GTX 960)-USB|Devialet D220 Pro|Audeze LCD 2|B&W 804S|LG 4K OLED )

marko

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 8939
Re: How-to: Expression to display Episode No. + Episode Name ?
« Reply #1 on: March 10, 2019, 04:53:11 am »

I have no idea. I copied your expression and used it to make a column, and it's working as expected (see attached image).

Whereabouts in standard view have you used your expression?

Manfred

  • Citizen of the Universe
  • *****
  • Posts: 1023
Re: How-to: Expression to display Episode No. + Episode Name ?
« Reply #2 on: March 10, 2019, 04:57:39 am »

My Thumbnails look like that:
Logged
WS (AMD Ryzen 7 5700G, 32 GB DDR4-3200, 2x2 TB SDD, LG 34UC98-W)-USB|ADI-2 DAC FS|Canton AM5 - File Server (i3-3.9 GHz, 16GB ECC DDR4-2400, 46 TB disk space) - Media Renderer (i3-3.8 GHz, 8GB DDR4-2133, GTX 960)-USB|Devialet D220 Pro|Audeze LCD 2|B&W 804S|LG 4K OLED )

Manfred

  • Citizen of the Universe
  • *****
  • Posts: 1023
Re: How-to: Expression to display Episode No. + Episode Name ?
« Reply #3 on: March 10, 2019, 05:14:34 am »

I think I got it?

If you introduced a new expression column you can use it not in Customize View you must then introduce a new field which uses the expression. Is this correct?

This for me seems to be only valid for Standard View , for Theatre View and JRemote it is different. Is this correct?
Logged
WS (AMD Ryzen 7 5700G, 32 GB DDR4-3200, 2x2 TB SDD, LG 34UC98-W)-USB|ADI-2 DAC FS|Canton AM5 - File Server (i3-3.9 GHz, 16GB ECC DDR4-2400, 46 TB disk space) - Media Renderer (i3-3.8 GHz, 8GB DDR4-2133, GTX 960)-USB|Devialet D220 Pro|Audeze LCD 2|B&W 804S|LG 4K OLED )

marko

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 8939
Re: How-to: Expression to display Episode No. + Episode Name ?
« Reply #4 on: March 10, 2019, 09:28:14 am »

I can't test, but yes, adding an expression based library field should work too.
This would be your preferred option if you want the field available to reference in several places because it's just easier that way, and saves you from having to remember the expression.

I would still expect the expression to work directly in thumbnail text though, and will test when I get a chance.

-marko

blgentry

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 8009
Re: How-to: Expression to display Episode No. + Episode Name ?
« Reply #5 on: March 10, 2019, 05:28:06 pm »

In my TV series view,  I use this expression for the thumbnail text:

Code: [Select]
[Season]-[Episode] - [Name] if(isempty([Track #]),,/[[Track #]/])
[Watched Percent] [Plays]

It shows all of the information correctly.  My view is a Panes view.  A Categories view can have some unusual handling of certain things.  I don't have the energy to test it right now, but that might be the difference.  Maybe.

Brian.
Logged
Pages: [1]   Go Up