Tvheadend - Bug #1407 Odd space(s) in channel name

Similar documents
Rory, if we can get some comments on just a phenomenal week.

THE BROWN SHOES. by JULIE JENSEN CHARACTERS MARK STEPH DEENA. NOTE: Lines that are underscored are meant to be addressed to the audience.

Dear friends and team mates!

JAY PROSCH COREY GRANT NOSA EGUAE

1 KINGSTON HEATH GOLF CLUB 17/11/12. .TALISKER MASTERS 2012 Adam Scott

Brandt, if we can just get some opening comments on the round and what keyed you to the 59.

STEWART MOORE: We'd like to welcome Jean Van De Velde to the interview room here at the 10th annual Dick's Sporting Goods Open.

Vanessa: The big jump. 10:00:42:00 Trainer 1 On :That s ok, if you don t want to jump. It is brave to say no, it s ok.

MODERATOR: Talk about your game. You played on the PGA Tour a little bit and just talk about that right now.

DAVE SENKO: Paul, victory No. 5 in a playoff here, how special is that? This is, I believe, the fourth straight year you've won at least one event.

Q. Okay. Let's get started. Do you want to ask the three Legends a question?

Press Conference Barry Melrose June 24, 2008

Nick Saban Tua Tagovailoa Xavier McKinney College Football Playoff Media Conference

June 8, Q. Bernhard, you're of a certain age where I don't think the tour, the PGA Tour stopped in Philadelphia. BERNHARD LANGER: Correct.

KANSAS. March 11, Kansas

Copyright 2018 For the Lead and SartinMethodology.com Compiled by Bill Lyster

Chamilo LMS - Bug #7077 Learning path - Didn't show the bottom part of large documents

Q. How is it and what have you -- where are you back, 100 percent, 80 percent?

So it's fun to be back at this tournament. I played in it every year for a while and took a few years off. It's just awesome to be here.

AMANDA HERRINGTON: Coming into this week, a place that you've had success as a playoff event, what is it about TPC Boston?

Horse Farm Management s Report Writer. User Guide Version 1.1.xx

OLIVIA McMILLAN: Cam, what an incredible day. It's all I'm sure been a bit of a blur for you, but can you tell us how you're feeling?

"ACCIDENT INVESTIGATION"

Oak Hill Country Club ~ Rochester, NY BERNHARD LANGER

MARK WILLIAMS: We would like to welcome Tony Romo to the interview room at the Corales Puntacana Resort & Club Championship.

August 8, Southern Hills Country Club

Q. What would it mean to break through this week, especially on home soil?

PRE-TOURNAMENT INTERVIEW TRANSCRIPT: FRED COUPLES Thursday, August 29, 2013

MODERATOR: Have you had the chance to fish or will you go fishing this week?

DBA Comments from AVA Club Members

May 23, The Ocean Course ~ Kiawah Island

Going Out. Bambang Yudianto. (c) Bambang Yudianto 2010

Meter Data Distribution Market Trials

Fox Chapel Golf Club - Pittsburgh, PA

ARCHIVES OF ONTARIO DISK: TRANSCRIPT DISC #130 PAGES: 11 THIS RECORDING IS UNRESTRICTED.

Couples Sunday.txt 1

J12 TICKET DISPENSER HOPPER ALL STOP STOP 1 STOP 2 STOP 3 BIG DOUBLE SMALL TAKE PLAY START CURRENT PRODUCTION BOARD TYPE

2017 ROOKIE OF THE YEAR TROPHY PRESENTATION January 23, 2018 JAY MONAHAN XANDER SCHAUFFELE

JEFF GORDON BACK IN BAY AREA FOR THE DODGE/SAVE MART 350 AT INFINEON RACEWAY ON SUNDAY, JUNE 22, 2003

Increase Your Chances For Getting Drafted In The NBA!

KANSAS. March 9, Kansas

Justin Thomas Press Conference

Dräger X-dock Frequently Asked Questions

Q. How do you feel about going in (inaudible?) What does it mean to you? When you got the call, what was your maybe you thought you were in trouble?

