Hi all,
this is the first release of AutoSort-Plugin.
Description:
AutoSort Plugin adds the capability to define rules for automatically sorting your channels.conf with every housekeeping thread. You have to define some rules in autosort.conf, like this:
FreeTV:HasNoCa:Sort Premiere:HasProvider=premiere:Sort
whitch results in channels.conf like:
your old channels :Auto Sort :FreeTV ARD... BR-alpha... ... :Premiere Premiere 1... ... :Unsorted other channels
-------------------------------------------------------------------------------- Please keep in mind that this is early beta state, so don't forget to backup your channels.conf before trying --------------------------------------------------------------------------------
Comments and bug reports are welcome.
Thorsten Scheck
=============================================================== Project's homepage: http://www.copypointburscheid.de/linux/autosort.htm
Latest version: http://www.copypointburscheid.de/linux/vdr-autosort-0.0.4.tgz ===============================================================
CopyPoint schrieb:
Description:
AutoSort Plugin adds the capability to define rules for automatically sorting your channels.conf with every housekeeping thread. You have to define some rules in autosort.conf, like this:
FreeTV:HasNoCa:Sort Premiere:HasProvider=premiere:Sort
whitch results in channels.conf like:
your old channels :Auto Sort :FreeTV ARD... BR-alpha... ... :Premiere Premiere 1... ... :Unsorted other channels
Wunderful plugin idea :)
Thanx a lot. I only really miss a way to filter for diffrent sources to keep Astra and Eutelsat seperated...
Frank
Frank Scherthan wrote:
Wunderful plugin idea :)
Thanx a lot. I only really miss a way to filter for diffrent sources to keep Astra and Eutelsat seperated...
There is a patch vdr-1.3.22-Source-dependant-NewChannels-Insertation.diff Is included with Rotor-plugin, in patches directory
At 22:45 07.11.05 +0100, you wrote:
CopyPoint schrieb:
Description:
AutoSort Plugin adds the capability to define rules for automatically sorting your channels.conf with every housekeeping thread. You have to define some rules in autosort.conf, like this:
FreeTV:HasNoCa:Sort Premiere:HasProvider=premiere:Sort
whitch results in channels.conf like:
your old channels :Auto Sort :FreeTV ARD... BR-alpha... ... :Premiere Premiere 1... ... :Unsorted other channels
Wunderful plugin idea :)
Thanx a lot. I only really miss a way to filter for diffrent sources to keep Astra and Eutelsat seperated...
That had been on plan for around 0.0.6, but i'ts not a big thing. I'll try to give you a previev these days.
Thorsten
Frank
vdr mailing list vdr@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr
At 12:58 09.11.05 +0200, you wrote:
CopyPoint wrote:
Hi all, this is the first release of AutoSort-Plugin.
Tryed with vdr 1.3.35, vdr crashes if autoport is loaded. VDR patched with subtitles and ttxtsub patch.
Hmm, never tried these patches and i'm still on 1.3.32.
What does your sys.log / messages say??
vdr mailing list vdr@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr
CopyPoint wrote:
At 12:58 09.11.05 +0200, you wrote:
CopyPoint wrote:
Hi all, this is the first release of AutoSort-Plugin.
Tryed with vdr 1.3.35, vdr crashes if autoport is loaded. VDR patched with subtitles and ttxtsub patch.
Hmm, never tried these patches and i'm still on 1.3.32.
What does your sys.log / messages say??
Wrong alarm, autosort.conf was in wrong directory.
Lauri Tischler schrieb:
CopyPoint wrote:
Hi all,
this is the first release of AutoSort-Plugin.
Tryed with vdr 1.3.35, vdr crashes if autoport is loaded. VDR patched with subtitles and ttxtsub patch.
I tried with Bigpatch (includes ttxtsubAND subtitles) and autosort works fine. It's just slow like hell. It only updates 20 channels per run and housekeeping happens not more every 10 Minutes.
Is there a way to force housekeeping? Or to force autosort? I'd like test some modifications in autosort.conf...
btw: I know the Source-dependant-NewChannels-Insertation.diff and use it myself, but the autosort plugin is like a configurable NewChannels-Insertation...
Frank
At 22:13 09.11.05 +0100, you wrote:
Lauri Tischler schrieb:
CopyPoint wrote:
Hi all,
this is the first release of AutoSort-Plugin.
It's just slow like hell. It only updates 20 channels per run and housekeeping happens not more every 10 Minutes.
Is there a way to force housekeeping? Or to force autosort? I'd like test some modifications in autosort.conf...
Just as ugly workaround: (sorry, i don't have line numbers here on win-würg)
Search for 'startup' and replace 0 by 1
if (0){ // ToDo: replace by config option "On Startup" CheckChannels(); }
Search _twice_ for 'int maxmoves' and increase them to what you want (2000 ?)
int maxmoves = 20;
But: This will of course slow down your startup Watchdog may expire during housekeeping AS will still take just one group per run
Thorsten
CopyPoint schrieb: ...
Is there a way to force housekeeping? Or to force autosort? I'd like test some modifications in autosort.conf...
Just as ugly workaround: (sorry, i don't have line numbers here on win-würg)
Search for 'startup' and replace 0 by 1
if (0){ // ToDo: replace by config option "On Startup" CheckChannels(); }
Search _twice_ for 'int maxmoves' and increase them to what you want (2000 ?)
int maxmoves = 20;
But: This will of course slow down your startup Watchdog may expire during housekeeping AS will still take just one group per run
maxmoves > 100 restarts my VDR with 30s watchtimer, so i still would have had to wait a long time for the housekeeping to kick in. What I did: I just added a autoSort->CheckChannels(); to MainMenuAction and assigned a key :) That makes debugging (and calling the plugin) easy.
Maybe someday you could try to keep autosort in a thread, so that vdr still responses, even if houskeeping (and therefor autosort) kicks in.
I really don't know how I could live without that plugin. Finally all my 2500 channels are sorted the way I alway wanted them :)
I only miss sorting by frequency (=transponder) and filtering by source (witch you already wanted to implement).
THANK YOU for this plugin!
Frank
At 23:16 10.11.05 +0100, you wrote:
maxmoves > 100 restarts my VDR with 30s watchtimer, so i still would have had to wait a long time for the housekeeping to kick in. What I did: I just added a autoSort->CheckChannels(); to MainMenuAction and assigned a key :) That makes debugging (and calling the plugin) easy.
I see, you're completly rewriting my roadmap ;-)
Maybe someday you could try to keep autosort in a thread, so that vdr still responses, even if houskeeping (and therefor autosort) kicks in.
thought about it, but what will happen, if user makes a change to channels while autosort is in thread? That cries for inconsistency. I'd prefer catching a signal from vdr if a channel changes or is added and then do a single loop just for this channel. Together with a 'reload config' and 'complete run now' -button this could be the best solution
I really don't know how I could live without that plugin. Finally all my 2500 channels are sorted the way I alway wanted them :)
I only miss sorting by frequency (=transponder)
that needs a fuzzy-factor by some Hz. But what do you wanna reach with that?
and filtering by source (witch you already wanted to implement).
Done.
THANK YOU for this plugin!
Frank
vdr mailing list vdr@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr
CopyPoint schrieb:
At 23:16 10.11.05 +0100, you wrote:
Maybe someday you could try to keep autosort in a thread, so that vdr still responses, even if houskeeping (and therefor autosort) kicks in.
thought about it, but what will happen, if user makes a change to channels while autosort is in thread? That cries for inconsistency. I'd prefer catching a signal from vdr if a channel changes or is added and then do a single loop just for this channel. Together with a 'reload config' and 'complete run now' -button this could be the best solution
This would be really a clean approach, but I don't think, that you will get inconsistency as long as the channels get referenced by their ID. Moving a channel, that is just edited should work...Or do I miss something? I have to check how vdr references channels...
I really don't know how I could live without that plugin. Finally all my 2500 channels are sorted the way I alway wanted them :)
I only miss sorting by frequency (=transponder)
that needs a fuzzy-factor by some Hz. But what do you wanna reach with that?
Isn't vdr taking care of that?
from channels.c: bool cChannel::SetSatTransponderData(int Source, int Frequency, char Polarization, int Srate, int CoderateH) { // Workarounds for broadcaster stupidity: // Some providers broadcast the transponder frequency of their channels with two different // values (like 12551 and 12552), so we need to allow for a little tolerance here if (abs(frequency - Frequency) <= 1) Frequency = frequency; // Sometimes the transponder frequency is set to 0, which is just wrong if (Frequency == 0) return false;
I'd like filtering for freq for the following reasons: - Once a month I clean my channels.conf, removing all dead channels. I put a "DEAD -" in front of all channelnames and switch to every transponder for about 10 sec. with "update names" enabled. There are some channels that are still not "dead", but don't get their names updated. So I delete these channels, switch to a channel on the same transponder and let this channel be readded. Having the channels ordered by freq makes this easy...
- I have only 1 card. If channels are ordered by freq, I can see with channels can be recorded at simultaniously.
and filtering by source (witch you already wanted to implement).
Done.
Great :)
Frank
At 10:09 12.11.05 +0100, you wrote:
This would be really a clean approach, but I don't think, that you will get inconsistency as long as the channels get referenced by their ID. Moving a channel, that is just edited should work...Or do I miss something? I have to check how vdr references channels...
No, just editing won't harm, but if user deletes a channel or just moves it out of AutoSort-Section the channel could be reapear the channel could be double the hole thing could crash But i stop thinking here - i try.
I really don't know how I could live without that plugin. Finally all my 2500 channels are sorted the way I alway wanted them :)
I only miss sorting by frequency (=transponder)
that needs a fuzzy-factor by some Hz. But what do you wanna reach with that?
Isn't vdr taking care of that?
from channels.c: bool cChannel::SetSatTransponderData(int Source, int Frequency, char Polarization, int Srate, int CoderateH) { // Workarounds for broadcaster stupidity: // Some providers broadcast the transponder frequency of their channels with two different // values (like 12551 and 12552), so we need to allow for a little tolerance here if (abs(frequency - Frequency) <= 1) Frequency = frequency; // Sometimes the transponder frequency is set to 0, which is just wrong if (Frequency == 0) return false;
On 13E (HotBird) the frequency seems to differ by up to 30 my log is full of channel changes for a few Hz
I'd like filtering for freq for the following reasons:
- Once a month I clean my channels.conf, removing all dead channels. I
put a "DEAD -" in front of all channelnames and switch to every transponder for about 10 sec. with "update names" enabled. There are some channels that are still not "dead", but don't get their names updated. So I delete these channels, switch to a channel on the same transponder and let this channel be readded. Having the channels ordered by freq makes this easy...
Rejected - that good old idea doesn't need a transponder separation, it can be done completely automated as dicussed here a long time ago.
- I have only 1 card. If channels are ordered by freq, I can see with
channels can be recorded at simultaniously.
Confirmed
I give highest priority to the 'complete-run-for-config-debug-button' that seems to be the hardest entry problem, let see what comes inbetween.
Thorsten
CopyPoint wrote:
On 13E (HotBird) the frequency seems to differ by up to 30 my log is full of channel changes for a few Hz
Not only that, at 1.0W my log has a lot of Nov 11 23:05:42 vdr vdr[20799]: changing transponder data of channel 1784 from S1.0W:12303:v:27799:3 to S1.0W:12303:v:27800:3 Nov 11 23:05:42 vdr vdr[20799]: changing transponder data of channel 1786 from S1.0W:12303:v:27799:3 to S1.0W:12303:v:27800:3 Nov 11 23:09:27 vdr vdr[20799]: changing transponder data of channel 1071 from S1.0W:12303:v:27800:3 to S1.0W:12303:v:27799:3 Nov 11 23:09:27 vdr vdr[20799]: changing transponder data of channel 1074 from S1.0W:12303:v:27800:3 to S1.0W:12303:v:27799:3
for some reason symbolrate fluctuates.
Some menu option I would like:
- Reload configfile - Run compleate - Autosort On/Off (disabled totally)
At 12:33 11.11.05 +0200, you wrote:
CopyPoint wrote:
Hi all, this is the first release of AutoSort-Plugin.
How do you specify CaValue ? As hexstring like CaValue=B00 for Conax
Yes. And until 'HasOpenCa' is ready, it searches for a substring. So CaValue=B0 catches also B01 and so on
vdr mailing list vdr@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr