简体   繁体   English

有什么方法可以从Cling-DIDLContent-容器中获取上次修改日期?

[英]Is there any way that we can get last modified date from Cling - DIDLContent - containers?

I can list out all the Media servers and then browse folders/directories, videos etc using cling but could't find a way to get last modified date of containers. 我可以列出所有媒体服务器,然后使用cling浏览文件夹/目录,视频等,但是找不到获取容器上次修改日期的方法。 Is there any way to get the same? 有什么办法可以得到相同的? I don't think that Cling does provide it. 我不认为Cling确实提供了它。

As of now the answer would be no. 到目前为止,答案是否定的。 Cling library doesn't provide last modified date with the metadata for containers but they do provide the same for items. Cling库不提供容器元数据的上次修改日期,但确实为项目提供相同的日期。 Below is the snippet that retrieves date modified for items from the abstract class Property. 以下是从抽象类Property检索为项目修改的日期的代码段。

for (DIDLObject.Property property : container.getProperties()) { if (property != null && property.getDescriptorName().equals("date")) { String dateModified = property.getValue().toString(); if(!TextUtils.isEmpty(dateModified)){ folder.setDate(dateModified); } } }

I remember there has not contain last modified date in the metadata. 我记得元数据中没有包含上次修改日期。 If you already get the DIDLContent then you can try Item->Res. 如果您已经获得DIDLContent,则可以尝试Item-> Res。 The detail info defines in the Res class. 详细信息在Res类中定义。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM