Mailing List Archive

Channel Editor
Hi,

I try to use "Channel Editor" from https://www.mythtv.org/wiki/Channel_Editor.

But I get an error message:

chedit2.pl
syntax error at ./chedit2.pl line 7, near "<"
Excessively long <> operator at ./chedit2.pl line 18.

The first 18 lines are

1 #!/usr/bin/perl -w
2
3
4 <!DOCTYPE html>
5 <html lang="en">
6 <head>
7 <meta charset="utf-8">
8 <link rel="dns-prefetch" href="https://assets-cdn.github.com">
9 <link rel="dns-prefetch" href="https://
avatars0.githubusercontent.com">
10 <link rel="dns-prefetch" href="https://
avatars1.githubusercontent.com">
11 <link rel="dns-prefetch" href="https://
avatars2.githubusercontent.com">
12 <link rel="dns-prefetch" href="https://
avatars3.githubusercontent.com">
13 <link rel="dns-prefetch" href="https://github-cloud.s3.amazonaws.com">
14 <link rel="dns-prefetch" href="https://user-images.githubusercontent.com/">
15
16
17
18 <link crossorigin="anonymous" media="all" integrity="sha512-
PkbtxdWDpLChpxtWQ0KbvJoef4XMYPq5pfd/ZmylYZTzXYpCfGwN9d
+bsSKcmOJLwTkfjFkfj5wz3poDrhJoSQ==" rel="stylesheet" href="https://assets-cdn.github.com/assets/frameworks-f6e6ce21346c0d2eb22def1e8534afcb.css" />

The entire file is at https://github.com/PBrady43/Channel-Editor. I just
addited "#!/usr/bin/perl -w" at the first line.

I would like to contact the author.
At https://www.mythtv.org/wiki/Channel_Editor, he says: " See help>version for
the email address".

How to do that ?

Sincerely

Klaus




_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Channel Editor [ In reply to ]
On 6 June 2018 at 11:05, Klaus Becker <colonius@free.fr> wrote:


> I try to use "Channel Editor" from https://www.mythtv.org/wiki/
> Channel_Editor.
>
> But I get an error message:
>
>

?This 'channel editor' looks like it may be quite old. I've been running
mythtv for something like 8 years now and never used?
? it nor even heard of it before.

You should be able to do everything you need by using the channel editing
facility in 'mythtv-setup' and/or by using some simple sql scripts to
rename, renumber and re-order your channels. I have a script based on some
of the (UK) information here
https://www.mythtv.org/wiki/UK_Channel_Assignments

What are you trying to do exactly?

George
?
Re: Channel Editor [ In reply to ]
On Wed, Jun 06, 2018 at 12:05:51PM +0200, Klaus Becker wrote:
>Hi,
>
>I try to use "Channel Editor" from https://www.mythtv.org/wiki/Channel_Editor.
>
>But I get an error message:
>
>chedit2.pl
>syntax error at ./chedit2.pl line 7, near "<"
>Excessively long <> operator at ./chedit2.pl line 18.
>
>The first 18 lines are
>
> 1 #!/usr/bin/perl -w
> 2
> 3
> 4 <!DOCTYPE html>
> 5 <html lang="en">
> 6 <head>

This is HTML code, rather than perl. I would guess that you've
downloaded github's "presentation" of the perl file, rather than the
perl file itself. Try clicking the "raw" button when viewing the file:
that should prompt your browser to save the perl file.

[cut]

>The entire file is at https://github.com/PBrady43/Channel-Editor. I just
>addited "#!/usr/bin/perl -w" at the first line.
>
>I would like to contact the author.
>At https://www.mythtv.org/wiki/Channel_Editor, he says: " See help>version for
>the email address".
>
>How to do that ?
>
>Sincerely
>
>Klaus
>
>
>
>
>_______________________________________________
>mythtv-users mailing list
>mythtv-users@mythtv.org
>http://lists.mythtv.org/mailman/listinfo/mythtv-users
>http://wiki.mythtv.org/Mailing_List_etiquette
>MythTV Forums: https://forum.mythtv.org

