Autor Thema: kaffeine scan patch  (Gelesen 4599 mal)

0 Mitglieder und 3 Gäste betrachten dieses Thema.

Offline amin

  • Fullcubie
  • ***
  • Beiträge: 90
Re: kaffeine scan patch
« Antwort #15 am: 16 Mai, 2007, 19:28 »
patch already in svn :)
Das war aber schnell. :)

Offline named

  • Cubie
  • **
  • Beiträge: 25
Re: kaffeine scan patch
« Antwort #16 am: 16 Mai, 2007, 19:37 »
with a little help from a friend (hftom) ;)

Offline amin

  • Fullcubie
  • ***
  • Beiträge: 90
Re: kaffeine scan patch
« Antwort #17 am: 19 Mai, 2007, 12:33 »
Noch eine kleine Korrektur.
Jetzt wird auch der neuer Sendername übernommen. 
<link unten>
« Letzte Änderung: 20 Mai, 2007, 11:46 von amin »

Offline named

  • Cubie
  • **
  • Beiträge: 25
Re: kaffeine scan patch
« Antwort #18 am: 20 Mai, 2007, 10:08 »
This patch updates channels names also. But imagine this scenario. In my channels.dvb I have ZDF on 19.2e and somewhere down the list ZDF on 13.0e. Both channel names are ZDF. I scanned 13.0e second so ZDF on Hotbird has "-1" added. That is, ZDF on Astra is just ZDF, and ZDF on Hotbird is ZDF-1. Now if I use your patch and update channels on 13.0e, ZDF-1 would become ZDF, because that's the name broadcast.
And this would be a problem. There would be two cnannels with the name ZDF. The one on Astra would be ahead in the list. If I tune to ZDF(13.0e) evrything would be ok. However if I try to tune to ZDF(13.0e), I would end up again with ZDF(19.0e). This unfortunate situation arises because kaffeine distinguishes between cnannels based on their names. If there are multiple channels with the same name, trying to tune to each one of them will lead to the topmost in the channels.dvb.
I think this behavior should be changed. Instead channels should be distinguished by a combo such as orbital position+frequency+service id. Thus unique channel names would not be a necessity anymore. And it would be possible to update them when e.g. a new channel starts to broadcast on the same sat/freq/sid.

Offline amin

  • Fullcubie
  • ***
  • Beiträge: 90
Re: kaffeine scan patch
« Antwort #19 am: 20 Mai, 2007, 11:33 »
@named
Mein patch hat das mit ZDF und ZDF-1 schon  berücksichtigt. ;)
Teste zu erst bitte. :)

cu
//edit
Ok. jetzt muss 100% ok sein
http://pastebin.ca/498285
« Letzte Änderung: 20 Mai, 2007, 11:42 von amin »

Offline named

  • Cubie
  • **
  • Beiträge: 25
Re: kaffeine scan patch
« Antwort #20 am: 20 Mai, 2007, 11:47 »
Well, I did a test. But it wasn't with ZDF and ZDF-1. :) It was with ZDF and ZDF-HB. I checked again. If it is ZDF-#, #=1,2,.. all is ok, otherwise we have problem. So this limits user's freedom to rename the channel to his liking. Which is a bad idea, I guess.

//edit
You were faster with your post edit. :) Will try the new version.

//edit
That's better.
But it would be really better if someone could change the way kaffeine handles dvb channels. A database-like method. With a unique key comprised of (sat,freq,sid). This will allow us to have a tree structured channel list sortable by different criteria. Similar to amarok's collection tab where one could group by genre/artist/album or a number of other combos. In kaffeine we could have sat/provider/tp or maybe even category(genre)/sat etc. I have suggested this already to hftom but he probably doesn't have the time to code it.
« Letzte Änderung: 20 Mai, 2007, 12:14 von named »

Offline amin

  • Fullcubie
  • ***
  • Beiträge: 90
