3 #include <QCoreApplication>
9 #include <libbluray/meta_data.h>
11 #include "libbluray/bdnav/meta_data.h"
26 QString keyfile = QString(
"%1/KEYDB.cfg").arg(
GetConfDir());
27 QByteArray keyarray = keyfile.toLatin1();
28 const char *keyfilepath = keyarray.data();
40 const meta_dl *metadata = bd_get_meta(
m_bdnav);
44 m_title = QString(metadata->di_name);
45 m_alttitle = QString(metadata->di_alternative);
50 for (
unsigned i = 0; i < metadata->toc_count; i++)
52 uint num = metadata->toc_entries[i].title_number;
53 QString title = QString(metadata->toc_entries[i].title_name);
54 QPair<uint,QString> ret(num,title);
58 for (
unsigned i = 0; i < metadata->thumb_count; i++)
60 QString filepath = QString(
"%1/BDMV/META/DL/%2")
61 .arg(
m_path, metadata->thumbnails[i].path);
66 const BLURAY_DISC_INFO *discinfo = bd_get_disc_info(
m_bdnav);
91 metadataMap[
"discnumber"] = QString::number(
m_discnumber);
92 metadataMap[
"disctotal"] = QString::number(
m_disctotal);
95 metadataMap[
"discseries"] = QCoreApplication::translate(
"(Common)",
100 metadataMap[
"numtitles"] = QString::number(
m_titles.count());
101 metadataMap[
"numthumbs"] = QString::number(
m_images.count());