--
For more information, please reread.
Re: Channel Editor [ In reply to ]
On 06/06/18 11:05, Klaus Becker wrote:
> Hi,
>
> I try to use "Channel Editor" from https://www.mythtv.org/wiki/Channel_Editor.
>
> But I get an error message:
>
> chedit2.pl
> syntax error at ./chedit2.pl line 7, near "<"
> Excessively long <> operator at ./chedit2.pl line 18.
>
> The first 18 lines are
>
> 1 #!/usr/bin/perl -w
> 2
> 3
> 4 <!DOCTYPE html>
> 5 <html lang="en">
> 6 <head>
> 7 <meta charset="utf-8">
> 8 <link rel="dns-prefetch" href="https://assets-cdn.github.com">
> 9 <link rel="dns-prefetch" href="https://
> avatars0.githubusercontent.com">
> 10 <link rel="dns-prefetch" href="https://
> avatars1.githubusercontent.com">
> 11 <link rel="dns-prefetch" href="https://
> avatars2.githubusercontent.com">
> 12 <link rel="dns-prefetch" href="https://
> avatars3.githubusercontent.com">
> 13 <link rel="dns-prefetch" href="https://github-cloud.s3.amazonaws.com">
> 14 <link rel="dns-prefetch" href="https://user-images.githubusercontent.com/">
> 15
> 16
> 17
> 18 <link crossorigin="anonymous" media="all" integrity="sha512-
> PkbtxdWDpLChpxtWQ0KbvJoef4XMYPq5pfd/ZmylYZTzXYpCfGwN9d
> +bsSKcmOJLwTkfjFkfj5wz3poDrhJoSQ==" rel="stylesheet" href="https://assets-cdn.github.com/assets/frameworks-f6e6ce21346c0d2eb22def1e8534afcb.css" />
>
> The entire file is at https://github.com/PBrady43/Channel-Editor. I just
> addited "#!/usr/bin/perl -w" at the first line.
>
> I would like to contact the author.
> At https://www.mythtv.org/wiki/Channel_Editor, he says: " See help>version for
> the email address".
>
> How to do that ?
>
> Sincerely
>
> Klaus
>
>
>
Assuming you are using *Ubuntu (16.04 or 18.04) or Debian Stretch, try
the following in a terminal session:

sudo apt install  git perl-tk libwww-perl

git clone https://github.com/PBrady43/Channel-Editor.git

cd Channel-Editor/

chmod +x chedit2.pl

Now you can run the Channel Editor at any time  by

./chedit2.pl <options>                        #where <options> are
whatever you want.

Mike

_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Channel Editor [ In reply to ]
On 6 June 2018 at 11:27, George Poulson <george.poulson@gmail.com> wrote:


> ?This 'channel editor' looks like it may be quite old. I've been running
> mythtv for something like 8 years now and never used?
> ? it nor even heard of it before.
>
>
?I just read the wiki page again and I can now see that the channel editor
is current and is an enhancement of the internal channel editing functions
but for normal operation of MythTV I think you can use the built-in
functions to get things working.

I agree with the last post and I think that you have not downloaded the
channel editor program properly.



?
Re: Channel Editor [ In reply to ]
Le mercredi 6 juin 2018, 13:28:23 CEST George Poulson a écrit :
> On 6 June 2018 at 11:27, George Poulson <george.poulson@gmail.com> wrote:
> > ?This 'channel editor' looks like it may be quite old. I've been running
> > mythtv for something like 8 years now and never used?
> > ? it nor even heard of it before.
>
> ?I just read the wiki page again and I can now see that the channel editor
> is current and is an enhancement of the internal channel editing functions
> but for normal operation of MythTV I think you can use the built-in
> functions to get things working.
>
> I agree with the last post and I think that you have not downloaded the
> channel editor program properly.