Re: kaffeine scan patch
« Antwort #21 am: 20 Mai, 2007, 12:28 »
Du kannst noch der patch testen. Ist nicht in svn.
und hier noch kleine patch für dvbpanel.

http://pastebin.ca/455682

Offline named

  • Cubie
  • **
  • Beiträge: 25
Re: kaffeine scan patch
« Antwort #22 am: 20 Mai, 2007, 13:00 »
Doesn't apply correctly to current svn.

Offline amin

  • Fullcubie
  • ***
  • Beiträge: 90
Re: kaffeine scan patch
« Antwort #23 am: 20 Mai, 2007, 13:34 »
Hier ein diff gegen Aktuelle svn.
http://pastebin.ca/498387

Kannst du noch hftom sagen, dass besser wäre "_" statt "-" in checkDuplicateName.
name = org+"-"+QString().setNum(j);
auf
name = org+"_"+QString().setNum(j);
Dann muss man auch bei meinem patch ändern.
+ name.remove( QRegExp("_\\d+$"));
« Letzte Änderung: 20 Mai, 2007, 13:52 von amin »

Offline named

  • Cubie
  • **
  • Beiträge: 25
Re: kaffeine scan patch
« Antwort #24 am: 20 Mai, 2007, 13:52 »
This just changes what's displayed in the source column of the dvbpanel. It doesn't solve the issue with duplicate channel names. If channel names are identical only the topmost in channels.dvb is tuned. I really think that channel treatment should be reworked. Unfortunately I can't do this. Hope someone else might. :) I could just give some ideas as far as usability is concerned.

Offline amin

  • Fullcubie
  • ***
  • Beiträge: 90
Re: kaffeine scan patch
« Antwort #25 am: 20 Mai, 2007, 14:14 »
Meinst du dieses Art von Doppel-Channels ?
Zitat
TVC|24 HORAS  |162(2)|88(esl),|0|30655|1034|SAstra-19.2E|10979|22000|v|56|-1|-1|-1|-1|-1|-1|-1|882|||
TVC|24 HORAS-1|162(2)|88(esl),|0|30652|1034|SAstra-19.2E|10979|22000|v|56|-1|-1|-1|-1|-1|-1|-1|927|||
Also das wird so gesendet:
dvbscan -c
using '/dev/dvb/adapter0/frontend0' and '/dev/dvb/adapter0/demux0'
0x0000 0x77bb: pmt_pid 0x0401 CLASIC -- CLÁSICO (running, scrambled)
0x0000 0x77bc: pmt_pid 0x0402 24H -- 24 HORAS (running, scrambled)
0x0000 0x77bd: pmt_pid 0x0404 CMA30 -- TNT (running, scrambled)
0x0000 0x77be: pmt_pid 0x0403 Digital+ -- CLAN  TVE (running, scrambled)
0x0000 0x77bf: pmt_pid 0x040c 24H -- 24 HORAS (running, scrambled)
0x0000 0x77c0: pmt_pid 0x0406 TLNV -- TELENOVELAS (running, scrambled)
0x0000 0x77c1: pmt_pid 0x0408 HOLLYW -- HOLLYWOOD (running, scrambled)
0x0000 0x77c2: pmt_pid 0x0409 HIST -- CANAL HISTORIA (running, scrambled)
0x0000 0x77c3: pmt_pid 0x040f TLNV -- TELENOVELAS (running, scrambled)
0x0000 0x77c4: pmt_pid 0x040a Digital+ -- EHS (running)
0x0000 0x77c5: pmt_pid 0x0407 CANAR -- TV CANARIA (running)
0x0000 0x77c6: pmt_pid 0x040e Digital+ -- CUATRO (running, scrambled)
0x0000 0x77c7: pmt_pid 0x0405 Digital+ -- CUATRO (running, scrambled)
0x0000 0x77d8: pmt_pid 0x040b ESP -- EUROSPORT (running, scrambled)
dumping lists (14 services)
CLÁSICO                  (0x77bb) 01: PCR == V   V 0x00a1 A 0x0054 (esl)
TELENOVELAS              (0x77c3) 01: PCR == V   V 0x00a5 A 0x0064 (esl)
24 HORAS                 (0x77bf) 01: PCR == V   V 0x00a2 A 0x0058 (esl)
CUATRO                   (0x77c7) 01: PCR == V   V 0x00ad A 0x0084 (esl) 0x0085 (dos) TT 0x0047
CLAN  TVE                (0x77be) 01: PCR == V   V 0x00a0 A 0x0050 (esl) 0x0051 (dos)
CUATRO                   (0x77c6) 01: PCR == V   V 0x00ad A 0x0084 (spa) 0x0085 (dos) TT 0x0047
EHS                      (0x77c4) 01: PCR == V   V 0x00aa A 0x0078 (esl)
EUROSPORT                (0x77d8) 01: PCR == V   V 0x00a8 A 0x0070 (spa)
HOLLYWOOD                (0x77c1) 01: PCR == V   V 0x00a6 A 0x0068 (esl) 0x0069 (dos)
TELENOVELAS              (0x77c0) 01: PCR == V   V 0x00a5 A 0x0064 (esl)
TV CANARIA               (0x77c5) 01: PCR == V   V 0x00a4 A 0x0060 (esl)
CANAL HISTORIA           (0x77c2) 01: PCR == V   V 0x00a7 A 0x006c (esl) 0x006d (por)
TNT                      (0x77bd) 01: PCR == V   V 0x00a3 A 0x005c (esl) 0x005d (dos) TT 0x0029
24 HORAS                 (0x77bc) 01: PCR == V   V 0x00a2 A 0x0058 (esl)

