[19. April 2013] A-400 Advanced Network Setup now available | [11 Jan. 2013] Customize your A-400 Home Screen

Firmware: A-400 [13 May 2013] | C-300 [30 Nov. 2012] | A-300 [30 Nov. 2012] | C-200 [21 Jan. 2013] | A-200/A-210 [10 Aug. 2012]

Just got your NMT | WIKI has the answers | Search the forum | Forum Rules/Policy | Firmware & Official NMT News | Popcornhour manuals



User(s) browsing this thread: 1 Guest(s)
Post Reply 
[FLASH SKIN] Naming conventions for bonus/extra features
03-04-2012, 09:07 PM
Post: #1
Naming conventions for bonus/extra features
I'm trying to find the best naming convention for bonus/extra features for Eversion.

In the 5150 HTML skin I used to use:
feature name.[01.Bonus-first bonus feature name].extension
feature name.[02.Bonus-second bonus feature name].extension

This worked well as 5150 would recognise the Bonus- in the brackets and treat the file as a bonus feature, would also sort on the filenames alphabetically so I got them in the numerical order I'd specified, but also only display the name after Bonus-, so my bonus features would be listed as:
first bonus feature
second bonus feature

The same naming in Eversion (with evstreamed) works fine, sorts correctly, but displays:
01.Bonus-first bonus feature name
02.Bonus-second bonus feature name

Is there a way of hiding everything up to and including the hyphen at the end of Bonus-? I've tried not having the numbering in there in case this was tripping it up but it still displays Bonus-bonus feature name in each case.

Thoughts on Syabas support? Share them here
Find all posts by this user
Add Thank You Quote this message in a reply
03-04-2012, 09:17 PM
Post: #2
RE: Naming conventions for bonus/extra features
The properties has keywords for what is an extra, I'm pretty sure 01.Bonus is not one of them.
Find all posts by this user
Add Thank You Quote this message in a reply
03-05-2012, 12:04 AM
Post: #3
RE: Naming conventions for bonus/extra features
It finds them as extras even with the digits. Without the digits to force the sort order it still does but it displays the extras as 'Bonus-bonus feature name' whereas it would look neater (especially with the limited screen real estate) if it displayed them as 'bonus feature name', i.e. with the leading Bonus- trimmed off.

I've not found a way of doing this yet but it could just be down to how I'm naming the files.

Thoughts on Syabas support? Share them here
Find all posts by this user
Add Thank You Quote this message in a reply
03-05-2012, 02:31 AM
Post: #4
RE: Naming conventions for bonus/extra features
you can use a condition to look for the title containing Bonus- and then use variable modifiers to cut off the front of it.

this is not exact but it's something like:
PHP Code:
<tile>
  <
text>
    <
condition>[:title:] contains .Bonus-</condition>
    <
display>[:title,slice9:]</display>
  <
text>
</
tile

hmm although I see something lacking here, there's no option to say does not contain bonus to have an alternative just show it option.
Find all posts by this user
Add Thank You Quote this message in a reply
03-05-2012, 06:41 AM
Post: #5
RE: Naming conventions for bonus/extra features
Cool, I'll have a play with that. I just wanted to know if I was missing something in how I was naming the files since every skin handles the naming slightly differently, but that will do fine for what I want to achieve. That would also still allow me to sort them into a specific order which is useful when you've got a Rolling Stones box with over 20 extra features!

On a vaguely related note, are you accepting feature requests or is it on hold while you work on the dentedboxes project?

Reason is, and this is only a minor cosmetic issue, when you've got multi-part features and press enter the list of parts doesn't have the nice looking blue cursor that the extras and TV series episodes do. I'm sure I can look at the skin code myself but it would be nice to carry this part of the theme across all the scroll lists for the sake of uniformity.

Thoughts on Syabas support? Share them here
Find all posts by this user
Add Thank You Quote this message in a reply
03-06-2012, 06:06 AM
Post: #6
RE: Naming conventions for bonus/extra features
(03-05-2012 06:41 AM)plm Wrote:  is it on hold while you work on the dentedboxes project?

It's actually the opposite and dentedboxes went on hold. Gaya wasn't going to work and before I gave up on the popcorn hours I decided to give back to yamj and help out skinners by looking at the flash ui.

Quote:are you accepting feature requests

If there's bugs that need to be fixed like playback bugs, new firmwares breaking something I'll get involved in. I've been doing that for the last 7 months already and since I need to host a new download I tend to throw in fast other fixes if i have a few moments and it's safe to do that.

Also it's open sourced. I haven't heard of anyone playing with it to take it further. I'd post them.. now the best place so they don't get lost?? perhaps the db forum in the request section or maybe the issues on the github? then someone new could see some things to try to add to learn how eversion itself works.

Quote:Reason is, and this is only a minor cosmetic issue, when you've got multi-part features and press enter the list of parts doesn't have the nice looking blue cursor that the extras and TV series episodes do. I'm sure I can look at the skin code myself but it would be nice to carry this part of the theme across all the scroll lists for the sake of uniformity.

