Author Topic: Possibility to use any variables in Media Scenario fields  (Read 2446 times)

jeangot

  • Guru
  • ****
  • Posts: 233
    • View Profile
Possibility to use any variables in Media Scenario fields
« on: July 11, 2008, 07:55:29 am »
Hello,

I was wondering if we have access to any system variables or specific LMCE variable in the various fields of a Media Scenario, in particular in the filename field?
I have a stream for which I have created a media scenario, and the filename (on the internet) changes every day according to the current date like this:
http://sdmc.contents.edgestreams.net/horsgv/regions/siege/infos/f2/13h/HD_13h_20080710.wmv

Is there any way for me to use any variables like:

http://sdmc.contents.edgestreams.net/horsgv/regions/siege/infos/f2/13h/HD_13h_\$YEAR\$MONTH\$DAY.wmv or something like that?

If not I will simply change the filename in the database using a cron job, but I figured it was worth asking first.

Jean

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5549
  • DOES work for LinuxMCE.
    • View Profile
Re: Possibility to use any variables in Media Scenario fields
« Reply #1 on: July 11, 2008, 07:59:05 pm »
You can do variable substitutions on certain fields in Orbiter. You can try to do it in the filename field. To see what you have access to, grep Orbiter.cpp for "NPDT" .. and that should put you smack dab in the middle of the switch() for variable substitutions.

-Thom