2004-09-22, 11:08
hi, i have decided to go ahead and try implementing a patch for the -cdn stacking schema (like in xbmp). this has been requested in a few threads on the features forum, such as this one.
i've already made a good chunk of the necessary code modifications, and i believe i can have it cleaned up and ready to submit by the end of the week.
the functionality i have in mind includes the following:
* new option under settings to select stacking style : "fuzzy" or "simple" - default to "fuzzy"
* logic in the stacking logic (cguiwindowvideo::update) to branch for fuzzy or simple stacking, using logic for "-cdn" matching in the case of simple stacking, and working essentially as it did before in the case of fuzzy.
* logic in the display of file names to strip out the "-cdn" extensions in the case that simple stacking is turned on.
* logic in the video selection code (cguiwindowvideo::onclick) to handle the stacking mode and correctly get the appropriate list of stacked files.
* if i get really ambitious, an additional "clean video file names" option, with cleaning logic similar to what existed in xbmp. this will remove extensions at the end of the file, such as " - xvid_ac3_polo", and will also clean up things like recognizing files where '.' or '_' has been used instead of ' '.
if anyone has already started working on this, or if there is anything in particular i should know before proceeding, please let me know. thanks!
i've already made a good chunk of the necessary code modifications, and i believe i can have it cleaned up and ready to submit by the end of the week.
the functionality i have in mind includes the following:
* new option under settings to select stacking style : "fuzzy" or "simple" - default to "fuzzy"
* logic in the stacking logic (cguiwindowvideo::update) to branch for fuzzy or simple stacking, using logic for "-cdn" matching in the case of simple stacking, and working essentially as it did before in the case of fuzzy.
* logic in the display of file names to strip out the "-cdn" extensions in the case that simple stacking is turned on.
* logic in the video selection code (cguiwindowvideo::onclick) to handle the stacking mode and correctly get the appropriate list of stacked files.
* if i get really ambitious, an additional "clean video file names" option, with cleaning logic similar to what existed in xbmp. this will remove extensions at the end of the file, such as " - xvid_ac3_polo", and will also clean up things like recognizing files where '.' or '_' has been used instead of ' '.
if anyone has already started working on this, or if there is anything in particular i should know before proceeding, please let me know. thanks!
![Cool Cool](https://forum.kodi.tv/images/smilies/cool.png)