I use TVXB and have been for some time.
Recently I thought I'd have a go at making the parsing a little better, so that rather than title + description I'd get title, subtitle and description. It mostly works OK but I saw an oddity I couldn't fathom:
This xml code
-
Why would it add a description equivalent to the subtitle when there is no description field? Is there a default behaviour at work here or is TVXB (or me) doing something wrong?
k.
Recently I thought I'd have a go at making the parsing a little better, so that rather than title + description I'd get title, subtitle and description. It mostly works OK but I saw an oddity I couldn't fathom:
This xml code
-
Code:
<programme start="20070330090000 +0800" stop="20070330110000 +0800" channel="espn.hk">
<title lang="en">BASKETBALL</title>
<sub-title lang="en">2007 STATE FARM COLLEGE BASKETBALL SLAM DUNK 3-POINT SHOOTING CHAMPIONSHIP (L)</sub-title>
<category lang="en">Basketball</category>
</programme>
.
.
.
[COLOR=#0000ff]<[/COLOR][COLOR=#990000]programme start[/COLOR][COLOR=#0000ff]="[/COLOR][B]20070329060000 +0800[/B][COLOR=#0000ff]"[/COLOR][COLOR=#990000] stop[/COLOR][COLOR=#0000ff]="[/COLOR][B]20070329060300 +0800[/B][COLOR=#0000ff]"[/COLOR][COLOR=#990000] channel[/COLOR][COLOR=#0000ff]="[/COLOR][B]starsports.hk[/B][COLOR=#0000ff]">[/COLOR]
[COLOR=#0000ff]<[/COLOR][COLOR=#990000]title lang[/COLOR][COLOR=#0000ff]="[/COLOR][B]en[/B][COLOR=#0000ff]">[/COLOR][B]SCORE TODAY[/B][COLOR=#0000ff]</[/COLOR][COLOR=#990000]title[/COLOR][COLOR=#0000ff]>[/COLOR]
[COLOR=#0000ff]<[/COLOR][COLOR=#990000]sub-title lang[/COLOR][COLOR=#0000ff]="[/COLOR][B]en[/B][COLOR=#0000ff]">[/COLOR][B]CALTEX SCORE TODAY (L)[/B][COLOR=#0000ff]</[/COLOR][COLOR=#990000]sub-title[/COLOR][COLOR=#0000ff]>[/COLOR]
[COLOR=#0000ff]<[/COLOR][COLOR=#990000]category lang[/COLOR][COLOR=#0000ff]="[/COLOR][B]en[/B][COLOR=#0000ff]">[/COLOR][B]Sport News[/B][COLOR=#0000ff]</[/COLOR][COLOR=#990000]category[/COLOR][COLOR=#0000ff]>[/COLOR]
[COLOR=#0000ff]</[/COLOR][COLOR=#990000]programme[/COLOR][COLOR=#0000ff]>[/COLOR]
[COLOR=#0000ff].[/COLOR]
[COLOR=#0000ff].[/COLOR]
[COLOR=#0000ff].[/COLOR]
[COLOR=#0000ff]<[/COLOR][COLOR=#990000]programme start[/COLOR][COLOR=#0000ff]="[/COLOR][B]20070329193000 +0800[/B][COLOR=#0000ff]"[/COLOR][COLOR=#990000] stop[/COLOR][COLOR=#0000ff]="[/COLOR][B]20070329200000 +0800[/B][COLOR=#0000ff]"[/COLOR][COLOR=#990000] channel[/COLOR][COLOR=#0000ff]="[/COLOR][B]starsports.hk[/B][COLOR=#0000ff]">[/COLOR] [COLOR=#0000ff]<[/COLOR][COLOR=#990000]title lang[/COLOR][COLOR=#0000ff]="[/COLOR][B]en[/B][COLOR=#0000ff]">[/COLOR][B]THE GOLF CLUB[/B][COLOR=#0000ff]</[/COLOR][COLOR=#990000]title[/COLOR][COLOR=#0000ff]>[/COLOR]
[COLOR=#0000ff]<[/COLOR][COLOR=#990000]sub-title lang[/COLOR][COLOR=#0000ff]="[/COLOR][B]en[/B][COLOR=#0000ff]">[/COLOR][B]THE UBS GOLF CLUB[/B][COLOR=#0000ff]</[/COLOR][COLOR=#990000]sub-title[/COLOR][COLOR=#0000ff]>[/COLOR]
[COLOR=#0000ff]<[/COLOR][COLOR=#990000]category lang[/COLOR][COLOR=#0000ff]="[/COLOR][B]en[/B][COLOR=#0000ff]">[/COLOR][B]Golf[/B][COLOR=#0000ff]</[/COLOR][COLOR=#990000]category[/COLOR][COLOR=#0000ff]>[/COLOR]
[COLOR=#0000ff]</[/COLOR][COLOR=#990000]programme[/COLOR][COLOR=#0000ff]>[/COLOR]
[COLOR=#0000ff].[/COLOR]
.
Why would it add a description equivalent to the subtitle when there is no description field? Is there a default behaviour at work here or is TVXB (or me) doing something wrong?
k.
ASUS STRIX X470-F AMD 2700x 4GHz | Win10Prox64 | 32GB | NVIDIA GEforce GT1030 Fanless | WinTV DMB-TH | WinTV HVR-1280 | Hauppauge Colossus | AC86U/AC68U | USB-UIRT | RPi4 Libreelec | Sony Bravia LCD X9000F Android TV |