Guppy Challenge 10 weeks

MARIO ANDRETTI WAS BORN IN MONTONA, ITALY,

Alabama Head Coach Nick Saban December 31, 2017

OBJECT-ORIENTED ANALYSIS AND DESIGN

March 18, You know, we laid it on the line, but that's just kind of how it went.

Oak Hill Country Club ~ Rochester, NY JAY HAAS

~~~, Miss Gulch. No.3. You mean she bit you? No, her dog! Oh, she bit her dog, eh?

Q. You must be feeling really good. I think every time you think you're feeling good -- every day you wake up it's a new adventure, basically?

HAL LEONARD BASS METHOD - COMPLETE EDITION: BOOKS 1, 2 AND 3 BOUND TOGETHER IN ONE EASY-TO-USE VOLUME! BY ED FRIEDLAND

AL LUNSFORD: All right, we're very happy to be joined here by Stacy Lewis.

Walker Cup. John "Spider" Miller Braden Thornberry Doug Ghim USA Press Conference. Friday, September 8, 2017

Lockstep. Reference Manual. Last updated on September 23, Figure 53, LLC

FireHawk M7 Interface Module Software Instructions OPERATION AND INSTRUCTIONS

Am I the only one? VMWorld

PRE-TOURNAMENT INTERVIEW TRANSCRIPT: PAULA CREAMER - BRITTANY LANG - STACY LEWIS Wednesday, July 10, 2013

May 21, Oak Hill Country Club ~ Rochester, NY

BBC LEARNING ENGLISH 6 Minute English New transport on two wheels

Thursday, September 6, 2018 Hoag Performance Center Costa Mesa, Calif. LOS ANGELES CHARGERS HEAD COACH ANTHONY LYNN

January 12, 2015 URBAN MEYER CARDALE JONES EZEKIEL ELLIOTT. Ohio State quotes doc 1. Ohio State - 42 Oregon - 20

Tim Miles Nebraska Cornhuskers

How a Veteran Caddie Preps for Royal Birkdale

August 8, Southern Hills Country Club

True story worth watching...twice

POSTGAME QUOTES Carolina Panthers vs. Seattle Seahawks Sunday, November 25, 2018

1 TIMEIN: 10:00:18:16 DURATION: 04:03 TIMEOUT: 10:00:22:19 Since I got leukaemia, my life has been upside down.

Florida State University Football Media Conference

COACH MACK BROWN. Document1

Not Winston, but Turkish shotguns that are taking the bush by storm. Story and pics by Neil Grennan.

December 5, 2014 COACH NICK SABAN. An interview with: Coach Saban doc 1. for us. We fully expect him to be available for the game.

2 At the beach a) CD 3, track 20

[Check Out A Short Video Of The Ratings Software >Here<]

Baylor Post-Game Quotes

Natalie Gulbis. Kevin Sutherland US Senior Open Championship Tuesday, June 23 Press Conference

PRE-TOURNAMENT INTERVIEW November 27, 2018 JUSTIN ROSE

Abbott: French? Costello: Goofè. Abbott: Yes. Abbott: Yes. Abbott: Well I should. Abbott: Yes. Abbott: Who. Abbott: Who. Abbott: Who.

1 KINGSTON HEATH GOLF CLUB 15/11/12 .TALISKER MASTERS 2012 KALEM RICHARDSON

Costello: Look Abbott, if you're the coach, you must know all the players.

Team Selection Teleconference No. 15 Texas vs. No. 5 Georgia

Chugi tries to get Mike to come to Mongolia by inviting him to the holiday of Nadam. Mike: Really. Chugi: Yes.

Provider ICD 10 Compliant Release A S K E S I S W E B I N A R F E B R U A R Y 1 9,

MANAGER SOP'S AND TIPS

Australian F Class - MSCI Explanation. If you still need access to Why is it needed?

THE ROULETTE SYSTEM. Affiliates Disclaimer Privacy Policy Contact Us All Rights Reserved

DEAR DIARY By Craig Sodaro

5 REASONS WHY YOU WILL NEVER BE SUCCESSFUL AT FOOTBALL BETTING

KNOW THE LAWS? BY ANDY MELROSE AND PETER SHORTELL.

As they leave the house, Grandma warns them not to go to Collier's Landing because a little boy got caught in a whirlpool there and drowned.

2018 Cheez-It Bowl TCU Team Arrival Press Conference December 22, 2018

First-Round Grambling State vs. Baylor Ferrell Center Waco, Texas - Thursday, March 15, 2018 Press Conference Practice Day 1 Baylor

Recruiting & Retaining New Club Members

COACH FERENTZ. September 10, Coach Ferentz

File No WORLD TRADE CENTER TASK FORCE INTERVIEW FIREFIGHTER WILLIAM CASEY Interview Date: December 17, 2001 Transcribed by Maureen McCormick

How It Works! Make more profit from your betting at Betting Speed Evolution and the Race Advisor

Little Manfred. illustrated by michael foreman

NCSS Statistical Software

Large Group Week #4 June 29, 2014

Transcription:

Tvheadend - Bug #1407 Odd space(s) in channel name 2012-11-16 22:33 - Rene Herbrich Status: Fixed Start date: 2012-11-16 Priority: Normal Due date: Assignee: % Done: 100% Category: DVB Estimated time: 0.00 hour Target version: 3.2 Found in version: 3.3.153~ged5d7e4 Affected Versions: 3.2, 3.3 Description Some channels do have some odd space(s) in its name. If I scan for channels e.g. on my tv, there are none. So I think that's no problem of my cable provider? I'm experiencing the problem since the first time I compiled tvheadend (6 months ago), so it's nothing new. Associated revisions Revision 8a48fe82-2012-11-29 10:57 - Sutton Issue #1407 - skip unused ISO 8859 control codes. This had the effect of placing unwanted spaces into various channel names where the broadcaster was sending these control chars. Thanks to Rene Herbrich for diagnosing this. Revision 44628138-2012-11-29 11:51 - Sutton Issue #1407 - forgot to strip unused escapes from ISO 6937. Revision e444d80a - 2012-12-19 21:31 - Sutton Fix #1407 - skip unused ISO 8859 control codes. This had the effect of placing unwanted spaces into various channel names where the broadcaster was sending these control chars. Thanks to Rene Herbrich for diagnosing this. (cherry picked from commit 8a48fe8214df98fc7cd7f23fb210971921d6282c) History #1-2012-11-20 18:32 - Sutton - Category changed from 11 to DVB - Status changed from New to Need feedback 2018-10-03 1/6

The only thing I'm aware that TVH does is to clean spaces from either end of the names, since some providers do indeed stick spaces at either end. It certainly should not insert any additional chars. The only thing I can think is to try putting some printf()'s around the point the data is read from the tables. Look in src/dvb/dvb_tables.c in dvb_sdt_callback() and follow the code into dvb_desc_service() as required. #2-2012-11-20 19:07 - Rene Herbrich Will take some time, my HDHomeRun died shortly after I submitted this ticket. :( Have to wait for the replacement... #3-2012-11-26 15:57 - Sutton This has been reported by at least one other user. So we need to understand where these spaces are coming from. #4-2012-11-26 16:02 - Christian Brauwers Yeah, think that was me... Having the same trouble. German DVB-C with Sundtek Stick! On my TVs and EyeTV on imac everything is fine! #5-2012-11-26 16:06 - Sutton It would be good to know which services these are etc...? But since the original report is HDHR I'm guessing these might both be cable providers? So basically it wouldn't surprise me at all if they are sending garbage on purpose! #6-2012-11-26 22:19 - Rene Herbrich I'll get my replacement hdhomerun this week, I hope... If it helps: my cable provider is kabelbw. But it would be strange, if it's the fault of my provider? I mean, why is there no problem with my TV? #7-2012-11-27 02:10 - Bernd Schneider Have the same problem on my PC-System. I'm testing/using Openelec with my old Skystar2 to receive Astra 19.2. I installed openelec many times, older revisions too. It seems that always the same channels have this wrong additional space(s) in the channelname. The channels are on different transponders and I 2018-10-03 2/6

