Page 1 of 1

Disc Titles

Posted: Fri Mar 25, 2016 8:03 pm
by t11chb
Hi, hopefully the author sees this and can implement.
I rip a lot of Bluray TV shows and matching up Episode names was a nightmare until i found the info inside BDMV\META\DL\bdmt_eng.xml

It's not there in every disc but maybe somewhere else. Would be great to know the Episode name and rip the track as that name.

<?xml version="1.0" encoding="UTF-8"?>
-<disclib xmlns="urn:BDA:bdmv;disclib">
-<di:discinfo xmlns:di="urn:BDA:bdmv;discinfo">
-<di:title>
<di:name>Justified: Season 1: Disc 1</di:name>
<di:numSets>1</di:numSets>
<di:setNumber>1</di:setNumber>
</di:title>
-<di:description>
-<di:tableOfContents>
<di:titleName titleNumber="1">Java Menus</di:titleName>
<di:titleName titleNumber="2">Ep 100 Fire</di:titleName>
<di:titleName titleNumber="3">Ep101 RiverBrook</di:titleName>
<di:titleName titleNumber="4">Ep108 Fixer</di:titleName>
<di:titleName titleNumber="5">Ep104 Long</di:titleName>
<di:titleName titleNumber="6">Ep102 Lord</di:titleName>
<di:titleName titleNumber="10">Jump To 1000</di:titleName>
<di:titleName titleNumber="21">BDJO MovieIQ</di:titleName>
<di:titleName titleNumber="50">Parental Warning</di:titleName>
<di:titleName titleNumber="51">Region Code Warning</di:titleName>
<di:titleName titleNumber="200">BDLive Portal</di:titleName>
<di:titleName titleNumber="201">BDLive Portal</di:titleName>
<di:titleName titleNumber="301">BDLive Portal</di:titleName>
<di:titleName titleNumber="401">BDLive Portal</di:titleName>
<di:titleName titleNumber="402">BDLive Browser</di:titleName>
<di:titleName titleNumber="500">dummy_cps_4</di:titleName>
</di:tableOfContents>
<di:thumbnail href="just_small_jp24.jpg"/>
<di:thumbnail href="just_large_jp24.jpg"/>
</di:description>
<di:language>eng</di:language>
</di:discinfo>
</disclib>

Re: Disc Titles

Posted: Sun Jul 31, 2016 4:26 pm
by Condor93
Hi, we know each other from kat, can u contact me?

Condor

Re: Disc Titles

Posted: Mon Aug 01, 2016 1:25 am
by cpare
Why don't you just parse this out and make it part of an array? Then as you loop through each track you can rename them as you're working...

I would start by parsing for only the lines with titlename in them, and then trimming them on the > before the name, and the < after the name. Once you have that done, feed it into an array and you're good to go.

http://tldp.org/LDP/abs/html/string-manipulation.html