home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Support
General Support
Manually sort stacks
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="BennTech" data-source="post: 1041994" data-attributes="member: 67104"><p>I'm looking for a way to manually sort stacks. Sorting movies based on file name, e.g., movie.cd1.avi and movie.cd1.avi, works fine. However, I have some movies where I ripped the extras, which I usually keep in an Extras subfolder. When I add these extras to the movie, the files are played alphabetically, which may not be the desired order.</p><p></p><p>I know most of you will just say to rename the files, but that gets messy. For example, if I have "Movie.avi", I obviously have to rename all my other files to start with "Movie". Then what? If I make them something like "Movie - Deleted Scene 1.avi", the space sorts before the period ("Movie - ..." sorts before "Movie.avi"), so that won't work. Guess I'll have to name it "Movie.Deleted Scene 1.avi", but if my movie is "Movie.mkv", that still won't work because "Movie.Del..." sorts before "Movie.mkv". Ugh! WTF? Why can't I just tell MP how I want them sorted?</p><p></p><p>Anybody know of a way to do this without the messy filenaming?[DOUBLEPOST=1385087915][/DOUBLEPOST]IMHO, the best way to do this is to let the user specify the ordering in <em>MediaPortal Configuration > Videos > Video Database > Editor > Files</em> via some up & down buttons. Internally, this would require a new index to maintain the user-defined order. I haven't looked at the code, but I did poke around in VideoDatabaseV5.db3. Looks like the table <em>files</em> would need a new column, e.g., <em>iOrder</em>, to keep track of stack ordering. Then MediaPortal itself would need to load this and use it to sort stacks. For backwards compatibility, if this field is blank, just sort using the traditional method (alphabetically). Seems like a relatively easy change, although it would require database modification. Would adding a single column to a table change the entire database to a new version, e.g., VideoDatabaseV6.db3? I dunno...MP developers?</p><p></p><p>And FYI, I have this working in XBMC with a crappy hack. In the XBMC video database, stacks are stored in a comma-delimited string in the form: "stack://X:\path\movie.cd1.avi , X:\path\movie.cd2.avi". I just edit the field and arrange the filenames how I want them (and even stack across directories which XBMC doesn't normally allow). Tedious and not for the average user. (Note XBMC's space then comma then space delimiter. This would likely never occur in a movie filename, but *could* and thus break stacking. In contrast, the MediaPortal's <em>files</em> table is a much better design, but unfortunately currently lacks any method for user-defined sorting.)</p><p></p><p><strong>Anybody interested in user-defined stack sorting?</strong> Speak now! (BTW, I could probably help with the development...and while I'm there fix the damn tab ordering on those editor screens.)</p></blockquote><p></p>
[QUOTE="BennTech, post: 1041994, member: 67104"] I'm looking for a way to manually sort stacks. Sorting movies based on file name, e.g., movie.cd1.avi and movie.cd1.avi, works fine. However, I have some movies where I ripped the extras, which I usually keep in an Extras subfolder. When I add these extras to the movie, the files are played alphabetically, which may not be the desired order. I know most of you will just say to rename the files, but that gets messy. For example, if I have "Movie.avi", I obviously have to rename all my other files to start with "Movie". Then what? If I make them something like "Movie - Deleted Scene 1.avi", the space sorts before the period ("Movie - ..." sorts before "Movie.avi"), so that won't work. Guess I'll have to name it "Movie.Deleted Scene 1.avi", but if my movie is "Movie.mkv", that still won't work because "Movie.Del..." sorts before "Movie.mkv". Ugh! WTF? Why can't I just tell MP how I want them sorted? Anybody know of a way to do this without the messy filenaming?[DOUBLEPOST=1385087915][/DOUBLEPOST]IMHO, the best way to do this is to let the user specify the ordering in [I]MediaPortal Configuration > Videos > Video Database > Editor > Files[/I] via some up & down buttons. Internally, this would require a new index to maintain the user-defined order. I haven't looked at the code, but I did poke around in VideoDatabaseV5.db3. Looks like the table [I]files[/I] would need a new column, e.g., [I]iOrder[/I], to keep track of stack ordering. Then MediaPortal itself would need to load this and use it to sort stacks. For backwards compatibility, if this field is blank, just sort using the traditional method (alphabetically). Seems like a relatively easy change, although it would require database modification. Would adding a single column to a table change the entire database to a new version, e.g., VideoDatabaseV6.db3? I dunno...MP developers? And FYI, I have this working in XBMC with a crappy hack. In the XBMC video database, stacks are stored in a comma-delimited string in the form: "stack://X:\path\movie.cd1.avi , X:\path\movie.cd2.avi". I just edit the field and arrange the filenames how I want them (and even stack across directories which XBMC doesn't normally allow). Tedious and not for the average user. (Note XBMC's space then comma then space delimiter. This would likely never occur in a movie filename, but *could* and thus break stacking. In contrast, the MediaPortal's [I]files[/I] table is a much better design, but unfortunately currently lacks any method for user-defined sorting.) [B]Anybody interested in user-defined stack sorting?[/B] Speak now! (BTW, I could probably help with the development...and while I'm there fix the damn tab ordering on those editor screens.) [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
General Support
Manually sort stacks
Contact us
RSS
Top
Bottom