think I can exclude that this causes about a weak receiving signal. #8-2012-11-27 21:16 - B. J. Yes, same here. But this affects only service-names from the german provider "Sky". As a workaround I've edit the names of the affected channels after mapping services to these. I don't know if the odd spaces are really spaces (20H) or possibly some kind of whitespaces or other control chars (tab, null etc). #9-2012-11-27 22:31 - Rene Herbrich For me not only on channels broadcasted by "Sky" are affected. Additionally some other pay and free-tv channels have the spaces in its name. But what's strinking: most of the channels with this problem belong to "Sky". I'll try to insert some printf() asap and will report back then. My new device will arrive tomorrow, at least if the current tracking status is reliable. #10-2012-11-28 23:08 - Rene Herbrich - File TXT.rtf added Here's a part of my debug output (the complete output is attached): Nov 28 22:38:02 Channel Name Test: -------------------------- Nov 28 22:38:02 Channel Name Test: ptr content0: 00000015 () Nov 28 22:38:02 Channel Name Test: ptr content1: 0000000B () Nov 28 22:38:02 Channel Name Test: ptr content2: 00000086 () Nov 28 22:38:02 Channel Name Test: ptr content3: 00000041 (A) Nov 28 22:38:02 Channel Name Test: ptr content4: 0000006C (l) Nov 28 22:38:02 Channel Name Test: ptr content5: 00000062 (b) Nov 28 22:38:02 Channel Name Test: ptr content6: 00000061 (a) Nov 28 22:38:02 Channel Name Test: ptr content7: 0000006E (n) Nov 28 22:38:02 Channel Name Test: ptr content8: 00000069 (i) Nov 28 22:38:02 Channel Name Test: ptr content9: 00000061 (a) Nov 28 22:38:02 Channel Name Test: ptr content10: 00000020 ( ) Nov 28 22:38:02 Channel Name Test: ptr content11: 00000073 (s) Nov 28 22:38:02 Channel Name Test: ptr content12: 00000063 (c) Nov 28 22:38:02 Channel Name Test: ptr content13: 00000072 (r) Nov 28 22:38:02 Channel Name Test: ptr content14: 00000087 () Nov 28 22:38:02 Channel Name Test: ptr content15: 00000065 (e) Nov 28 22:38:02 Channel Name Test: name: Albania scr een RTV [...] Nov 28 22:38:02 Channel Name Test: -------------------------- Nov 28 22:38:02 Channel Name Test: ptr content0: 0000000B () Nov 28 22:38:02 Channel Name Test: ptr content1: 0000000B () Nov 28 22:38:02 Channel Name Test: ptr content2: 00000086 () Nov 28 22:38:02 Channel Name Test: ptr content3: 00000043 (C) Nov 28 22:38:02 Channel Name Test: ptr content4: 0000004C (L) Nov 28 22:38:02 Channel Name Test: ptr content5: 00000041 (A) Nov 28 22:38:02 Channel Name Test: ptr content6: 00000053 (S) Nov 28 22:38:02 Channel Name Test: ptr content7: 00000053 (S) Nov 28 22:38:02 Channel Name Test: ptr content8: 00000049 (I) 2018-10-03 3/6