Yes, I downloaded it again and it works now.

I would list channels alphabetically by names, export and import the list.

I use Mythtv on two computers, after setup of my channel list on the first
computer, I want to import it on the second one.

I also found the email of the author and I can contact him now if needed.

Thanks

Klaus


_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Channel Editor [ In reply to ]
On 6 June 2018 at 13:46, Klaus Becker <colonius@free.fr> wrote:


> I use Mythtv on two computers, after setup of my channel list on the first
> computer, I want to import it on the second one.
>


??I just downloaded it and I think it will be useful for me too :-)
Glad you got it working.
George
Re: Channel Editor [ In reply to ]
Le mercredi 6 juin 2018, 12:27:29 CEST George Poulson a écrit :
> On 6 June 2018 at 11:05, Klaus Becker <colonius@free.fr> wrote:
> > I try to use "Channel Editor" from https://www.mythtv.org/wiki/
> > Channel_Editor.
>
> > But I get an error message:
> ?This 'channel editor' looks like it may be quite old. I've been running
> mythtv for something like 8 years now and never used?
> ? it nor even heard of it before.
>
> You should be able to do everything you need by using the channel editing
> facility in 'mythtv-setup' and/or by using some simple sql scripts to
> rename, renumber and re-order your channels. I have a script based on some
> of the (UK) information here
> https://www.mythtv.org/wiki/UK_Channel_Assignments

Looks good, but I want to watch german tv :-)

Klaus


>
> What are you trying to do exactly?
>
> George
> ?




_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Channel Editor [ In reply to ]
Le mercredi 6 juin 2018, 14:56:54 CEST George Poulson a écrit :
> On 6 June 2018 at 13:46, Klaus Becker <colonius@free.fr> wrote:
> > I use Mythtv on two computers, after setup of my channel list on the first
> > computer, I want to import it on the second one.
>
> ??I just downloaded it and I think it will be useful for me too :-)
> Glad you got it working.
> George


Fine

Klaus



_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Channel Editor [ In reply to ]
________________________________

>Le mercredi 6 juin 2018, 14:56:54 CEST George Poulson a ?crit :
>> On 6 June 2018 at 13:46, Klaus Becker <colonius@free.fr> wrote:
> > I use Mythtv on two computers, after setup of my channel list on the first
> > computer, I want to import it on the second one.
>
>> I just downloaded it and I think it will be useful for me too :-)
>> Glad you got it working.
>> George

>Fine
>Klaus


I will confirm that the channel editor is still alive and kicking and has had improvements such as the CSV interface to a spreadsheet and usability issues such as changing search path for perl 0.26 under OSX changed in recent months. Just perhaps though I should include a hint as to my email address in the head of the script.

I understand that Klaus was also interested in sorting channels as viewed within the frontend. Frontend > setup > video > general allows sorting by either callsign or channel number. If some other order is required then changing channel numbers within the editor or in a spreadsheet should achieve that.

Regards
Phil Brady
Re: Channel Editor [ In reply to ]
On 09/06/18 18:41, Philip Brady wrote:
>
>
>
>
> ------------------------------------------------------------------------
>
> >Le mercredi 6 juin 2018, 14:56:54 CEST George Poulson a ?crit :
> >> On 6 June 2018 at 13:46, Klaus Becker <colonius@free.fr> wrote:
> > > I use Mythtv on two computers, after setup of my channel list on
> the first
> > > computer, I want to import it on the second one.
> >
> >> I just downloaded it and I think it will be useful for me too :-)
> >> Glad you got it working.
> >> George
>
> >Fine
> >Klaus
>
>
> I will confirm that the channel editor is still alive and kicking and
> has had improvements such as the CSV interface to a spreadsheet
> and?usability issues such as changing search path for perl 0.26 under
> OSX changed?in recent months.? Just perhaps though I should include a
> hint as to my email address in the head of the script.
>
> I understand that Klaus was also?interested in sorting channels as
> viewed within the frontend.? ? Frontend > setup > video > general
> allows sorting by either callsign or channel number.? If some other
> order is required then changing channel numbers within the editor or
> in a spreadsheet?should achieve?that.
>
> Regards
> Phil Brady
>

