Ticket #5189: myth_eitfixup.diff
File myth_eitfixup.diff, 3.0 KB (added by , 16 years ago) |
---|
-
libs/libmythtv/eitfixup.cpp
old new 11 11 EITFixUp::EITFixUp() 12 12 : m_bellYear("[\\(]{1}[0-9]{4}[\\)]{1}"), 13 13 m_bellActors("\\set\\s|,"), 14 m_bellPPVTitleAllDay("\\s*\\(All Day.*\\)\\s*$"), 14 m_bellPPVTitleInfo("\\s*\\(INFO\\)"), 15 m_bellPPVTitlePressInfo("\\s*\\(PRESS INFO\\)"), 16 m_bellPPVTitleRC("(\\s*\\(RC\\)|-RC\\s*\\(All Day\\))"), 17 m_bellPPVTitleAllDay("(\\s*\\(All Day\\)|All Day,\\s*)"), 15 18 m_bellPPVTitleHD("^HD\\s?-\\s?"), 19 m_bellPPVTitleDolby("(\\s*\\(5.1\\)|\\(DD)"), 20 m_bellPPVTitleWide("(Widescreen|LBX)"), 16 21 m_bellPPVSubtitleAllDay("^All Day \\(.*\\sEastern\\)$"), 17 22 m_bellPPVDescriptionAllDay("^\\(.*\\sEastern\\)"), 18 23 m_bellPPVDescriptionAllDay2("^\\([0-9].*am-[0-9].*am\\sET\\)"), … … 250 255 event.description = event.description.replace("(Stereo)", ""); 251 256 } 252 257 258 // Check for "title (INFO)" in the title 259 position = event.title.find(m_bellPPVTitleInfo); 260 if (position != -1) 261 { 262 event.title = event.title.replace(m_bellPPVTitleInfo, ""); 263 } 264 265 // Check for "title (Press Info)" in the title 266 position = event.title.find(m_bellPPVTitlePressInfo); 267 if (position != -1) 268 { 269 event.title = event.title.replace(m_bellPPVTitlePressInfo, ""); 270 } 271 272 // Check for "title (RC)" in the title 273 position = event.title.find(m_bellPPVTitleRC); 274 if (position != -1) 275 { 276 event.title = event.title.replace(m_bellPPVTitleRC, ""); 277 } 278 253 279 // Check for "title (All Day)" in the title 254 280 position = event.title.find(m_bellPPVTitleAllDay); 255 281 if (position != -1) … … 292 318 { 293 319 event.description = event.description.replace(m_bellPPVDescriptionEventId, ""); 294 320 } 321 322 // Check for widescreen title 323 position = event.title.find(m_bellPPVTitleWide); 324 if (position != -1) 325 { 326 event.videoProps |= VID_WIDESCREEN; 327 } 295 328 329 // Check for widescreen subtitle 330 position = event.subtitle.find(m_bellPPVTitleWide); 331 if (position != -1) 332 { 333 event.videoProps |= VID_WIDESCREEN; 334 } 335 336 // Check for dolby in the title 337 position = event.title.find(m_bellPPVTitleDolby); 338 if (position != -1) 339 { 340 event.audioProps |= AUD_DOLBY; 341 } 296 342 } 297 343 298 344 /** \fn EITFixUp::SetUKSubtitle(DBEvent&) const -
libs/libmythtv/eitfixup.h
old new 79 79 80 80 const QRegExp m_bellYear; 81 81 const QRegExp m_bellActors; 82 const QRegExp m_bellPPVTitleInfo; 83 const QRegExp m_bellPPVTitlePressInfo; 84 const QRegExp m_bellPPVTitleRC; 82 85 const QRegExp m_bellPPVTitleAllDay; 83 86 const QRegExp m_bellPPVTitleHD; 87 const QRegExp m_bellPPVTitleDolby; 88 const QRegExp m_bellPPVTitleWide; 84 89 const QRegExp m_bellPPVSubtitleAllDay; 85 90 const QRegExp m_bellPPVDescriptionAllDay; 86 91 const QRegExp m_bellPPVDescriptionAllDay2;