Nov 28 22:38:02 Channel Name Test: ptr content9: 00000043 (C) Nov 28 22:38:02 Channel Name Test: ptr content10: 00000041 (A) Nov 28 22:38:02 Channel Name Test: ptr content11: 00000087 () Nov 28 22:38:02 Channel Name Test: ptr content12: 0000005F (_) Nov 28 22:38:02 Channel Name Test: ptr content13: 00000004 () Nov 28 22:38:02 Channel Name Test: ptr content14: 00000000 ( Nov 28 22:38:02 Channel Name Test: ptr content15: 00000000 ( Nov 28 22:38:02 Channel Name Test: name: CLASSICA [...] Nov 28 22:39:19 Channel Name Test: -------------------------- Nov 28 22:39:19 Channel Name Test: ptr content0: 00000014 () Nov 28 22:39:19 Channel Name Test: ptr content1: 0000000B () Nov 28 22:39:19 Channel Name Test: ptr content2: 00000086 () Nov 28 22:39:19 Channel Name Test: ptr content3: 00000045 (E) Nov 28 22:39:19 Channel Name Test: ptr content4: 00000053 (S) Nov 28 22:39:19 Channel Name Test: ptr content5: 00000050 (P) Nov 28 22:39:19 Channel Name Test: ptr content6: 0000004E (N) Nov 28 22:39:19 Channel Name Test: ptr content7: 00000087 () Nov 28 22:39:19 Channel Name Test: ptr content8: 00000020 ( ) Nov 28 22:39:19 Channel Name Test: ptr content9: 00000041 (A) Nov 28 22:39:19 Channel Name Test: ptr content10: 0000006D (m) Nov 28 22:39:19 Channel Name Test: ptr content11: 00000065 (e) Nov 28 22:39:19 Channel Name Test: ptr content12: 00000072 (r) Nov 28 22:39:19 Channel Name Test: ptr content13: 00000069 (i) Nov 28 22:39:19 Channel Name Test: ptr content14: 00000063 (c) Nov 28 22:39:19 Channel Name Test: ptr content15: 00000061 (a) Nov 28 22:39:19 Channel Name Test: name: ESPN America GB [...] Nov 28 22:39:19 Channel Name Test: -------------------------- Nov 28 22:39:19 Channel Name Test: ptr content0: 00000013 () Nov 28 22:39:19 Channel Name Test: ptr content1: 0000000B () Nov 28 22:39:19 Channel Name Test: ptr content2: 00000086 () Nov 28 22:39:19 Channel Name Test: ptr content3: 00000056 (V) Nov 28 22:39:19 Channel Name Test: ptr content4: 00000048 (H) Nov 28 22:39:19 Channel Name Test: ptr content5: 00000031 (1) Nov 28 22:39:19 Channel Name Test: ptr content6: 00000020 ( ) Nov 28 22:39:19 Channel Name Test: ptr content7: 00000043 (C) Nov 28 22:39:19 Channel Name Test: ptr content8: 0000006C (l) Nov 28 22:39:19 Channel Name Test: ptr content9: 00000061 (a) Nov 28 22:39:19 Channel Name Test: ptr content10: 00000073 (s) Nov 28 22:39:19 Channel Name Test: ptr content11: 00000087 () Nov 28 22:39:19 Channel Name Test: ptr content12: 00000073 (s) Nov 28 22:39:19 Channel Name Test: ptr content13: 00000069 (i) Nov 28 22:39:19 Channel Name Test: ptr content14: 00000063 (c) Nov 28 22:39:19 Channel Name Test: ptr content15: 00000086 () Nov 28 22:39:19 Channel Name Test: name: VH1 Clas sic GB That's what I put into the function "dvb_desc_service" within "dvb_tables.c": tvhlog(log_notice, "Channel Name Test", "--------------------------"); tvhlog(log_notice, "Channel Name Test", "ptr content0: %08X (%c)", ptr[0], ptr[0]); tvhlog(log_notice, "Channel Name Test", "ptr content1: %08X (%c)", ptr[1], ptr[1]); 2018-10-03 4/6

tvhlog(log_notice, "Channel Name Test", "ptr content2: %08X (%c)", ptr[2], ptr[2]); tvhlog(log_notice, "Channel Name Test", "ptr content3: %08X (%c)", ptr[3], ptr[3]); tvhlog(log_notice, "Channel Name Test", "ptr content4: %08X (%c)", ptr[4], ptr[4]); tvhlog(log_notice, "Channel Name Test", "ptr content5: %08X (%c)", ptr[5], ptr[5]); tvhlog(log_notice, "Channel Name Test", "ptr content6: %08X (%c)", ptr[6], ptr[6]); tvhlog(log_notice, "Channel Name Test", "ptr content7: %08X (%c)", ptr[7], ptr[7]); tvhlog(log_notice, "Channel Name Test", "ptr content8: %08X (%c)", ptr[8], ptr[8]); tvhlog(log_notice, "Channel Name Test", "ptr content9: %08X (%c)", ptr[9], ptr[9]); tvhlog(log_notice, "Channel Name Test", "ptr content10: %08X (%c)", ptr[10], ptr[10]); tvhlog(log_notice, "Channel Name Test", "ptr content11: %08X (%c)", ptr[11], ptr[11]); tvhlog(log_notice, "Channel Name Test", "ptr content12: %08X (%c)", ptr[12], ptr[12]); tvhlog(log_notice, "Channel Name Test", "ptr content13: %08X (%c)", ptr[13], ptr[13]); tvhlog(log_notice, "Channel Name Test", "ptr content14: %08X (%c)", ptr[14], ptr[14]); tvhlog(log_notice, "Channel Name Test", "ptr content15: %08X (%c)", ptr[15], ptr[15]); if((r = dvb_get_string_with_len(name, namelen, ptr, len, NULL, NULL)) < 0) return -1; tvhlog(log_notice, "Channel Name Test", "name: %s", name); To make a long post short: The names contain the chars 0x86 at the beginning and especially 0x87. At first I wanted to suggest to simply ignore them, but then I looked into the ASCII table. These are legit chars used in foreign languages. So, are you able to retrieve the country where tvheadend is running by the epg data? If yes, you could leave them out. I know, not a nice solution as a channel name might contain such a char on purpose. #11-2012-11-28 23:57 - Rene Herbrich Well, forget the last part of my conclusion. I've looked into the dvb specs: http://www.etsi.org/deliver/etsi_en/300400_300499/300468/01.11.01_60/en_300468v011101p.pdf None of the code tables uses chars with a value of the 0x80 or 0x90 range (from page 104 to 114). So we could leave them out. But what's really funny, I think: some of the channels propose to use a chinese code table /plugin_assets/redmine_wiki_extensions/images/biggrin.png #12-2012-11-29 10:56 - Sutton - Status changed from Need feedback to Accepted - Target version set to 3.2 - Affected Versions 3.2, 3.3 added Rene, I completely agree, I think those control codes should be completely skipped over. As you say the ETSI spec doc (and also the wiki entries for those code spaces) do not define any usage of those control chars. Why they're even being used I don't know, I guess they must have some special meaning somewhere (or to someone). But I think for our purposes they should simply be removed from the strings. 2018-10-03 5/6

I'll post a fix. Need to decide whether this warrants a backport to 3.2. #13-2012-11-29 11:01 - Sutton - Status changed from Accepted to Resolved #14-2012-11-29 11:43 - Rene Herbrich Why only for iso8859? According to what I found out yesterday, none of the code tables use these chars, not even utf8. #15-2012-11-29 11:44 - Sutton Because I'm an idiot and forgot to check the others /plugin_assets/redmine_wiki_extensions/images/wink.png #16-2012-11-29 11:50 - Sutton I'm not sure what needs to be done for the UTF8 stuff, since we're not actually converting that. So I could try and strip the unwanted escape sequences, but to be honest most end clients would probably do that anyway. The mistake here is simply that we replaced unused escape sequences (during translation) with spaces rather than completely ignoring them as we should. I'll update the 6937 routine. #17-2012-11-29 12:34 - Rene Herbrich Mh, yesterday I found a utf8 code table telling me these chars are not valid. But they are? I don't know... Well, you could leave them out and just wait if someone complains about missing chars? #18-2012-12-19 21:36 - Sutton - Status changed from Resolved to Fixed - % Done changed from 0 to 100 Applied in changeset commit:e444d80a23e3d356004c45516e2df8a8df593c37. Files HTS Tvheadend 3.3.153~ged5d7e4.jpg 196 KB 2012-11-16 Rene Herbrich TXT.rtf 754 KB 2012-11-28 Rene Herbrich 2018-10-03 6/6