Metadata: from *.ts to xml (1 Viewer)

bmt

Portal Member
February 17, 2010
23
0
Home Country
Germany Germany
Hi everyone,

I'm trying to understand how the MP gets the metadata (e.g. genre) out of a transport stream into a xml file.

This is what I've got:
- with #TV.RecordedTV.Genre in a xml-file the genre is shown
- Class GUIPropertyManager holds _properties["#TV.RecordedTV.Genre"] = string.Empty;
- TvRecorded.cs sets the properties in SetProperty() >> GUIPropertyManager.SetProperty("#TV.RecordedTV.Genre", rec.Genre)
- rec.Genre belongs to Recording.cs which creates the table Recording with the coloumn genre
Did I get it right?

This is what I miss:
- primary: the point where the table gets filled with data
- secondary: the point where the xml-file gets teached where to look up for #TV.RecordedTV.Genre

I would be grateful for any hint...
 

arion_p

Retired Team Member
  • Premium Supporter
  • February 7, 2007
    3,373
    1,626
    Athens
    Home Country
    Greece Greece
    EPG grabber (DVB, WebEPG, xmltv, TV Movie etc) fills the Program table. When a recording is made, apart from writing the .ts file, an new row is added in Recording using data from the Program that the schedule was base upon. Then the data is also saved in an xml file so that it is possible to later import the recording back into database if you reinstall and the database gets deleted. Otherwise the xml file is not used.

    The properties as you already discovered are set by reading the Recording table.
     

    Users who are viewing this thread

    Top Bottom