it took you longer to post what you want then it would have taken for you to customize the eskin to your liking.
Find all posts by this user
Add Thank You Quote this message in a reply
03-06-2012, 07:54 AM
Post: #7
RE: Naming conventions for bonus/extra features
(03-06-2012 06:06 AM)accident Wrote:  it took you longer to post what you want then it would have taken for you to customize the eskin to your liking.

Almost, but then it wouldn't benefit anybody else if it were just for me!

Anyway, I've found a minor stumbling point. [:@media:] in /shared/code/mpart.eskin doesn't point to the media within the skin itself but rather to the eversion shared media from what I can test by displaying it. Is there a variable that points to the media within the skin I can use in this file, since I don't want to hard-code paths, or do I need to copy the image files to the global shared path?

Thoughts on Syabas support? Share them here
Find all posts by this user
Add Thank You Quote this message in a reply
03-06-2012, 08:08 AM (This post was last modified: 03-06-2012 08:10 AM by accident.)
Post: #8
RE: Naming conventions for bonus/extra features
copy the eskin file to your version of the eskin.
in load.eskin add an mpart to add your filename to the list of valid options
add a systemMPART eskin setting pointed at your version of the file

this is my last post in this no longer on topic thread.
Find all posts by this user
Add Thank You Quote this message in a reply
[+] 1 user says Thank You to accident for this post
03-06-2012, 10:08 PM
Post: #9
RE: Naming conventions for bonus/extra features
(03-05-2012 02:31 AM)accident Wrote:  you can use a condition to look for the title containing Bonus- and then use variable modifiers to cut off the front of it.

this is not exact but it's something like:
PHP Code:
<tile>
  <
text>
    <
condition>[:title:] contains .Bonus-</condition>
    <
display>[:title,slice9:]</display>
  <
text>
</
tile

hmm although I see something lacking here, there's no option to say does not contain bonus to have an alternative just show it option.

I've been playing with a few variants around this and keep coming unstuck whenever I try to add a catch-all for strangely-named extras.

Could you maybe consider adding !contains, !startswith and !endswith operators at some point? I think with the combination of these and the ++ operators you'd be able to do everything that an 'else' statement would achieve without the complexity of adding if... then... else... type structures. From looking at the list of operators available I think these would allow for all eventualities.

You'd then use contains and || for finding matches, and !contains and ++ for finding everything else.

Thoughts on Syabas support? Share them here
Find all posts by this user
Add Thank You Quote this message in a reply
03-06-2012, 10:14 PM
Post: #10
RE: Naming conventions for bonus/extra features
Doesn't yamj split the title out when configured correctly and you add your custom extra tags to the properties? I don't see a reason to slow everyone down because your not configuring yamj right for your custom naming.
Find all posts by this user
Add Thank You Quote this message in a reply
03-06-2012, 10:31 PM
Post: #11
RE: Naming conventions for bonus/extra features
I do have YAMJ configured correctly.

If you name the bonus feature featurename.[Bonus-bonus feature name].extension then evstreamed will display it as:
Bonus-bonus feature name

If you name the bonus feature featurename.[01.Bonus-bonus feature name].extension then evstreamed will display it as:
01.Bonus-bonus feature name

This second case isn't documented but allows you to sort them into a specific order, which I think is useful, but others won't necessarily.

Regardless, the display is 'Bonus-name', whereas I just want to see 'name'. That problem exists whether I use the default naming or take advantage of the undocumented feature I found.

I can ensure that all my files are correctly named and just match by using a combination of slice, cut and contains but you said yourself that this doesn't allow for a catch-all condition and over on dentedboxes people have already been asking for the possibility of an else operator, so there's clearly a desire to be able to do more complicated logic and not just by me.

Would adding these additional operators to the code slow it down for everybody, or only when you're using them? If it's only when you're using them then that's fine by me since this would only be when generating the list of extras for those few features that have them, but I wouldn't want to compromise performance for everybody.

But, looking at the operators available, I believe that you could avoid the need for an else condition altogether by adding the negation operators for those few that don't have them.

Thoughts on Syabas support? Share them here
Find all posts by this user
Add Thank You Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Banner image naming for TV Shows? robwired 4 372 04-09-2013 08:31 AM
Last Post: Omertron
  [TOOL] TOMY - odd drive naming behavior Temujin 10 489 03-11-2013 02:00 AM
Last Post: Temujin
Question [YAMJ] USB Drive naming - how does the PCH decide? Temujin 8 525 02-23-2013 08:35 PM
Last Post: accident
  [YAMJ] Tv Series DVD with bonus disks eightieslad 2 342 02-16-2013 10:10 AM
Last Post: eightieslad
  Television Series Naming For BDMV Elvispookie 4 372 01-11-2013 10:25 PM
Last Post: accident
  Naming for different versions of same movie wgstarks 9 601 01-06-2013 08:14 PM
Last Post: wgstarks
  Attached bonus features in sets? wgstarks 2 253 12-29-2012 06:49 PM
Last Post: wgstarks
  [YAMJ] TV-show artwork naming and location Tsunamijhoe 0 253 12-25-2012 04:07 PM
Last Post: Tsunamijhoe
  [YAMJ] Naming conventions wryker 5 440 12-21-2012 09:24 PM
Last Post: wryker
  BDMV naming questions wgstarks 2 295 12-21-2012 02:47 PM
Last Post: wgstarks

Forum Jump: