Ticket #6664: 6664-eit-set-deaf-signing-status-0-21-fixes.diff
File 6664-eit-set-deaf-signing-status-0-21-fixes.diff, 1.6 KB (added by , 15 years ago) |
---|
-
libs/libmythtv/eitfixup.h
99 99 const QRegExp m_ukSpaceStart; 100 100 const QRegExp m_ukSeries; 101 101 const QRegExp m_ukCC; 102 const QRegExp m_ukSL; 102 103 const QRegExp m_ukYear; 103 104 const QRegExp m_uk24ep; 104 105 const QRegExp m_ukStarring; -
libs/libmythtv/eitfixup.cpp
28 28 m_ukSeries("\\s*\\(?\\s*(?:Episode|Part|Pt)?\\s*(\\d{1,2})\\s*(?:of|/)\\s*(\\d{1,2})\\s*\\)?\\s*(?:\\.|:)?", false), 29 29 m_ukCC("\\[(AD)(,(S)){,1}(,SL){,1}\\]|\\[(S)(,AD){,1}(,SL){,1}\\]|" 30 30 "\\[(SL)(,AD){,1}(,(S)){,1}\\]"), 31 m_ukSL("\\[.*SL.*\\]"), 31 32 m_ukYear("[\\[\\(]([\\d]{4})[\\)\\]]"), 32 33 m_uk24ep("^\\d{1,2}:00[ap]m to \\d{1,2}:00[ap]m: "), 33 34 m_ukStarring("(?:Western\\s)?[Ss]tarring ([\\w\\s\\-']+)[Aa]nd\\s([\\w\\s\\-']+)[\\.|,](?:\\s)*(\\d{4})?(?:\\.\\s)?"), … … 420 421 { 421 422 int position1; 422 423 int position2; 424 int positionSL; 423 425 QString strFull; 424 426 425 427 bool isMovie = event.category.startsWith("Movie",false); … … 437 439 // BBC 7 [Rpt of ...] case. 438 440 event.description = event.description.remove(m_ukBBC7rpt); 439 441 442 // Determine deaf-signing status 443 if ((positionSL = m_ukSL.search(event.description)) != -1) 444 { 445 event.subtitleType |= SUB_SIGNED; 446 } 447 440 448 // Remove [AD,S] etc. 441 449 event.description = event.description.remove(m_ukCC); 442 450