Rename series from epg data (1 Viewer)

RICHARDG

Portal Pro
August 21, 2006
333
3
64
Canada
Surfermc..
how did you pull this data from a recording.
I don't see xml files being created when I do a recording, so I am curious where or how you got it.
Let me know if you can please.
Its very interesting
 

surfermc

Portal Pro
May 7, 2006
369
17
Dorset
Home Country
England England
RickG

I extracted the information
For The Record writes this XML information too, but it stores it inside the file. You can view this information using notepad:

Notepad.exe "filename.ts:ForTheRecord.xml"

I then save the information from notepad.

There is more info on the 4TR forum and a bit more here.
 

RICHARDG

Portal Pro
August 21, 2006
333
3
64
Canada
sorry but I have read and re read the stuff you sent me.
But I can't make heads or tails of it.
Are you saying that the XML data is stored with in the .ts file itself.
Or is there a speperate xml file that 4tr creates, if so. I hav eno idea where its stored. I keep looking but no luck so far.
 

surfermc

Portal Pro
May 7, 2006
369
17
Dorset
Home Country
England England
@Rickyg

The .xml file is stored as an alternate data stream within the .ts file. To view the stream
  1. Open a command prompt Start >Run type cmd, press Enter
  2. Navigate to the location of your recorded programmes eg. E:\Recordings\Torchwood Children of Earth
  3. At the command prompt type eg.
    Code:
    notepad.exe "Torchwood Children of Earth (Day One - 15)_BBC ONE_2009-07-06_21-00.ts:Fortherecord.xml"
  4. Notepad will open with the xml content.

Hope that helps.
 

jca

Portal Member
October 26, 2007
24
0
Amager
Home Country
Denmark Denmark
This is very nice. hoping for support from FTR to include episode numbering.
i have in my xml:
<episode-num system="onscreen">157</episode-num>
where the episode number is 157, this does not get picked up by your program sadly.
 

testimies

Portal Pro
October 12, 2007
62
3
Espoo
Home Country
Finland Finland
Hi jca,

I'm working with a version that works with your epg data also. I have originally made this to get those data (episode name/number, season number, overview) from description field as they are in Finland. Our epg data has only 2 fields, title and description.

Is that episode number correct? I have looked at Rickyg's epg data (it has episode-num field also) and it seems that it isn't always correct.
 

jca

Portal Member
October 26, 2007
24
0
Amager
Home Country
Denmark Denmark
Hi testimies, that sounds great,

Im not sure if the numbers fit, is there a formula to calculate season?
i have 2 types of numbering in my xml:
<episode-num system="onscreen">274:291</episode-num>
<episode-num system="onscreen">157</episode-num>

i will gladly send you my xml file if it can help :)
 

RICHARDG

Portal Pro
August 21, 2006
333
3
64
Canada
than ks for the information Surfermc.
Once I woke up and reaqlized what you where trying to tell me, I was able to spend a couple hours lat night and write a simple app that reads the hidden xml data, parse it and then does a look up against the tvdb.com for the season and episode data to rename the file.
I have some clean up to do, but it does what I am after...so thanks
 

testimies

Portal Pro
October 12, 2007
62
3
Espoo
Home Country
Finland Finland
:eek: You're fast..

I have also made some modifications to support epg data with subtitle field. How did you make the match? With title & subtitle? I left that episode number field out because some times it seemed to be wrong..

If someone has time to check if this works, please do. If it doesn't work, let me know.
 

Users who are viewing this thread

Top Bottom