Do not autoremove inactive channels
#1
dushmanic,

how do you think about not to autoremove inactive channels from the internal groups, just marking them 'inactive' instead. those channels might become active again at a later time. if they are removed and added, their position in the group will change.
Reply
#2
nah, the db could become a mess after a while like this.
I'll add a guisetting where the user can indicate that he wants to use the backend channel order whenever possible.
opdenkamp / dushmaniac

xbmc-pvr [Eden-PVR builds] [now included in mainline XBMC, so no more source link here :)]
personal website: [link]

Found a problem with PVR? Report it on Trac, under "PVR - core components". Please attach the full debug log.

If you like my work, please consider donating to me and/or Team XBMC.
Reply
#3
Thanks this is what I'm looking for, it's driving me crazy specially when they move at the beginning of channels list. I hope it will be implemented soon.
Reply
#4
well, the problem with temporarily unavailable channels is, that when they are deleted from the db, you will also lose egp, right?
how about a gui setting to disable autoremoval?

hmm, i think this won't solve the problem. you might want to be able to set timers on channels which are not available at that time. the problem is again the uid of the vdr channels. without a valid SID it can't be constructed, for this reason channels with SID=0 get skipped.
I think about implementing a command line parameter for the vnsi plugin to use position in channels.conf as uid.
Reply
#5
I just started xbmc for the first time today. the inactive channels that activated last night was actually at the beginning of xbmc channels list i tried to watch it, i know its inactive. i got the channel unavailable message and i restart xbmc and Puff it's gone from xbmc channels list. Guess what a new channel got activated and took its place TV 2 Sport 4.
I didn't see changes to the other channels that inactivated when i run diff.
Code:
--- channels.conf_off2    2011-04-24 12:28:42.069991076 +0200
+++ channels.conf_on    2011-04-23 22:26:31.456520077 +0200
@@ -123,7 +123,7 @@
TV 2 Sport;Telenor:11247:VC78:S0.8W:24500:513=2:644=nor@3:576:B00:154:70:1:0
TV 2 Sport 2;Telenor:10809:VC78:S0.8W:24500:513=2:644=nor@4:0:B00:1825:70:62:0
TV 2 Sport 3;Telenor:10809:vC78:S0.8W:24500:514=2:648=nor@4:0:B00:3312:70:62:0
-TV 2 Sport 4;Telenor:10809:vC78:S0.8W:24500:0:0:0:0:3311:70:62:0
+TV 2 Sport 4;Telenor:10809:vC78:S0.8W:24500:515=2:652=nor@4:0:B00:3311:70:62:0
TV 2 Sport 5;Telenor:10872:hC78M2O0S0:S0.8W:24500:520=2:660=nor@4:0:B00:1851:70:60:0
TV3 (N);Telenor:10809:VC78:S0.8W:24500:512=2:640=nor@4:576:B00:1853:70:62:0
Viasat 4;Telenor:11325:HC78:S0.8W:24500:515=2:656=nor@3:582:B00:2514:70:25:0
Reply
#6
Thanks dushmaniac for guisetting: Always use the channel order from the backend(s)
Now the inactive channels magically appears in their correct positions. [STRIKE]I doubt they will stay once they are deactivated, as long they return to their intended positions i can live with that. Maybe in the future you can make them stick.[/STRIKE]

I got a fix for vnsi plugin from FernetMenta.
Code:
--- cmdcontrol.c    2011-04-24 20:16:51.443113567 +0200
+++ cmdcontrol.c_2    2011-04-24 20:22:51.743110862 +0200
@@ -520,7 +520,7 @@
       else if (channel->Apid(0))
         isRadio = true;
       else
-        continue;
+        isRadio = false;

       if (radio != isRadio)
         continue;


Thanks FernetMenta for all you help.
Keep up the good work guys Smile
Reply

Logout Mark Read Team Forum Stats Members Help
Do not autoremove inactive channels1