Phil,

Mythtv Frontend ordering by channel number or callsign is broken in
mythtv fixes/0.29 and on, see https://code.mythtv.org/trac/ticket/13154

Mike
Re: Channel Editor [ In reply to ]
Le samedi 9 juin 2018, 20:35:43 CEST Mike Bibbings a ?crit :
> On 09/06/18 18:41, Philip Brady wrote:
...

> Phil,
>
> Mythtv Frontend ordering by channel number or callsign is broken in
> mythtv fixes/0.29 and on, see https://code.mythtv.org/trac/ticket/13154
>
> Mike


Hi,

How to apply the patch ?

Klaus



_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Channel Editor [ In reply to ]
According to the ticket the patch has now been applied and will be released
in Master and 29-fixes

George




>
Re: Channel Editor [ In reply to ]
Den 2018-06-09 kl. 22:40, skrev George Poulson:
>
> According to the ticket the patch has now been applied and will be released in Master and 29-fixes

I fixed it in a different way than the patch did, but yes, it should work in master and fixes/29 now.

Cheers
Jonatan
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Channel Editor [ In reply to ]
>Den 2018-06-09 kl. 22:40, skrev George Poulson:
>>
>> According to the ticket the patch has now been applied and will be released in Master and 29-fixes
>
>I fixed it in a different way than the patch did, but yes, it should work in master and fixes/29 now.
>
>Cheers
>Jonatan

I'm seeking clarification from the experts in order to update the channel editor wiki.

Under 0.27 if I alter channel numbers via the editor and choose frontend sort by channel number, I can change the order of display.

Is that still the case with 29 pre-bugfix? https://code.mythtv.org/trac/ticket/13154 suggests that sorting is by ID not Channel no. or callsign.

If on a bugfixed 29 you change callsigns to alter sort order and choose frontend sort by callsign, will there be any adverse effects like failure to tune or the need to re-create recording rules?

Phil
Re: Channel Editor [ In reply to ]
On 12/06/18 18:31, Philip Brady wrote:
>
>
> >Den 2018-06-09 kl. 22:40, skrev George Poulson:
> >>
> >> According to the ticket the patch has now been applied and will be
> released in Master and 29-fixes
> >
> >I fixed it in a different way than the patch did, but yes, it should
> work in master and fixes/29 now.
> >
> >Cheers
> >Jonatan
>
> I'm seeking clarification from the experts?in order?to update the
> channel editor?wiki.
>
> Under 0.27 if I alter channel numbers via the editor and choose
> frontend sort by channel number, I can change the order of display.
>
> Is that still the case with 29 pre-bugfix?
> https://code.mythtv.org/trac/ticket/13154suggests that sorting is by
> ID not?Channel no. or callsign.
>
> If on a bugfixed 29? you?change callsigns to alter sort order and
> choose frontend sort by callsign, will there be any adverse effects
> like failure to tune or the need to re-create recording rules?
>
> Phil
>
The original trac ticket wording was a little loose, ID was actually
channel number.

I had a quick look at the commit in master and it seems to sort on name
or channel number, it looks for callsign in the code (backend settings
value) and if found sorts by name.

In mythfrontend it only affects display.

For DVB-T/T2/S/S2 in UK, mythtv scanning sets name and callsign
initially to the same value, I don't know if this is true for atsc or
some Schedules Direct formats.

I don't know for sure if changing a callsign or name affects recording
rules, although I suspect it will? if "Filter Options" "This channel" in
a recording rule is set.

