Discussion:
[Xmltv-devel] [ xmltv-Bugs-3408055 ] _huro parse credits (director, actor, operator, ...) require
SourceForge.net
2011-09-12 13:02:39 UTC
Permalink
Bugs item #3408055, was opened at 2011-09-12 16:02
Message generated for change (Tracker Item Submitted) made by pojar-george
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=424135&aid=3408055&group_id=39046

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: tv_grab_huro
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Pojar George (pojar-george)
Assigned to: Zsolt Bagoly (zbagoly)
Summary: _huro parse credits (director, actor, operator,...) require

Initial Comment:
The new format of credits in port.hu|ro|cz|sk (director, operator, actor,....) is:

rendező: Harald Zwart
forgatókönyvíró: Christopher Murphey, Robert Mark Kamen
zeneszerző: James Horner
operatőr: Roger Pratt
producer: James Lassiter, Jada Pinkett Smith, Will Smith, Jerry Weintraub
vágó: Joel Negron

szereplő(k):
Jaden Smith (Dre Parker)
Jackie Chan (Mr. Han)
Wenwen Han (Mei Ying)
Taraji P. Henson (Sherry Parker)
Zhenwei Wang (Cheng)
Tess Liu (Történelemtanár)
Rongguang Yu (Li mester)

szinkronhang:
Ducsai Ábel (Dre Parker magyar hangja)
Háda János (Mr. Han magyar hangja)
Hermann Lilla (Mei Ying magyar hangja)
Peller Mariann (Sherry Parker magyar hangja)

To parse this information, in --slow options, I think there is a need to change line 1090

1086 foreach $line (@lines) {
1087 $line =~ s/\xA0//; # remove to_text()'s results of &npsp
1088 t "processing line: '" . d $line . "'";
1089
1090 foreach $part (split /, */, $line) {
1091
1092 $part =~ s/^\s+//; # remove heading blanks
1093 $part =~ s/\s+$//; # remove ending blanks


with this:

1090 foreach $part (split /(?=\b\w+:)\s*|,\s*/, $string;



----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=424135&aid=3408055&group_id=39046
Loading...