https://bugs.contribs.org/show_bug.cgi?id=10712
Bug ID: 10712
Summary: NFR: do not display full path
Classification: Contribs
Product: SME Contribs
Version: 9.2
Hardware: ---
OS: ---
Status: CONFIRMED
Severity: normal
Priority: P3
Component: smeserver-mediatomb
Assignee: te...@pialasse.com
Reporter: te...@pialasse.com
QA Contact: contribteam@lists.contribs.org
Target Milestone: ---
here a way to do this :
https://wiki.archlinux.org/index.php/MediaTomb
function addVideo(obj)
{
var video_root = "/media/main_core/Server_Core_Folder/FTP_Services/Media/";
var absolute_path = obj.location;
var relative_path = absolute_path;
if(absolute_path.indexOf(video_root) == 0)
relative_path = absolute_path.replace(video_root, "")
var chain = new Array();
var pathSplit = relative_path.split("/");
for(var i = 0; i < pathSplit.length - 1; i++)
chain.push(pathSplit[i]);
addCdsObject(obj, createContainerChain(chain));
}
need to replace the script
/usr/share/mediatomb/js/import.js
or simply have a copy updated and alter the reference in config.xml
--
You are receiving this mail because:
You are the QA Contact for the bug.
_______________________________________________
Mail for each SME Contribs bug report
To unsubscribe, e-mail contribteam-unsubscr...@lists.contribs.org
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/