Offline named

  • Cubie
  • **
  • Beiträge: 25
Re: kaffeine scan patch
« Antwort #26 am: 20 Mai, 2007, 14:32 »
I mean that channels like these (and for that matter, any channel) should be uniquely differentiated by the combination of:
1. Orbital position. In this case 19.0E. Obviously identcal.
2. Frequency. 10979V. Again the same.
3. Service id. 30655 for 24 HORAS, and 30652 for 24 HORAS-1.

The combination of 1,2,3 is the only way to uniquely identify a channel. And imho it SHOULD be the way channels are identified. Not by their names, numbers in some sort of list (channels.dvb) or something else. Hence, the database approach, (the amarok way).

Offline amin

  • Fullcubie
  • ***
  • Beiträge: 90
Re: kaffeine scan patch
« Antwort #27 am: 20 Mai, 2007, 14:41 »
Also du meinst, wir sollen die Channels nicht umbenennen in -1 -2 nur den Bug bei Channels ZDF & ZDF beheben ?
Ja, den Vorschlag find ich gut. :)

Offline named

  • Cubie
  • **
  • Beiträge: 25
Re: kaffeine scan patch
« Antwort #28 am: 20 Mai, 2007, 14:57 »
This would solve the issue with ZDF on Astra and ZDF on Hotbird. Also the two channels 24 HORAS on the same transponder on Astra. This eliminates the need for unique names. And if someone makes a database with the channels as objects and orbital position,frequency, pol., service id, transport stream id, vpid, apid1, apid2, provider, etc. as attributes, maybe the dvb pannel could look something like:

Astra 19.0e
   |
   |-Premiere
   |      |     
   |      |-Premiere 1
   |      |-Premiere 2
   |      |-Premiere 3
   |      ........
   |-D+
   ............

Hotbird 13.0e
  |
  .............

Offline amin

  • Fullcubie
  • ***
  • Beiträge: 90
Re: kaffeine scan patch
« Antwort #29 am: 20 Mai, 2007, 15:05 »
Für Provider müsste man die channels.dvb strucktur ändern.
So wie jetzt ist, wird Provider nicht gespeichert in channels.dvb.