void printEvent(const DBEventEIT& event, const QString& name) { printf("\n------------Event - %s------------\n", name.toLocal8Bit().constData()); printf("Title %s\n", event.title.toLocal8Bit().constData()); printf("Subtitle %s\n", event.subtitle.toLocal8Bit().constData()); printf("Description %s\n", event.description.toLocal8Bit().constData()); printf("Season %3u\n", event.season); printf("Episode %3u\n", event.episode); printf("Total episodes %3u\n", event.totalepisodes); printf("Part number %3u\n", event.partnumber); printf("Part total %3u\n", event.parttotal); printf("SubtitleType %s\n", getSubtitleType(event.subtitleType).toLocal8Bit().constData()); printf("Audio props %s\n", getAudioProps(event.audioProps).toLocal8Bit().constData()); printf("Video props %s\n", getVideoProps(event.videoProps).toLocal8Bit().constData()); printf("\n"); }
void printEvent(const DBEventEIT& event, const QString& name) { printf("\n------------Event - %s------------\n", name.toLocal8Bit().constData()); printf("Title %s\n", event.title.toLocal8Bit().constData()); printf("Subtitle %s\n", event.subtitle.toLocal8Bit().constData()); printf("Description %s\n", event.description.toLocal8Bit().constData()); printf("Season %3u\n", event.season); printf("Episode %3u\n", event.episode); printf("Total episodes %3u\n", event.totalepisodes); printf("Part number %3u\n", event.partnumber); printf("Part total %3u\n", event.parttotal); printf("SubtitleType %s\n", getSubtitleType(event.subtitleType).toLocal8Bit().constData()); printf("Audio props %s\n", getAudioProps(event.audioProps).toLocal8Bit().constData()); printf("Video props %s\n", getVideoProps(event.videoProps).toLocal8Bit().constData()); if (event.credits && !event.credits->empty()) { printf("Credits %3zu\n", event.credits->size()); } if (!event.items.isEmpty()) { printf("Items %3d\n", event.items.count()); } printf("\n"); }