From a quick look at scheduler.cpp it looks like it uses callsign
(recording rules use Station), which if I am correct means changing a
callsign would affect existing recording rules, as would making a
channel not Visible.

Mike
Re: Channel Editor [ In reply to ]
On 12 June 2018 at 19:47, Mike Bibbings <mike.bibbings@gmail.com> wrote:


> From a quick look at scheduler.cpp it looks like it uses callsign
> (recording rules use Station), which if I am correct means changing a
> callsign would affect existing recording rules, as would making a channel
> not Visible.
>
>
?My understanding is that setting a channel to 'not visible' will cause any
programmes already scheduled to record on that channel to no longer do so.
It may of course be that the same programme *could* then be re-scheduled?
to record on another (still visible) channel.

I've never really looked into the effects on scheduling of changing channel
numbers, callsigns or names (all of which I have edited pretty arbitrarily
to suit my needs) but I've always assumed (probably wrongly!) that
scheduling used a more 'fixed' vaule such as channel id ('chanid' in the
database) - especially as recordings and schedules can be viewed in mythweb
at (typically) http://192.168.0.4/mythweb/tv/detail/*7941*/1528830000 -
where 7941 is the MythTV 'chanid' value.

Just another example of the versatility and functionality of MythTV that
never fails to amaze me :-)

George
Re: Channel Editor [ In reply to ]
On Tue, 12 Jun 2018 20:10:04 +0100, you wrote:

>On 12 June 2018 at 19:47, Mike Bibbings <mike.bibbings@gmail.com> wrote:
>
>
>> From a quick look at scheduler.cpp it looks like it uses callsign
>> (recording rules use Station), which if I am correct means changing a
>> callsign would affect existing recording rules, as would making a channel
>> not Visible.
>>
>>
>?My understanding is that setting a channel to 'not visible' will cause any
>programmes already scheduled to record on that channel to no longer do so.
>It may of course be that the same programme *could* then be re-scheduled?
>to record on another (still visible) channel.
>
>I've never really looked into the effects on scheduling of changing channel
>numbers, callsigns or names (all of which I have edited pretty arbitrarily
>to suit my needs) but I've always assumed (probably wrongly!) that
>scheduling used a more 'fixed' vaule such as channel id ('chanid' in the
>database) - especially as recordings and schedules can be viewed in mythweb
>at (typically) http://192.168.0.4/mythweb/tv/detail/*7941*/1528830000 -
>where 7941 is the MythTV 'chanid' value.
>
>Just another example of the versatility and functionality of MythTV that
>never fails to amaze me :-)
>
>George

Changing the name field for a channel does not cause problems. The
callsign is the one used to match recording rules, so changing that
will make all the recording rules fail, unless you update the matching
station field in the record table, and also any custom SQL in custom
rules. That SQL is stored in the description field in rules that are
custom types, but I do not remember what the type field values are for
the custom type rules. The chanid in recording rules does not seem to
be used for much, but I have never delved into the code to check on
that.
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Channel Editor [ In reply to ]
Thanks all. I recall now that after a retune when the transmitting authorities changed callsign for BBC ONE to BBC ONE LON that all my BBC ONE recoding rules failed and needed recreating.

I have updated the italicised bit in the wiki which I hope reflects reality, but I was unable to put in the url for the bug fix!

https://www.mythtv.org/wiki/Channel_Editor#Sort_menu


Thanks again all.

Phil
Re: Channel Editor [ In reply to ]
On 10/16/23 10:47, Ken Mandelberg wrote:
> Peter
>
> In the old mythtv-setup/channel-editor, I would just delete channels
> that I don't want scheduled. I'm not sure what the equivalent is in
> the app channel editor. Is it just "never visible"?
>
> Ken
>
>
You can delete channels if you open the channel editor in the setup
section (cogwheel). You need to click "Enable updates", which disables
recordings until you restart with the "Restart backend" button.

Peter


_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org