Explanation about mc2xml
Installed in "C:\Program Files\mc2xml"
Create a batch command mc2xml.cmd
-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
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)"
.. 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
How to know the information needed
(1) look inside the output of "mc2xml.exe" in "tvguide.xml" - you will find something like :
(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
I'll come back to specify the sql request later ..
that's all folks ..
Installed in "C:\Program Files\mc2xml"
Create a batch command mc2xml.cmd
Why?c:
cd \Progra~1\mc2xml
del mc2xml.dat
del tvguide*.*
mc2xml.exe -c fr -g 10000 -a -A -D freebox.dat -o tvguide_tmp.xml
mc2xml.exe -c fr -g 10000 -a -A -D tnt.dat -I tvguide_tmp.xml -o tvguide.xml
copy /Y tvguide.xml C:\Progra~1\Forthe~1\Services\XMLTV
copy /Y tvguide.xml C:\Progra~1\XMLTV
-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
- 1st popup window to confirm (Service, Options, P/Z code & Country Code)
- 2nd popup window "Lineup Selection" with a list of (for me 20 lineup) You must choose ONE and only one
- and it create a "mc2xml.dat" withe the referencing parameter for this choice
Atlantic Bird 3 (AB3)
Gv4u2nAoGKbAbw75LWSyp6/ZK+0nQIzis6xkoUURTt+AN5pGodHh6ztqvHtdNQDY
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)"
- i proceed twice to obtain the "mc2xml.dat" that i rename as freebox.dat and "tnt.dat"
- 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
- 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
If you only want to include certain channels in your xml file you can create a "mc2xml.chl" text file (in the same directory as mc2xml.dat) listing the channel numbers, channel number ranges, channel names, or channel ids on separate lines: Example
"mc2xml.chl "
5
9-15
17-21.2
HBO
BBC2 London
I20.515292.microsoft.com
I51.5.34392.tmsdatadirect.com
I54.3.3945.titantv.com
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"tv source-info-name="BDS" generator-info-name="mc2xml" generator-info-url="mailto:mc2xml@gmail.com">
<channel id="I2.751945.microsoft.com">
<display-name>2 ARTE</display-name>
(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"If you want to rename channels by numbers or names you can create a "mc2xml.ren" text file (in the same directory as mc2xml.dat) listing the colon separated from:to channel numbers or names on separate lines: the "from" can also be a channel id, to distinguish duplicate channel numbers or names)
mc2xml.ren
605:2
BBC1:BBC News
I20.515292.microsoft.com:55
I'll come back to specify the sql request later ..
that's all folks ..