Reply to thread

Explanation about   mc2xml


Installed in "C:\Program Files\mc2xml"

Create a batch command mc2xml.cmd

Why?

-c fr = france

-g 1000 = Postalcode (not specific)

-a               append " *" to new programs

-A               append " *" to live programs

-D <filename>    set dat filename (default = "mc2xml.dat") here 2 different ones

-o <filename>    set output file  (default = "xmltv.xml")

-I <xmltv file>  include <xmltv file> in output


How to get "mc2xml.dat"  information

delete "mc2xml.dat"  if exist or it launch without interactive process and use dat config

When launching "mc2xml.exe -c fr -g 10000" - you get

  1. 1st popup window to confirm (Service, Options, P/Z code & Country Code)
  2. 2nd popup window "Lineup Selection" with a list of (for me 20 lineup) You must choose ONE and only one
  3.   and it create a "mc2xml.dat" withe the referencing parameter for this choice

Ex: if i choose "Atlantic Bird 3  (AB3)" lineup =  I get in the "mc2xml.dat"  : 2 lines



Now, i can rename "mc2xml.dat" in "AB3.dat" and use it later like in :

"mc2xml.exe -c fr -g 10000 -a -A -D ab3.dat -o tvguide_ab3.xml"


If i want more than one Lineup OR channel coming from multiple lineups

Sol1 - Concatenate successive mc2xml.exe 2 lineups "9 Freebox V (CAB)  + 16 TNT (TER)"


  1. i proceed twice to obtain the "mc2xml.dat"  that i rename as freebox.dat and "tnt.dat"
  2.   in ".cmd" mc2xml.exe -c fr -g 10000 -a -A -L -D freebox.dat -o tvguide_tmp.xml = Obtain Guide data for the Freebox lineup & save in tvguide_tmp.xml
  3.   in ".cmd" mc2xml.exe -c fr -g 10000 -a -A -L -D tnt.dat -I tvguide_tmp.xml -o tvguide.xml = Obtain Guide data for the Tnt lineup & include the tvguide_tmp.xml & save the all in tvguide.xml


 .. so on . you can combine multiple lineups .. lineup are interesting because it's a simple file download (very speed) because those lineups are produced and stored oon the mc2xml microsoft servers


Sol2 - use a list of channel you want and put them in 



You can choose for the ".chl" name

  • "mc2xml.chl"  by default 
  • use (-C <filename>) to set channel specific file (The default = "mc2xml.chl")


How to know the information needed

(1) look inside the output of "mc2xml.exe" in "tvguide.xml" - you will find something like :


The <channel id="I2.751945.microsoft.com"> is the one to put inside your "mc2xml.chl"


(2) With For The Record " Management Console / Administration  / Guide Channel " 

- "External ID" = <channel id="I2.751945.microsoft.com">

- "Guide channel Name" = <display-name>2 ARTE</display-name>


Extract from Database to produce a 'tvguide.chl'

Is it possible to make a Sql Request on the Database and produce "*.ren" & "*.chl"

Copy them to the "..\mc2xml" Directory and use it like that

"mc2xml.exe -c fr -g 10000 -C tvguide.chl -o tvguide.xml"


Renaming Channel Name in mc2xml

You can also produce a Sql request to produce "tvguide.ren"

I'll come back to specify the sql request later ..


that's all folks ..


Top Bottom