Mailing List Archive

Important: Changes to Metadata lookup in March 2021
This information is in the MythTV wiki at
https://www.mythtv.org/wiki/Metadata_Lookup_Changes_March_2021


Metadata Lookup Changes March 2021


Important.png <https://www.mythtv.org/wiki/File:Important.png>*Note:*For
TV series metadata lookup to continue working, you must update as
described here.

MythTV metadata lookup uses thetvdb.com as source for TV show
information and artwork. TheTVDB is changing their business model to
require a subscription payment to use the API. The existing API will be
shut down around March 2021.

MythTV fixes/31 and master (v32-Pre) have been updated to support two
new sources. For metadata lookups on TV shows to continue working, you
need to upgrade your system. To be able to make the new selection, both
backend and frontend must be upgraded (if you use separate machines for
backend and frontend).

You can select one of these options in mythfrontend -> setup -> Artwork
and Data Sources -> Television Metadata Source. You need to change this
for metadata lookup to continue working. Select one of the following two
options.

* *TheMovieDB.org V3 television*. TheMovieDB is used for Movie
lookups. It can now be used for TV series lookups as well.
* *TVmaze.com*.

If you have recording rules that have inetref specified as
ttvdb.py_nnnnn these must be changed or metadata lookups for future
recordings will fail. Appropriate values are as follows:

* tmdb3tv.py_nnnnn for lookup of TV series using themoviedb.org.
* tvmaze.py_nnnnn for lookup of TV series using tvmaze.com.
* tmdb3.py_nnnnn for lookup of movies using themoviedb.org.

In each case, nnnnn is the inetref for the series or movie at the
appropriate site. These numbers are different for each site, so you
cannot just change the prefix.

You can update recording rules from mythfrontend by clearing out the
inetref field and clicking the search button to search using the source
that you selected in frontend setup. This does not work with
mythfrontend on Android.

Note that it is perfectly acceptable to have some rules using
tmdb3tv.py_nnnnn and some using tvmaze.py_nnnnn at the same time. They
will be looked up using the appropriate service. If you have some that
are still using ttvdb, they will continue to work until the old ttvdb
service is shut down.

If you haveLeanfront <https://www.mythtv.org/wiki/Leanfront>on Android
or on an emulator on a PC, you can search both tvmaze and themoviedb
without changing the frontend setup. That way you can check for each
show which service will support it and set up accordingly.


Ubuntu and Xubuntu Focal (20.04)

If you installed using Ubuntu packages, you can add the ppa and perform
an upgrade to get the latest version.


Other distributions

Build from git branch fixes/31 or master, depending on your version.
Re: Important: Changes to Metadata lookup in March 2021 [ In reply to ]
On 22/02/2021 20:41, Peter Bennett wrote:
> This information is in the MythTV wiki at
> https://www.mythtv.org/wiki/Metadata_Lookup_Changes_March_2021
>
>
> Metadata Lookup Changes March 2021
>
>
It's just awesome that this has been addressed before it becomes a
problem. Astounding work. Thank you.
_______________________________________________
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: Important: Changes to Metadata lookup in March 2021 [ In reply to ]
On 22/02/2021 21:30, Paul Gardiner wrote:
> On 22/02/2021 20:41, Peter Bennett wrote:
>> This information is in the MythTV wiki at
>> https://www.mythtv.org/wiki/Metadata_Lookup_Changes_March_2021
>>
>>
>>   Metadata Lookup Changes March 2021
>>
>>
> It's just awesome that this has been addressed before it becomes a
> problem. Astounding work. Thank you.

Oh, and a quick question. I'm building my own packages. Any extra build
flags I need for the build and files I need to allocate to packages?
_______________________________________________
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: Important: Changes to Metadata lookup in March 2021 [ In reply to ]
On 2/22/21 4:37 PM, Paul Gardiner wrote:
> On 22/02/2021 21:30, Paul Gardiner wrote:
>> On 22/02/2021 20:41, Peter Bennett wrote:
>>> This information is in the MythTV wiki at
>>> https://www.mythtv.org/wiki/Metadata_Lookup_Changes_March_2021
>>>
>>>
>>>   Metadata Lookup Changes March 2021
>>>
>>>
>> It's just awesome that this has been addressed before it becomes a
>> problem. Astounding work. Thank you.
>
> Oh, and a quick question. I'm building my own packages. Any extra
> build flags I need for the build and files I need to allocate to
> packages?

Nothing special needs to be done. The normal build will include the new
and changed modules.

_______________________________________________
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: Important: Changes to Metadata lookup in March 2021 [ In reply to ]
>
> - *TheMovieDB.org V3 television*. TheMovieDB is used for Movie
> lookups. It can now be used for TV series lookups as well.
> - *TVmaze.com*.
>
>
Is there any benefit to using one over the other?
Re: Important: Changes to Metadata lookup in March 2021 [ In reply to ]
On Mon, 2021-02-22 at 15:41 -0500, Peter Bennett wrote:
> This information is in the MythTV wiki at 
> http://email.mg.glenb.net/c/eJxFjs0KgzAQhJ9Gb5V1TbQ55FAKPdVnCBuzGvGXGCt9-1p6KAwMfDAf43TTkpMi7XVbiVIJYISCZG4Vc14KkoSgrFOOUQA6xZg1NPGYCOhGnm02c0y9hqssgZ2yVa5AMEhmi9AUKCogWbl01D7GdUuKW4KPM8dxZNM7-vjKltB9QT_0Z9UcyVEk81yWYV_N3dPc8WZqCo03CJinQf-Gl33jsJ1H_p4PKZNB_A
> Metadata Lookup Changes March 2021
>  Note: For TV series metadata lookup to continue working, you must
> update as described here.
> MythTV metadata lookup uses thetvdb.com as source for TV show
> information and artwork. TheTVDB is changing their business model to
> require a subscription payment to use the API. The existing API will
> be shut down around March 2021.
> MythTV fixes/31 and master (v32-Pre) have been updated to support two
> new sources. For metadata lookups on TV shows to continue working,
> you need to upgrade your system. To be able to make the new
> selection, both backend and frontend must be upgraded (if you use
> separate machines for backend and frontend).
> You can select one of these options in mythfrontend -> setup ->
> Artwork and Data Sources -> Television Metadata Source. You need to
> change this for metadata lookup to continue working. Select one of
> the following two options.
> * TheMovieDB.org V3 television. TheMovieDB is used for Movie lookups.
> It can now be used for TV series lookups as well.
> * TVmaze.com.
> If you have recording rules that have inetref specified as
> ttvdb.py_nnnnn these must be changed or metadata lookups for future
> recordings will fail. Appropriate values are as follows:
> * tmdb3tv.py_nnnnn for lookup of TV series using themoviedb.org.
> * tvmaze.py_nnnnn for lookup of TV series using tvmaze.com.
> * tmdb3.py_nnnnn for lookup of movies using themoviedb.org.
> In each case, nnnnn is the inetref for the series or movie at the
> appropriate site. These numbers are different for each site, so you
> cannot just change the prefix.
> You can update recording rules from mythfrontend by clearing out the
> inetref field and clicking the search button to search using the
> source that you selected in frontend setup. This does not work with
> mythfrontend on Android.
> Note that it is perfectly acceptable to have some rules using
> tmdb3tv.py_nnnnn and some using tvmaze.py_nnnnn at the same time.
> They will be looked up using the appropriate service. If you have
> some that are still using ttvdb, they will continue to work until the
> old ttvdb service is shut down.
> If you have Leanfront on Android or on an emulator on a PC, you can
> search both tvmaze and themoviedb without changing the frontend
> setup. That way you can check for each show which service will
> support it and set up accordingly.
> Ubuntu and Xubuntu Focal (20.04)If you installed using Ubuntu
> packages, you can add the ppa and
> perform an upgrade to get the latest version.
> Other distributionsBuild from git branch fixes/31 or master,
> depending on your version.
>
>
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users@mythtv.org
> http://email.mg.glenb.net/c/eJxNjs0OwiAQhJ-m3CRbWGg5cPDie_CzbUkATUET395qTDSZy3wzk0y0YXFRIUt2mVAbBBIgnRq9IRo1OuUEGB9NJIEgoiHBgyuUB4Q1U_W8UmebFRBiHGc9T0TegAwRvZ6lmgCVCaRYtlvvt0GeB3E5lFPrjZdn3_qDX_f1QMWlXFz9hqku1zf8NE73Rntju_23x4Pf_gWUJ0BS
> http://email.mg.glenb.net/c/eJxFjbsOgkAQRb-G7STL7ABOsYWNlX4D2ccAGxdUGDT-vSQWJrc6OSc32tC7WKNKtm-xIdQM2ri68sRcNehqB5p8pMiAGiIxlMFNnAvUQ-bZlzOLGq2PiEdqDVZoAgdoQtv0R2famjwQaZXtKPIozKmA8753uqVy-sgor_K-DDu5upTTPHSXtErHkp4bi7Ba7M86bCsv6_76j76XQzvp
> MythTV Forums: http://email.mg.glenb.net/c/eJxFjMsKwyAQAL8m3iq6rol78NBL_8O4a1LIoxhT6N830ENhLsPAcMwlsUf1jGXAntAIGJe8HUnE9ph8AkMjEwugASYBndMqS4dmWmQb9SZNzbHPngKzS4IhU_AlO2vCQEUIivVZLXFu7XV07t7B46Ls9Vz1-mlze-u9TqrGn9zOQ-px7f_tC9B4M9k
peter, where in leanfront do you do the metadata search ?
Re: Important: Changes to Metadata lookup in March 2021 [ In reply to ]
On Mon, Feb 22, 2021 at 03:41:35PM -0500, Peter Bennett wrote:
...

>
> If you have recording rules that have inetref specified as ttvdb.py_nnnnn
> these must be changed or metadata lookups for future recordings will fail.
> Appropriate values are as follows:
>
> * tmdb3tv.py_nnnnn for lookup of TV series using themoviedb.org.
> * tvmaze.py_nnnnn for lookup of TV series using tvmaze.com.
> * tmdb3.py_nnnnn for lookup of movies using themoviedb.org.
>
> In each case, nnnnn is the inetref for the series or movie at the
> appropriate site. These numbers are different for each site, so you cannot
> just change the prefix.
>

To get a quick idea of how many rules are affected by this,
is this a reasonable query to make?

[mythconverg]> select title,inetref from record where inetref like 't%';
+------------------+-----------------+
| title | inetref |
+------------------+-----------------+
| PBS NewsHour | ttvdb.py_81388 |
| Backyard Science | ttvdb.py_259567 |
+------------------+-----------------+
2 rows in set (0.001 sec)

I ask because there are bunch of tables with 'inetref' columns -
I am guessing the recording rules live in the 'record' table.
Correct?

I'm not not going to be changing things with sql, but it seems
a query like this might make fixing things quicker if only a
few rules are affected.

Just to repeat your explanation with a specific example, for the
above I would have to change ttvdb.py_81388 to tmdb3tv.py_1655
if I wanted to use the tmdb3tv source [1]. But if I find the rule,
clear the inetref field and search for metadata, that should
automatically select the right _nnnn suffix?

Thanks for getting out in front of this change.
Vince

[1] https://www.themoviedb.org/tv/1655
_______________________________________________
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: Important: Changes to Metadata lookup in March 2021 [ In reply to ]
On 23/02/2021 09:34, lists@arewethere.net wrote:
> On Mon, Feb 22, 2021 at 03:41:35PM -0500, Peter Bennett wrote:
> ...
>
>>
>> If you have recording rules that have inetref specified as ttvdb.py_nnnnn
>> these must be changed or metadata lookups for future recordings will fail.
>> Appropriate values are as follows:
>>
>> * tmdb3tv.py_nnnnn for lookup of TV series using themoviedb.org.
>> * tvmaze.py_nnnnn for lookup of TV series using tvmaze.com.
>> * tmdb3.py_nnnnn for lookup of movies using themoviedb.org.
>>
>> In each case, nnnnn is the inetref for the series or movie at the
>> appropriate site. These numbers are different for each site, so you cannot
>> just change the prefix.
>>
>
> To get a quick idea of how many rules are affected by this,
> is this a reasonable query to make?
>
> [mythconverg]> select title,inetref from record where inetref like 't%';
> +------------------+-----------------+
> | title | inetref |
> +------------------+-----------------+
> | PBS NewsHour | ttvdb.py_81388 |
> | Backyard Science | ttvdb.py_259567 |
> +------------------+-----------------+
> 2 rows in set (0.001 sec)
>
> I ask because there are bunch of tables with 'inetref' columns -
> I am guessing the recording rules live in the 'record' table.
> Correct?
>
> I'm not not going to be changing things with sql, but it seems
> a query like this might make fixing things quicker if only a
> few rules are affected.
>
> Just to repeat your explanation with a specific example, for the
> above I would have to change ttvdb.py_81388 to tmdb3tv.py_1655
> if I wanted to use the tmdb3tv source [1]. But if I find the rule,
> clear the inetref field and search for metadata, that should
> automatically select the right _nnnn suffix?

I was thinking I would make changes with SQL. My understanding may well
be off, but I imagined that only the recording rules matter. All
existing recordings will just stay as they are. I'm assuming that any
update process (if there is one), when failing, will just leave the
metadata as is.

For the recording rules I was thinking to just NULL all the inetref
fields and let mythbackend recreate them. I think there's some sort of
automatic process for that.

Am I way off here?

_______________________________________________
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: Important: Changes to Metadata lookup in March 2021 [ In reply to ]
On 22/02/2021 22:49, John Hoyt wrote:
>
> * *TheMovieDB.org V3 television*. TheMovieDB is used for Movie
> lookups. It can now be used for TV series lookups as well.
> * *TVmaze.com*.
>
>
> Is there any benefit to using one over the other?

All updated and working here. In a test, admittedly with just one show,
I seemed to get much better results with TheMovieDB.org V3 television.
_______________________________________________
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: Important: Changes to Metadata lookup in March 2021 [ In reply to ]
On Tue, Feb 23, 2021 at 5:44 AM Paul Gardiner <lists@glidos.net> wrote:

> On 22/02/2021 22:49, John Hoyt wrote:
> >
> > * *TheMovieDB.org V3 television*. TheMovieDB is used for Movie
> > lookups. It can now be used for TV series lookups as well.
> > * *TVmaze.com*.
> >
> >
> > Is there any benefit to using one over the other?
>
> All updated and working here. In a test, admittedly with just one show,
> I seemed to get much better results with TheMovieDB.org V3 television.
>
> Not sure I understand all this and not sure if I should care, but I'll ask
anyway.

1. I updated the backend, and all frontends including FireTV and
Nvidia Shield TV to v31.0-138.
2. I don't know how to change anything about metadata lookups so I
probably have not messed with it.
3. This morning everything that recorded yesterday has metadata, like
details on the story plot, actors, trailer stills

So have I done all I need to do?

Jim A
Re: Important: Changes to Metadata lookup in March 2021 [ In reply to ]
On Tue, 2021-02-23 at 06:56 -0500, James Abernathy wrote:
>
>
> On Tue, Feb 23, 2021 at 5:44 AM Paul Gardiner <lists@glidos.net>
> wrote:
> > On 22/02/2021 22:49, John Hoyt wrote:
> > >
> > >       * *TheMovieDB.org V3 television*. TheMovieDB is used for
> > Movie
> > >         lookups. It can now be used for TV series lookups as
> > well.
> > >       * *TVmaze.com*.
> > >
> > >
> > > Is there any benefit to using one over the other?
> >
> > All updated and working here. In a test, admittedly with just one
> > show,
> > I seemed to get much better results with TheMovieDB.org V3
> > television.
> >
> >
>
> Not sure I understand all this and not sure if I should care, but
> I'll ask anyway.
>
> 1.  I updated the backend, and all frontends including FireTV and
> Nvidia Shield TV to v31.0-138.
> 2.  I don't know how to change anything about metadata lookups so I
> probably have not messed with it.
> 3. This morning everything that recorded yesterday has metadata, like
> details on the story plot, actors, trailer stills
>
> So have I done all I need to do?
>
> Jim A
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users@mythtv.org
> http://email.mg.glenb.net/c/eJxNjksOwiAURVdTZhL-0AEDJ-7j8aAtCVRT0MTdi8ZEkzu5n5Pc6HGBqBXJfgYmuDDROCVY4kEnB5FbXIQLxoJxcQY7W0kRaiqTYmtJe6B76mTzWosokEUFQaLjjmtAyRAcHwiiJcVvvd8meZ7EZajk1hutz771B70e64gq5FJh_5Z5X67v8LM43Vs6Gjn8vx0PfvwLiKBATQ
> http://email.mg.glenb.net/c/eJxFjUEOgjAQRU8DO5t22tKy6MKNKz2DmbYDNAIqDBpvL4kLk796eS8_h9RhtqYuoUUJCprceAOSVLTkMSuXOvCxcdj43KJrnRYJJxorI_uR5ihm4noITkFSKmXddZDBYvQWtdLOthGkN1iPYWB-VPpYwWnfu9yKmD488Evcl34nFyxjmfvruax8JS7PjZipXsLPOmwrLev--o--nZo8Bg
> MythTV Forums: http://email.mg.glenb.net/c/eJxFjDsKAyEUAE-zdhF9_guLNLnH06e7gf0EdQO5fRZSBKYZBoZirkhGs2cMKECCJes1iCKTKR5JulzBJ-vQegroglM841bWSYt5LXviexlsiQaTVFnL4iBUsqCcoGoD5WTIC7BsjcsYrz6p-wSPi3q0c-PbZyzjzY82sxZ_cjt7af3a_9sXuNczng
in frontend in setup, choose artwork and metadata and set tv to one of
the two new sources. tmdb or tvmaze. the ttvdb will not work after
march 1st. currently it still works.
Re: Important: Changes to Metadata lookup in March 2021 [ In reply to ]
Is this change being ported back to some older versions? Still on 29-fixes
for now.
Re: Important: Changes to Metadata lookup in March 2021 [ In reply to ]
On Tue, Feb 23, 2021 at 7:01 AM glen <glenb@glenb.net> wrote:

> On Tue, 2021-02-23 at 06:56 -0500, James Abernathy wrote:
>
>
>
> On Tue, Feb 23, 2021 at 5:44 AM Paul Gardiner <lists@glidos.net> wrote:
>
> On 22/02/2021 22:49, John Hoyt wrote:
> >
> > * *TheMovieDB.org V3 television*. TheMovieDB is used for Movie
> > lookups. It can now be used for TV series lookups as well.
> > * *TVmaze.com*.
> >
> >
> > Is there any benefit to using one over the other?
>
> All updated and working here. In a test, admittedly with just one show,
> I seemed to get much better results with TheMovieDB.org V3 television.
>
>
> Not sure I understand all this and not sure if I should care, but I'll ask
> anyway.
>
> 1. I updated the backend, and all frontends including FireTV and
> Nvidia Shield TV to v31.0-138.
> 2. I don't know how to change anything about metadata lookups so I
> probably have not messed with it.
> 3. This morning everything that recorded yesterday has metadata, like
> details on the story plot, actors, trailer stills
>
> So have I done all I need to do?
>
> Jim A
>
> in frontend in setup, choose artwork and metadata and set tv to one of the
> two new sources. tmdb or tvmaze. the ttvdb will not work after march 1st.
> currently it still works.
>

Only my PC based front ends have anything in the Artwork and Metadata setup
and it's TheMovieDB.org v3 that is mentioned in the OP. The Television
section has that as well, but can be changed to tvmaze, but it's set the
same as movies now. Android TV frontends don't have anything in those
fields, which I'm told is normal.

So I didn't change anything and the updates seem to have updated those
settings now for the March 31st change.
Re: Important: Changes to Metadata lookup in March 2021 [ In reply to ]
On 2/22/21 8:23 PM, glen wrote:
> peter, where in leanfront do you do the metadata search ?

Make sure you have the latest leanfront from the new download site.

Bottom of the main screen -> Tools -> Manage Recordings -> Recording Rules.

Right arrow to one of the rules, press enter, down arrow to Metadata
Settings.

Press Enter on Metadata Settings, down arrow to buttons for searching
TheMovieDB and tvmaze.

Peter
Re: Important: Changes to Metadata lookup in March 2021 [ In reply to ]
On 2/23/21 4:34 AM, lists@arewethere.net wrote:
> On Mon, Feb 22, 2021 at 03:41:35PM -0500, Peter Bennett wrote:
> ...
>
>> If you have recording rules that have inetref specified as ttvdb.py_nnnnn
>> these must be changed or metadata lookups for future recordings will fail.
>> Appropriate values are as follows:
>>
>> * tmdb3tv.py_nnnnn for lookup of TV series using themoviedb.org.
>> * tvmaze.py_nnnnn for lookup of TV series using tvmaze.com.
>> * tmdb3.py_nnnnn for lookup of movies using themoviedb.org.
>>
>> In each case, nnnnn is the inetref for the series or movie at the
>> appropriate site. These numbers are different for each site, so you cannot
>> just change the prefix.
>>
> To get a quick idea of how many rules are affected by this,
> is this a reasonable query to make?
>
> [mythconverg]> select title,inetref from record where inetref like 't%';
> +------------------+-----------------+
> | title | inetref |
> +------------------+-----------------+
> | PBS NewsHour | ttvdb.py_81388 |
> | Backyard Science | ttvdb.py_259567 |
> +------------------+-----------------+
> 2 rows in set (0.001 sec)
>
> I ask because there are bunch of tables with 'inetref' columns -
> I am guessing the recording rules live in the 'record' table.
> Correct?
Correct.
> I'm not not going to be changing things with sql, but it seems
> a query like this might make fixing things quicker if only a
> few rules are affected.
>
> Just to repeat your explanation with a specific example, for the
> above I would have to change ttvdb.py_81388 to tmdb3tv.py_1655
> if I wanted to use the tmdb3tv source [1]. But if I find the rule,
> clear the inetref field and search for metadata, that should
> automatically select the right _nnnn suffix?
Correct. You can see it make the change on screen when you do that, then
save the change.
> Thanks for getting out in front of this change.
> Vince
>
> [1] https://www.themoviedb.org/tv/1655
> _______________________________________________
> 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
_______________________________________________
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: Important: Changes to Metadata lookup in March 2021 [ In reply to ]
On Tue, 2021-02-23 at 09:41 -0500, Peter Bennett wrote:
>
> On 2/22/21 8:23 PM, glen wrote:
>
> > peter, where in leanfront do you do the metadata search ?
> Make sure you have the latest leanfront from the new download site.
> Bottom of the main screen -> Tools -> Manage Recordings -> Recording
> Rules.
> Right arrow to one of the rules, press enter, down arrow to Metadata
> Settings.
> Press Enter on Metadata Settings, down arrow to buttons for searching
> TheMovieDB and tvmaze.
> Peter
>
> >
> _______________________________________________
> mythtv-users mailing list
> mythtv-users@mythtv.org
> http://email.mg.glenb.net/c/eJxNjk0OwiAUhE9TdhL-CwsWbrwH8B4tCVRT0MTbW42JJrOZb2aSAZ9yAK1I8VoJNQcUOjglLXBgNkHWhjPNjIUcjUiZoaQpNKyTYkvFLdINB1k9U7M0AcEpgJxmF2NyylgnubDWICfVr2PcJnmexOVQLX102p5jHQ963ZcDtVBqC9s3LFu-vuGncbp33DvZ_b89Hvz2L5rkQGI
> http://email.mg.glenb.net/c/eJxFjTsOwjAQBU8Td1j-rXEKFzRUcIbIn3VikQRINiBuTyQKpFeNZvSyTyVkMKx6MMocAyoIrdEuyyxcygWsFCCsyyValYpAzVOYcGyM6EecI5-R2OBFUlKn3JqEsUhrikYQGmLRDmRoFRv9QPRo9KlR533veqt8-tBAL35f-p1cQx3r3HeXulKHVJ8bEiFb_M86bCsu6_76j77FHDxf
> MythTV Forums: http://email.mg.glenb.net/c/eJxFjMsKwyAQAL8muVU2q67m4KGX_oe6blLIoxhT6N830ENhLsPAcMgS2Zr-GaxB42JBG0ejPQ8MPrNYGsACeZZEmAWKVjmuZekMTEvZktpK6-eQgEk8UXJEg0Ox2vsRyYFzDHj9lzC39jo6fe_wcSF7PVe1ftrc3mqvU1_DT27nUepx7f_tC3w9MrU
thanks peter, got it. i'm on arch linux, i rebuilt myth and installed
current android clients i use. i'm all set on future recordings. not
sure about large library of existing recordings. would there be a way
to make a script to remove all ttvdb.py references and then run
mythmetadatalookup --refresh-all and mythmetadatalookup --refresh-all-
artwork to fix everything else ?
Re: Important: Changes to Metadata lookup in March 2021 [ In reply to ]
On 2/23/21 10:25 AM, glen wrote:
> thanks peter, got it. i'm on arch linux, i rebuilt myth and installed
> current android clients i use. i'm all set on future recordings. not
> sure about large library of existing recordings. would there be a way
> to make a script to remove all ttvdb.py references and then run
> mythmetadatalookup --refresh-all and mythmetadatalookup
> --refresh-all-artwork to fix everything else ?
>
Existing recordings will be OK. They have already downloaded their
artwork etc. I would just leave them as is. I am not sure about the
refresh-all and refresh-all-artwork. I don't think they will perform
lookups to find an updated inetref for the recordings.
Re: Important: Changes to Metadata lookup in March 2021 [ In reply to ]
On 2/23/21 5:41 AM, Paul Gardiner wrote:
> I was thinking I would make changes with SQL. My understanding may
> well be off, but I imagined that only the recording rules matter. All
> existing recordings will just stay as they are. I'm assuming that any
> update process (if there is one), when failing, will just leave the
> metadata as is.
>
> For the recording rules I was thinking to just NULL all the inetref
> fields and let mythbackend recreate them. I think there's some sort of
> automatic process for that.
>
> Am I way off here?
>
mythbackend will not update inetref in the recording rules.
metadatalookup for individual recordings will update it for the
recording but will not update the recording rule. You can leave the
entries in the recording rules blank and metadata lookup will find a
result based on the name. If the first result for that name is the
correct show, it will work fine. The main reason for adding the inetref
to a recording rule is for when there are more than one show with the
same name, and it may select the wrong one. Another reason is if the
name in tmaze or tmdb does not match the name in the schedule. (Like all
the PBS shows called xxxxx on Masterpiece where xxxxx is the actual show
name.)
_______________________________________________
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: Important: Changes to Metadata lookup in March 2021 [ In reply to ]
On 2/23/21 5:44 AM, Paul Gardiner wrote:
> On 22/02/2021 22:49, John Hoyt wrote:
>>
>>       * *TheMovieDB.org V3 television*. TheMovieDB is used for Movie
>>         lookups. It can now be used for TV series lookups as well.
>>       * *TVmaze.com*.
>>
>>
>> Is there any benefit to using one over the other?
>
> All updated and working here. In a test, admittedly with just one
> show, I seemed to get much better results with TheMovieDB.org V3
> television.
> _______________________________________________
>
I found that some old or obscure shows may be on tvmaze but not on the
movie database. Another difference is that tvmaze does not take account
of your language selection, so if you are a non-English speaker and
looking up English show names it may give the description in English
rather than your native language.
_______________________________________________
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: Important: Changes to Metadata lookup in March 2021 [ In reply to ]
On 2/23/21 6:56 AM, James Abernathy wrote:
> Not sure I understand all this and not sure if I should care, but I'll
> ask anyway.
>
> 1.  I updated the backend, and all frontends including FireTV and
> Nvidia Shield TV to v31.0-138.
> 2.  I don't know how to change anything about metadata lookups so I
> probably have not messed with it.
> 3. This morning everything that recorded yesterday has metadata, like
> details on the story plot, actors, trailer stills
>
> So have I done all I need to do?
>
> Jim A
>
As long as you went into the fronetnd setup for artwork and metadata and
changed The TV Database to one of the other options you should be fine.
_______________________________________________
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: Important: Changes to Metadata lookup in March 2021 [ In reply to ]
On 2/23/21 7:12 AM, Ian Evans wrote:
> Is this change being ported back to some older versions? Still on
> 29-fixes for now.
>

You must be on an older version of Linux. I see that the v0.29 ppa has
not been built since 2019, so I don't know if it is still built. It
probably has python 2.

The metadata lookup python modules are independent of the mythtv
version, and should probably have been a separate package.

It may be possible to drop the new modules into your installation and
compile the python, and it should work, but I don't have an easy way of
testing it.

Anybody interested in testing this?

Peter
Re: Important: Changes to Metadata lookup in March 2021 [ In reply to ]
Heads up for anyone using the deb-multimedia packages:

On Mon, 2021-02-22 at 15:41 -0500, Peter Bennett wrote:
> You can select one of these options in mythfrontend -> setup ->
> Artwork and Data Sources -> Television Metadata Source.

I'm running 31.0+fixes20210206.git7763a3363d-dmo1 from the deb-
multimedia.org packages so I should have the new TheMovieDB TV option
but not yet the tvmaze one. However the file is not executable so the
frontend doesn't find it. Fixed for now with:

$ sudo chmod +x /usr/share/mythtv/metadata/Television/tmdb3tv.py

and reported to the deb-multimedia.org maintainer.

I presume this is a packaging issue not a mythtv build/install issue
otherwise it would have been mentioned here already.

Cheers,
Ian.

_______________________________________________
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: Important: Changes to Metadata lookup in March 2021 [ In reply to ]
Tuesday, February 23, 2021, 6:17:00 PM, you wrote:




> On 2/23/21 7:12 AM, Ian Evans wrote:
>
>
> Is this change being ported back to some older versions? Still on 29-fixes for now. 



> You must be on an older version of Linux. I see that the v0.29
> ppa has not been built since 2019, so I don't know if it is still built. It probably has python 2.
> The metadata lookup python modules are independent of the mythtv
> version, and should probably have been a separate package.
> It may be possible to drop the new modules into your installation
> and compile the python, and it should work, but I don't have an easy way of testing it.
> Anybody interested in testing this?
> Peter

>
Hoi Peter,

I might. I run Gentoo with both python 2 and 3 and know my python. I
still run 0.27.
Where can I find the package? Is it possible to fool these older
versions by renaming the new package to the old name or is the in-
and/or output different?

Tot mails,
Hika mailto:hikavdh@gmail.com

"Zonder hoop kun je niet leven
Zonder leven is er geen hoop
Het eeuwige dilemma
Zeker als je hoop moet vernietigen om te kunnen overleven!"

De lerende Mens

_______________________________________________
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: Important: Changes to Metadata lookup in March 2021 [ In reply to ]
Need some clarification on the Artwork and Data Sources settings and
processing.

My understanding which is probably wrong is:

- The backend runs the metadata lookup job when a TV program is being
recorded as a part of post-processing.

- You set the sources of the metadata lookup for the backend via the
mythfrontend setup -> Artwork and Data Sources

So my question is if on one x86_64 mythfrontend, I change to the new
TheMovieDB.org V3 Television, will that fix the problem for the old site
being shutdown?

I ask because I had it set right on one frontend and then checked this
morning on a different frontend and it showed the old tvdb setting.

Jim A


_______________________________________________
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: Important: Changes to Metadata lookup in March 2021 [ In reply to ]
On 2/23/21 5:58 PM, Hika van den Hoven wrote:
> Tuesday, February 23, 2021, 6:17:00 PM, you wrote:
>
>
>
>
>> On 2/23/21 7:12 AM, Ian Evans wrote:
>>
>>
>> Is this change being ported back to some older versions? Still on 29-fixes for now.
>
>
>> You must be on an older version of Linux. I see that the v0.29
>> ppa has not been built since 2019, so I don't know if it is still built. It probably has python 2.
>> The metadata lookup python modules are independent of the mythtv
>> version, and should probably have been a separate package.
>> It may be possible to drop the new modules into your installation
>> and compile the python, and it should work, but I don't have an easy way of testing it.
>> Anybody interested in testing this?
>> Peter
>>
> Hoi Peter,
>
> I might. I run Gentoo with both python 2 and 3 and know my python. I
> still run 0.27.
> Where can I find the package? Is it possible to fool these older
> versions by renaming the new package to the old name or is the in-
> and/or output different?
>
> Tot mails,
> Hika mailto:hikavdh@gmail.com
>
> "Zonder hoop kun je niet leven
> Zonder leven is er geen hoop
> Het eeuwige dilemma
> Zeker als je hoop moet vernietigen om te kunnen overleven!"
>
> De lerende Mens
>
Hi Hika

It should work if you copy the new scripts into your system. The new
scripts are supposed to be compatible with both python2 and python3.
They definitely work with python 3.

Check your python path by running
python3
import sys
sys.path

Find the correct path for dist-packages, using the same one that is used
for your old version of mythtv.

Copy the files from the latest MythTV github, on both backend and
frontend (using your correct dist-packages path):

github  mythtv/bindings/python/tmdb3/tmdb3/* ->
/usr/local/lib/python3.8/dist-packages/MythTV/tmdb3/

github  mythtv/bindings/python/tvmaze/* ->
/usr/local/lib/python3.8/dist-packages/MythTV/tvmaze/

These use the /usr/share path:

github mythtv/programs/scripts/metadata/Television/tmdb3tv.py ->
/usr/share/mythtv/metadata/Television/

github mythtv/programs/scripts/metadata/Television/tvmaze.py ->
/usr/share/mythtv/metadata/Television/

Compile the new stuff in /usr/local/lib/python3.8/dist-packages/MythTV
subdirectories to create the __pycache__ directory in each.
python3 -m py_compile *.py

Test it by running these

Display help page
/usr/share/mythtv/metadata/Television/tmdb3tv.py -h

Display series data xml
/usr/share/mythtv/metadata/Television/tmdb3tv.py -l en -a US -M Monk

Display episode data xml
/usr/share/mythtv/metadata/Television/tmdb3tv.py -l en -a US -N 1695
"Mr. Monk and the Psychic"

Display episode data xml
/usr/share/mythtv/metadata/Television/tmdb3tv.py -l en -a US -N Monk
"Mr. Monk and the Psychic"

Run the same tests for tvmaze.py

Let me know if this works.

Note: You need to install them on all frontends and backend.

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
Re: Important: Changes to Metadata lookup in March 2021 [ In reply to ]
On 2/24/21 6:41 AM, Jim Abernathy wrote:
> Need some clarification on the Artwork and Data Sources settings and
> processing.
>
> My understanding which is probably wrong is:
>
> - The backend runs the metadata lookup job when a TV program is being
> recorded as a part of post-processing.
>
> - You set the sources of the metadata lookup for the backend via the
> mythfrontend setup -> Artwork and Data Sources
>
> So my question is if on one x86_64 mythfrontend, I change to the new
> TheMovieDB.org V3 Television, will that fix the problem for the old
> site being shutdown?
>
> I ask because I had it set right on one frontend and then checked this
> morning on a different frontend and it showed the old tvdb setting.
>
> Jim A
>
>
> _______________________________________________
>
Probably you did not install the upgraded MythTV version on the second
frontend. It should show the same on all frontends since it is a
system-wide setting.
_______________________________________________
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: Important: Changes to Metadata lookup in March 2021 [ In reply to ]
On 2/24/21 1:10 PM, Peter Bennett wrote:
>
> On 2/24/21 6:41 AM, Jim Abernathy wrote:
>> Need some clarification on the Artwork and Data Sources settings and
>> processing.
>>
>> My understanding which is probably wrong is:
>>
>> - The backend runs the metadata lookup job when a TV program is being
>> recorded as a part of post-processing.
>>
>> - You set the sources of the metadata lookup for the backend via the
>> mythfrontend setup -> Artwork and Data Sources
>>
>> So my question is if on one x86_64 mythfrontend, I change to the new
>> TheMovieDB.org V3 Television, will that fix the problem for the old
>> site being shutdown?
>>
>> I ask because I had it set right on one frontend and then checked
>> this morning on a different frontend and it showed the old tvdb setting.
>>
>> Jim A
>>
>>
>> _______________________________________________
>>
> Probably you did not install the upgraded MythTV version on the second
> frontend. It should show the same on all frontends since it is a
> system-wide setting.
Another possibility is that one or more of the Python scripts is missing
on the frontend. The frontend verifies that each script exists before
adding it to the list of choices. I built my own RPMs from scratch and
ran into this.
_______________________________________________
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: Important: Changes to Metadata lookup in March 2021 [ In reply to ]
On 2/24/2021 10:08 AM, Peter Bennett wrote:
>
> On 2/23/21 5:58 PM, Hika van den Hoven wrote:
>> Tuesday, February 23, 2021, 6:17:00 PM, you wrote:
>>
>>
>>
>>
>>> On 2/23/21 7:12 AM, Ian Evans wrote:
>>>         Is this change being ported back to some older versions?
>>> Still on 29-fixes for now.
>>
>>
>>> You must be on an older version of Linux. I see that the v0.29
>>> ppa has not been built since 2019, so I don't know if it is still   
>>> built. It probably has python 2.
>>> The metadata lookup python modules are independent of the mythtv
>>> version, and should probably have been a separate package.
>>> It may be possible to drop the new modules into your installation
>>> and compile the python, and it should work, but I don't have an     
>>> easy way of testing it.
>>> Anybody interested in testing this?
>>> Peter
>> Hoi Peter,
>>
>> I might. I run Gentoo with both python 2 and 3 and know my python. I
>> still run 0.27.
>> Where can I find the package? Is it possible to fool these older
>> versions by renaming the new package to the old name or is the in-
>> and/or output different?
>>
>> Tot mails,
>>    Hika                            mailto:hikavdh@gmail.com
>>
>> "Zonder hoop kun je niet leven
>> Zonder leven is er geen hoop
>> Het eeuwige dilemma
>> Zeker als je hoop moet vernietigen om te kunnen overleven!"
>>
>> De lerende Mens
>>
> Hi Hika
>
> It should work if you copy the new scripts into your system. The new
> scripts are supposed to be compatible with both python2 and python3.
> They definitely work with python 3.
>
> Check your python path by running
> python3
> import sys
> sys.path
>
> Find the correct path for dist-packages, using the same one that is
> used for your old version of mythtv.
>
> Copy the files from the latest MythTV github, on both backend and
> frontend (using your correct dist-packages path):
>
> github  mythtv/bindings/python/tmdb3/tmdb3/* ->
> /usr/local/lib/python3.8/dist-packages/MythTV/tmdb3/
>
> github  mythtv/bindings/python/tvmaze/* ->
> /usr/local/lib/python3.8/dist-packages/MythTV/tvmaze/
>
> These use the /usr/share path:
>
> github mythtv/programs/scripts/metadata/Television/tmdb3tv.py ->
> /usr/share/mythtv/metadata/Television/
>
> github mythtv/programs/scripts/metadata/Television/tvmaze.py ->
> /usr/share/mythtv/metadata/Television/
>
> Compile the new stuff in /usr/local/lib/python3.8/dist-packages/MythTV
> subdirectories to create the __pycache__ directory in each.
> python3 -m py_compile *.py
>
> Test it by running these
>
> Display help page
> /usr/share/mythtv/metadata/Television/tmdb3tv.py -h
>
> Display series data xml
> /usr/share/mythtv/metadata/Television/tmdb3tv.py -l en -a US -M Monk
>
> Display episode data xml
> /usr/share/mythtv/metadata/Television/tmdb3tv.py -l en -a US -N 1695
> "Mr. Monk and the Psychic"
>
> Display episode data xml
> /usr/share/mythtv/metadata/Television/tmdb3tv.py -l en -a US -N Monk
> "Mr. Monk and the Psychic"
>
> Run the same tests for tvmaze.py
>
> Let me know if this works.
>
> Note: You need to install them on all frontends and backend.
>
> Peter

I'm running 0.29 on mythbuntu 16.04. All the mythtv python libs are in
the python2.7 dist-packages so that's where I installed the tmdb3 and
tvmaze files. It appears that tvmaze.py requires python 3 so I just
tried testing tmdb3.py but it bombed trying to retrieve the episode data:

Traceback (most recent call last):
  File "/usr/share/mythtv/metadata/Television/tmdb3tv.py", line 159, in
<module>
    sys.exit(main("television",'tmdb3tv.py'))
  File "/usr/share/mythtv/metadata/Television/tmdb3tv.py", line 133, in
main
    xml = buildEpisode(args[0:2], opts)
  File "/usr/lib/python2.7/dist-packages/MythTV/tmdb3/lookup.py", line
300, in buildEpisode
    if query.isnumeric():
AttributeError: 'str' object has no attribute 'isnumeric'

which I guess indicates a python2 vs python3 mismatch.

John
_______________________________________________
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: Important: Changes to Metadata lookup in March 2021 [ In reply to ]
Hoi John,

Wednesday, February 24, 2021, 10:54:36 PM, you wrote:


> I'm running 0.29 on mythbuntu 16.04. All the mythtv python libs are in
> the python2.7 dist-packages so that's where I installed the tmdb3 and
> tvmaze files. It appears that tvmaze.py requires python 3 so I just
> tried testing tmdb3.py but it bombed trying to retrieve the episode data:

> Traceback (most recent call last):
>   File "/usr/share/mythtv/metadata/Television/tmdb3tv.py", line 159, in
> <module>
>     sys.exit(main("television",'tmdb3tv.py'))
>   File "/usr/share/mythtv/metadata/Television/tmdb3tv.py", line 133, in
> main
>     xml = buildEpisode(args[0:2], opts)
>   File "/usr/lib/python2.7/dist-packages/MythTV/tmdb3/lookup.py", line
> 300, in buildEpisode
>     if query.isnumeric():
> AttributeError: 'str' object has no attribute 'isnumeric'

> which I guess indicates a python2 vs python3 mismatch.

> John

To test tvmaze.py with python2, change the first line:

#!/usr/bin/env python3

to:

#!/usr/bin/env python

or if your system is not set to default to python2:

#!/usr/bin/env python2

I'll come back later with my testresults.

Tot mails,
Hika mailto:hikavdh@gmail.com

"Zonder hoop kun je niet leven
Zonder leven is er geen hoop
Het eeuwige dilemma
Zeker als je hoop moet vernietigen om te kunnen overleven!"

De lerende Mens

_______________________________________________
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: Important: Changes to Metadata lookup in March 2021 [ In reply to ]
> On 25 Feb 2021, at 5:54 am, John Finlay via mythtv-users <mythtv-users@mythtv.org> wrote:
>
> On 2/24/2021 10:08 AM, Peter Bennett wrote:
>>
>> On 2/23/21 5:58 PM, Hika van den Hoven wrote:
>>> Tuesday, February 23, 2021, 6:17:00 PM, you wrote:
>>>
>>>
>>>
>>>
>>>> On 2/23/21 7:12 AM, Ian Evans wrote:
>>>> Is this change being ported back to some older versions? Still on 29-fixes for now.
>>>
>>>
>>>> You must be on an older version of Linux. I see that the v0.29
>>>> ppa has not been built since 2019, so I don't know if it is still built. It probably has python 2.
>>>> The metadata lookup python modules are independent of the mythtv
>>>> version, and should probably have been a separate package.
>>>> It may be possible to drop the new modules into your installation
>>>> and compile the python, and it should work, but I don't have an easy way of testing it.
>>>> Anybody interested in testing this?
>>>> Peter
>>> Hoi Peter,
>>>
>>> I might. I run Gentoo with both python 2 and 3 and know my python. I
>>> still run 0.27.
>>> Where can I find the package? Is it possible to fool these older
>>> versions by renaming the new package to the old name or is the in-
>>> and/or output different?
>>>
>>> Tot mails,
>>> Hika mailto:hikavdh@gmail.com
>>>
>>> "Zonder hoop kun je niet leven
>>> Zonder leven is er geen hoop
>>> Het eeuwige dilemma
>>> Zeker als je hoop moet vernietigen om te kunnen overleven!"
>>>
>>> De lerende Mens
>>>
>> Hi Hika
>>
>> It should work if you copy the new scripts into your system. The new scripts are supposed to be compatible with both python2 and python3. They definitely work with python 3.
>>
>> Check your python path by running
>> python3
>> import sys
>> sys.path
>>
>> Find the correct path for dist-packages, using the same one that is used for your old version of mythtv.
>>
>> Copy the files from the latest MythTV github, on both backend and frontend (using your correct dist-packages path):
>>
>> github mythtv/bindings/python/tmdb3/tmdb3/* -> /usr/local/lib/python3.8/dist-packages/MythTV/tmdb3/
>>
>> github mythtv/bindings/python/tvmaze/* -> /usr/local/lib/python3.8/dist-packages/MythTV/tvmaze/
>>
>> These use the /usr/share path:
>>
>> github mythtv/programs/scripts/metadata/Television/tmdb3tv.py -> /usr/share/mythtv/metadata/Television/
>>
>> github mythtv/programs/scripts/metadata/Television/tvmaze.py -> /usr/share/mythtv/metadata/Television/
>>
>> Compile the new stuff in /usr/local/lib/python3.8/dist-packages/MythTV subdirectories to create the __pycache__ directory in each.
>> python3 -m py_compile *.py
>>
>> Test it by running these
>>
>> Display help page
>> /usr/share/mythtv/metadata/Television/tmdb3tv.py -h
>>
>> Display series data xml
>> /usr/share/mythtv/metadata/Television/tmdb3tv.py -l en -a US -M Monk
>>
>> Display episode data xml
>> /usr/share/mythtv/metadata/Television/tmdb3tv.py -l en -a US -N 1695 "Mr. Monk and the Psychic"
>>
>> Display episode data xml
>> /usr/share/mythtv/metadata/Television/tmdb3tv.py -l en -a US -N Monk "Mr. Monk and the Psychic"
>>
>> Run the same tests for tvmaze.py
>>
>> Let me know if this works.
>>
>> Note: You need to install them on all frontends and backend.
>>
>> Peter
>
> I'm running 0.29 on mythbuntu 16.04. All the mythtv python libs are in the python2.7 dist-packages so that's where I installed the tmdb3 and tvmaze files. It appears that tvmaze.py requires python 3 so I just tried testing tmdb3.py but it bombed trying to retrieve the episode data:
>
> Traceback (most recent call last):
> File "/usr/share/mythtv/metadata/Television/tmdb3tv.py", line 159, in <module>
> sys.exit(main("television",'tmdb3tv.py'))
> File "/usr/share/mythtv/metadata/Television/tmdb3tv.py", line 133, in main
> xml = buildEpisode(args[0:2], opts)
> File "/usr/lib/python2.7/dist-packages/MythTV/tmdb3/lookup.py", line 300, in buildEpisode
> if query.isnumeric():
> AttributeError: 'str' object has no attribute 'isnumeric'
>
> which I guess indicates a python2 vs python3 mismatch.

I just installed John's osx build.
I see the grabber options for TV but not fot the movie grabber..
I've not understood is only the TV grabber affected for now.

Pardon the dumb question: As for as I can tell the TV grabber grabs cover art (which sometimes obscures the listings

http://tigger.ws/downloads/myth.png <http://tigger.ws/downloads/myth.png>

what else does it give?

James
Re: Important: Changes to Metadata lookup in March 2021 [ In reply to ]
Hoi Peter,

Wednesday, February 24, 2021, 7:08:16 PM, you wrote:

> Test it by running these

> Display help page
> /usr/share/mythtv/metadata/Television/tmdb3tv.py -h

> Display series data xml
> /usr/share/mythtv/metadata/Television/tmdb3tv.py -l en -a US -M Monk

> Display episode data xml
> /usr/share/mythtv/metadata/Television/tmdb3tv.py -l en -a US -N 1695
> "Mr. Monk and the Psychic"

> Display episode data xml
> /usr/share/mythtv/metadata/Television/tmdb3tv.py -l en -a US -N Monk
> "Mr. Monk and the Psychic"

> Run the same tests for tvmaze.py

> Let me know if this works.

> Note: You need to install them on all frontends and backend.

> Peter

OK, for tvmaze.py

First to use it on older mythtv versions with python 2.7 change the first line of tvmaze.py to:

#!/usr/bin/env python2

I was missing the following python libraries:

https://pypi.org/project/requests-cache/
https://pypi.org/project/python-dateutil/1.4/

bug line 504:

if not os.path.exists(cachedir):
- os.makedirs(cachepath)
+ os.makedirs(cachedir)
if sys.version_info[0] == 2:

/usr/share/mythtv/metadata/Television/tmdb3tv.py -l en -a US -N 1695 "Mr. Monk and the Psychic"
gave:
`ERROR: <type 'exceptions.Exception'> : Cannot find episodes for inetref '1695'.`

The rest gave proper output.

Tot mails,
Hika mailto:hikavdh@gmail.com

"Zonder hoop kun je niet leven
Zonder leven is er geen hoop
Het eeuwige dilemma
Zeker als je hoop moet vernietigen om te kunnen overleven!"

De lerende Mens

_______________________________________________
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: Important: Changes to Metadata lookup in March 2021 [ In reply to ]
>
> I just installed John's osx build.
> I see the grabber options for TV but not fot the movie grabber..
> I've not understood is only the TV grabber affected for now.
>
> Pardon the dumb question: As for as I can tell the TV grabber grabs cover
> art (which sometimes obscures the listings
>
> http://tigger.ws/downloads/myth.png
>

Hi James, my apologies, I'm not quite sure what you're asking.

I did update the macOS builds yesterday which include the update tmdbv3 and
tvmaze grabbers.

The update should only affect the TV grabbers in settings - the movie
grabber remains tmdbv3 by default.
Re: Important: Changes to Metadata lookup in March 2021 [ In reply to ]
Hoi Peter,

Wednesday, February 24, 2021, 7:08:16 PM, you wrote:


> Test it by running these

> Display help page
> /usr/share/mythtv/metadata/Television/tmdb3tv.py -h

> Display series data xml
> /usr/share/mythtv/metadata/Television/tmdb3tv.py -l en -a US -M Monk

> Display episode data xml
> /usr/share/mythtv/metadata/Television/tmdb3tv.py -l en -a US -N 1695
> "Mr. Monk and the Psychic"

> Display episode data xml
> /usr/share/mythtv/metadata/Television/tmdb3tv.py -l en -a US -N Monk
> "Mr. Monk and the Psychic"

> Run the same tests for tvmaze.py

> Let me know if this works.

> Note: You need to install them on all frontends and backend.

> Peter

With tmdb3tv I encounter a more complex issue that I as jet do not
fully understand. I was missing: https://pypi.org/project/future/0.6.0/
that next after installing gave the following error:

Traceback (most recent call last):
File "./tmdb3tv.py", line 159, in <module>
sys.exit(main("television",'tmdb3tv.py'))
File "./tmdb3tv.py", line 79, in main
from MythTV.tmdb3.lookup import timeouthandler
File "/usr/lib64/python2.7/site-packages/MythTV/tmdb3/__init__.py", line 5, in <module>
from .tmdb_api import Configuration, searchMovie, searchMovieWithYear, \
File "/usr/lib64/python2.7/site-packages/MythTV/tmdb3/tmdb_api.py", line 69, in <module>
from .request import set_key, Request
File "/usr/lib64/python2.7/site-packages/MythTV/tmdb3/request.py", line 12, in <module>
from .cache import Cache
File "/usr/lib64/python2.7/site-packages/MythTV/tmdb3/cache.py", line 13, in <module>
from .cache_engine import Engines
File "/usr/lib64/python2.7/site-packages/MythTV/tmdb3/cache_engine.py", line 47, in <module>
class CacheEngine(with_metaclass(CacheEngineType, object)):
File "/usr/lib64/python2.7/site-packages/future-0.6.0-py2.7.egg/future/utils/__init__.py", line 125, in with_metaclass
return metaclass('temporary_class', None, {})
File "/usr/lib64/python2.7/site-packages/future-0.6.0-py2.7.egg/future/utils/__init__.py", line 123, in __new__
return type.__new__(cls, name, (), d)
TypeError: type() argument 1 must be string, not unicode


Tot mails,
Hika mailto:hikavdh@gmail.com

"Zonder hoop kun je niet leven
Zonder leven is er geen hoop
Het eeuwige dilemma
Zeker als je hoop moet vernietigen om te kunnen overleven!"

De lerende Mens

_______________________________________________
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: Important: Changes to Metadata lookup in March 2021 [ In reply to ]
Hoi Hika,

Thursday, February 25, 2021, 12:44:46 AM, you wrote:

> Hoi Peter,

> Wednesday, February 24, 2021, 7:08:16 PM, you wrote:

>> Test it by running these

>> Display help page
>> /usr/share/mythtv/metadata/Television/tmdb3tv.py -h

>> Display series data xml
>> /usr/share/mythtv/metadata/Television/tmdb3tv.py -l en -a US -M Monk

>> Display episode data xml
>> /usr/share/mythtv/metadata/Television/tmdb3tv.py -l en -a US -N 1695
>> "Mr. Monk and the Psychic"

>> Display episode data xml
>> /usr/share/mythtv/metadata/Television/tmdb3tv.py -l en -a US -N Monk
>> "Mr. Monk and the Psychic"

>> Run the same tests for tvmaze.py

>> Let me know if this works.

>> Note: You need to install them on all frontends and backend.

>> Peter

> OK, for tvmaze.py

> First to use it on older mythtv versions with python 2.7 change the first line of tvmaze.py to:
>
> #!/usr/bin/env python2

> I was missing the following python libraries:
>
> https://pypi.org/project/requests-cache/
> https://pypi.org/project/python-dateutil/1.4/

> bug line 504:
>
> if not os.path.exists(cachedir):
> - os.makedirs(cachepath)
> + os.makedirs(cachedir)
> if sys.version_info[0] == 2:

> /usr/share/mythtv/metadata/Television/tmdb3tv.py -l en -a US -N 1695 "Mr. Monk and the Psychic"
> gave:
> `ERROR: <type 'exceptions.Exception'> : Cannot find episodes for inetref '1695'.`

> The rest gave proper output.

> Tot mails,
> Hika mailto:hikavdh@gmail.com

I later realized that the error was because the inetref was for
tmdb3tv.
So substituting 1695 with 543 gave proper output.



Tot mails,
Hika mailto:hikavdh@gmail.com

"Zonder hoop kun je niet leven
Zonder leven is er geen hoop
Het eeuwige dilemma
Zeker als je hoop moet vernietigen om te kunnen overleven!"

De lerende Mens

_______________________________________________
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: Important: Changes to Metadata lookup in March 2021 [ In reply to ]
> On 25 Feb 2021, at 8:34 am, John Hoyt <john.hoyt@gmail.com> wrote:
>
> I just installed John's osx build.
> I see the grabber options for TV but not fot the movie grabber..
> I've not understood is only the TV grabber affected for now.
>
> Pardon the dumb question: As for as I can tell the TV grabber grabs cover art (which sometimes obscures the listings
>
> http://tigger.ws/downloads/myth.png
>
> Hi James, my apologies, I'm not quite sure what you're asking.
>
> I did update the macOS builds yesterday which include the update tmdbv3 and tvmaze grabbers.
>
> The update should only affect the TV grabbers in settings - the movie grabber remains tmdbv3 by default.

John
thanks.
Cleared the fog of me-no-understand
James
_______________________________________________
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: Important: Changes to Metadata lookup in March 2021 [ In reply to ]
On 25/02/2021 00:37, Hika van den Hoven wrote:
> Hoi Peter,
>
> Wednesday, February 24, 2021, 7:08:16 PM, you wrote:
>
>
>> Test it by running these
>
>> Display help page
>> /usr/share/mythtv/metadata/Television/tmdb3tv.py -h
>
>> Display series data xml
>> /usr/share/mythtv/metadata/Television/tmdb3tv.py -l en -a US -M Monk
>
>> Display episode data xml
>> /usr/share/mythtv/metadata/Television/tmdb3tv.py -l en -a US -N 1695
>> "Mr. Monk and the Psychic"
>
>> Display episode data xml
>> /usr/share/mythtv/metadata/Television/tmdb3tv.py -l en -a US -N Monk
>> "Mr. Monk and the Psychic"
>
>> Run the same tests for tvmaze.py
>
>> Let me know if this works.
>
>> Note: You need to install them on all frontends and backend.
>
>> Peter
>
> With tmdb3tv I encounter a more complex issue that I as jet do not
> fully understand. I was missing: https://pypi.org/project/future/0.6.0/
> that next after installing gave the following error:
>
> Traceback (most recent call last):
> File "./tmdb3tv.py", line 159, in <module>
> sys.exit(main("television",'tmdb3tv.py'))
> File "./tmdb3tv.py", line 79, in main
> from MythTV.tmdb3.lookup import timeouthandler
> File "/usr/lib64/python2.7/site-packages/MythTV/tmdb3/__init__.py", line 5, in <module>
> from .tmdb_api import Configuration, searchMovie, searchMovieWithYear, \
> File "/usr/lib64/python2.7/site-packages/MythTV/tmdb3/tmdb_api.py", line 69, in <module>
> from .request import set_key, Request
> File "/usr/lib64/python2.7/site-packages/MythTV/tmdb3/request.py", line 12, in <module>
> from .cache import Cache
> File "/usr/lib64/python2.7/site-packages/MythTV/tmdb3/cache.py", line 13, in <module>
> from .cache_engine import Engines
> File "/usr/lib64/python2.7/site-packages/MythTV/tmdb3/cache_engine.py", line 47, in <module>
> class CacheEngine(with_metaclass(CacheEngineType, object)):
> File "/usr/lib64/python2.7/site-packages/future-0.6.0-py2.7.egg/future/utils/__init__.py", line 125, in with_metaclass
> return metaclass('temporary_class', None, {})
> File "/usr/lib64/python2.7/site-packages/future-0.6.0-py2.7.egg/future/utils/__init__.py", line 123, in __new__
> return type.__new__(cls, name, (), d)
> TypeError: type() argument 1 must be string, not unicode

I don't speak python that much, but should the first argument be in single quotes, not double? It is
a literal, so in theory it shouldn't matter which is used, but I suspect that in this case double
quotes would be taken as unicode rather than character.

--

Mike Perkins

_______________________________________________
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: Important: Changes to Metadata lookup in March 2021 [ In reply to ]
Hoi Mike,

Thursday, February 25, 2021, 10:40:16 AM, you wrote:

> On 25/02/2021 00:37, Hika van den Hoven wrote:
>> Hoi Peter,
>>
>> Wednesday, February 24, 2021, 7:08:16 PM, you wrote:
>>
>>
>>> Test it by running these
>>
>>> Display help page
>>> /usr/share/mythtv/metadata/Television/tmdb3tv.py -h
>>
>>> Display series data xml
>>> /usr/share/mythtv/metadata/Television/tmdb3tv.py -l en -a US -M Monk
>>
>>> Display episode data xml
>>> /usr/share/mythtv/metadata/Television/tmdb3tv.py -l en -a US -N 1695
>>> "Mr. Monk and the Psychic"
>>
>>> Display episode data xml
>>> /usr/share/mythtv/metadata/Television/tmdb3tv.py -l en -a US -N Monk
>>> "Mr. Monk and the Psychic"
>>
>>> Run the same tests for tvmaze.py
>>
>>> Let me know if this works.
>>
>>> Note: You need to install them on all frontends and backend.
>>
>>> Peter
>>
>> With tmdb3tv I encounter a more complex issue that I as jet do not
>> fully understand. I was missing: https://pypi.org/project/future/0.6.0/
>> that next after installing gave the following error:
>>
>> Traceback (most recent call last):
>> File "./tmdb3tv.py", line 159, in <module>
>> sys.exit(main("television",'tmdb3tv.py'))
>> File "./tmdb3tv.py", line 79, in main
>> from MythTV.tmdb3.lookup import timeouthandler
>> File "/usr/lib64/python2.7/site-packages/MythTV/tmdb3/__init__.py", line 5, in <module>
>> from .tmdb_api import Configuration, searchMovie, searchMovieWithYear, \
>> File "/usr/lib64/python2.7/site-packages/MythTV/tmdb3/tmdb_api.py", line 69, in <module>
>> from .request import set_key, Request
>> File "/usr/lib64/python2.7/site-packages/MythTV/tmdb3/request.py", line 12, in <module>
>> from .cache import Cache
>> File "/usr/lib64/python2.7/site-packages/MythTV/tmdb3/cache.py", line 13, in <module>
>> from .cache_engine import Engines
>> File "/usr/lib64/python2.7/site-packages/MythTV/tmdb3/cache_engine.py", line 47, in <module>
>> class CacheEngine(with_metaclass(CacheEngineType, object)):
>> File "/usr/lib64/python2.7/site-packages/future-0.6.0-py2.7.egg/future/utils/__init__.py", line 125, in with_metaclass
>> return metaclass('temporary_class', None, {})
>> File "/usr/lib64/python2.7/site-packages/future-0.6.0-py2.7.egg/future/utils/__init__.py", line 123, in __new__
>> return type.__new__(cls, name, (), d)
>> TypeError: type() argument 1 must be string, not unicode

> I don't speak python that much, but should the first argument be in single quotes, not double? It is
> a literal, so in theory it shouldn't matter which is used, but I suspect that in this case double
> quotes would be taken as unicode rather than character.

As far as I know single and double quotes are identical in python. You
only can not close the one with the other. I personally always use
single and reserve the double quotes to use inside the text to avoid
having to escape.
That said, it looks sloppy to mix them within one command.

However I tried your suggestion, but to no avail.



Tot mails,
Hika mailto:hikavdh@gmail.com

"Zonder hoop kun je niet leven
Zonder leven is er geen hoop
Het eeuwige dilemma
Zeker als je hoop moet vernietigen om te kunnen overleven!"

De lerende Mens

_______________________________________________
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: Important: Changes to Metadata lookup in March 2021 [ In reply to ]
On Thu, 25 Feb 2021 09:40:16 +0000, you wrote:

>On 25/02/2021 00:37, Hika van den Hoven wrote:
>> Hoi Peter,
>>
>> Wednesday, February 24, 2021, 7:08:16 PM, you wrote:
>>
>>
>>> Test it by running these
>>
>>> Display help page
>>> /usr/share/mythtv/metadata/Television/tmdb3tv.py -h
>>
>>> Display series data xml
>>> /usr/share/mythtv/metadata/Television/tmdb3tv.py -l en -a US -M Monk
>>
>>> Display episode data xml
>>> /usr/share/mythtv/metadata/Television/tmdb3tv.py -l en -a US -N 1695
>>> "Mr. Monk and the Psychic"
>>
>>> Display episode data xml
>>> /usr/share/mythtv/metadata/Television/tmdb3tv.py -l en -a US -N Monk
>>> "Mr. Monk and the Psychic"
>>
>>> Run the same tests for tvmaze.py
>>
>>> Let me know if this works.
>>
>>> Note: You need to install them on all frontends and backend.
>>
>>> Peter
>>
>> With tmdb3tv I encounter a more complex issue that I as jet do not
>> fully understand. I was missing: https://pypi.org/project/future/0.6.0/
>> that next after installing gave the following error:
>>
>> Traceback (most recent call last):
>> File "./tmdb3tv.py", line 159, in <module>
>> sys.exit(main("television",'tmdb3tv.py'))
>> File "./tmdb3tv.py", line 79, in main
>> from MythTV.tmdb3.lookup import timeouthandler
>> File "/usr/lib64/python2.7/site-packages/MythTV/tmdb3/__init__.py", line 5, in <module>
>> from .tmdb_api import Configuration, searchMovie, searchMovieWithYear, \
>> File "/usr/lib64/python2.7/site-packages/MythTV/tmdb3/tmdb_api.py", line 69, in <module>
>> from .request import set_key, Request
>> File "/usr/lib64/python2.7/site-packages/MythTV/tmdb3/request.py", line 12, in <module>
>> from .cache import Cache
>> File "/usr/lib64/python2.7/site-packages/MythTV/tmdb3/cache.py", line 13, in <module>
>> from .cache_engine import Engines
>> File "/usr/lib64/python2.7/site-packages/MythTV/tmdb3/cache_engine.py", line 47, in <module>
>> class CacheEngine(with_metaclass(CacheEngineType, object)):
>> File "/usr/lib64/python2.7/site-packages/future-0.6.0-py2.7.egg/future/utils/__init__.py", line 125, in with_metaclass
>> return metaclass('temporary_class', None, {})
>> File "/usr/lib64/python2.7/site-packages/future-0.6.0-py2.7.egg/future/utils/__init__.py", line 123, in __new__
>> return type.__new__(cls, name, (), d)
>> TypeError: type() argument 1 must be string, not unicode
>
>I don't speak python that much, but should the first argument be in single quotes, not double? It is
>a literal, so in theory it shouldn't matter which is used, but I suspect that in this case double
>quotes would be taken as unicode rather than character.

The current version of the "future" package is 0.18.2. As this
exception is happening in the future package, my guess is that 0.6.0
is way too old and is incompatible with modern Python 3 code
somewhere. Unicode versus string problems are common with converting
Python 2 to Python 3 - this is one major area where they are
incompatible with each other.
_______________________________________________
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: Important: Changes to Metadata lookup in March 2021 [ In reply to ]
Hoi Stephen,

Thursday, February 25, 2021, 3:12:21 PM, you wrote:

> On Thu, 25 Feb 2021 09:40:16 +0000, you wrote:

>>On 25/02/2021 00:37, Hika van den Hoven wrote:
>>> Hoi Peter,
>>>
>>> Wednesday, February 24, 2021, 7:08:16 PM, you wrote:
>>>
>>>
>>>> Test it by running these
>>>
>>>> Display help page
>>>> /usr/share/mythtv/metadata/Television/tmdb3tv.py -h
>>>
>>>> Display series data xml
>>>> /usr/share/mythtv/metadata/Television/tmdb3tv.py -l en -a US -M Monk
>>>
>>>> Display episode data xml
>>>> /usr/share/mythtv/metadata/Television/tmdb3tv.py -l en -a US -N 1695
>>>> "Mr. Monk and the Psychic"
>>>
>>>> Display episode data xml
>>>> /usr/share/mythtv/metadata/Television/tmdb3tv.py -l en -a US -N Monk
>>>> "Mr. Monk and the Psychic"
>>>
>>>> Run the same tests for tvmaze.py
>>>
>>>> Let me know if this works.
>>>
>>>> Note: You need to install them on all frontends and backend.
>>>
>>>> Peter
>>>
>>> With tmdb3tv I encounter a more complex issue that I as jet do not
>>> fully understand. I was missing: https://pypi.org/project/future/0.6.0/
>>> that next after installing gave the following error:
>>>
>>> Traceback (most recent call last):
>>> File "./tmdb3tv.py", line 159, in <module>
>>> sys.exit(main("television",'tmdb3tv.py'))
>>> File "./tmdb3tv.py", line 79, in main
>>> from MythTV.tmdb3.lookup import timeouthandler
>>> File "/usr/lib64/python2.7/site-packages/MythTV/tmdb3/__init__.py", line 5, in <module>
>>> from .tmdb_api import Configuration, searchMovie, searchMovieWithYear, \
>>> File "/usr/lib64/python2.7/site-packages/MythTV/tmdb3/tmdb_api.py", line 69, in <module>
>>> from .request import set_key, Request
>>> File "/usr/lib64/python2.7/site-packages/MythTV/tmdb3/request.py", line 12, in <module>
>>> from .cache import Cache
>>> File "/usr/lib64/python2.7/site-packages/MythTV/tmdb3/cache.py", line 13, in <module>
>>> from .cache_engine import Engines
>>> File "/usr/lib64/python2.7/site-packages/MythTV/tmdb3/cache_engine.py", line 47, in <module>
>>> class CacheEngine(with_metaclass(CacheEngineType, object)):
>>> File "/usr/lib64/python2.7/site-packages/future-0.6.0-py2.7.egg/future/utils/__init__.py", line 125, in with_metaclass
>>> return metaclass('temporary_class', None, {})
>>> File "/usr/lib64/python2.7/site-packages/future-0.6.0-py2.7.egg/future/utils/__init__.py", line 123, in __new__
>>> return type.__new__(cls, name, (), d)
>>> TypeError: type() argument 1 must be string, not unicode
>>
>>I don't speak python that much, but should the first argument be in single quotes, not double? It is
>>a literal, so in theory it shouldn't matter which is used, but I suspect that in this case double
>>quotes would be taken as unicode rather than character.

> The current version of the "future" package is 0.18.2. As this
> exception is happening in the future package, my guess is that 0.6.0
> is way too old and is incompatible with modern Python 3 code
> somewhere. Unicode versus string problems are common with converting
> Python 2 to Python 3 - this is one major area where they are
> incompatible with each other.
> _______________________________________________

Thanks, I googled and got that version. But a searching directly on
pypi.org gave me the right version:
https://pypi.org/project/future/

and now it works OK.

In the mean time I tried installing the complete recent bindings on
python3 next to the old one on python2. I get:
ERROR: <class 'MythTV.exception.MythError'> : No viable database module found

I guess mythtv/mythtv/bindings/python/setup.py from git does not
install the complete bindings? Or are other python modules missing?

Tot mails,
Hika mailto:hikavdh@gmail.com

"Zonder hoop kun je niet leven
Zonder leven is er geen hoop
Het eeuwige dilemma
Zeker als je hoop moet vernietigen om te kunnen overleven!"

De lerende Mens

_______________________________________________
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: Important: Changes to Metadata lookup in March 2021 [ In reply to ]
On Thu, 25 Feb 2021 15:57:14 +0100, you wrote:

>Hoi Stephen,

>Thanks, I googled and got that version. But a searching directly on
>pypi.org gave me the right version:
>https://pypi.org/project/future/
>
>and now it works OK.
>
>In the mean time I tried installing the complete recent bindings on
>python3 next to the old one on python2. I get:
>ERROR: <class 'MythTV.exception.MythError'> : No viable database module found
>
>I guess mythtv/mythtv/bindings/python/setup.py from git does not
>install the complete bindings? Or are other python modules missing?

In Ubuntu 20.04 from my v31-fixes install from the PPA packages, I
have a copy of what looks like this:

https://github.com/MythTV/mythtv/tree/master/mythtv/bindings/python/MythTV

installed in this directory:

/usr/lib/python3/dist-packages/MythTV

That looks to be the full set of files for the Python 3 bindings.
_______________________________________________
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: Important: Changes to Metadata lookup in March 2021 [ In reply to ]
Hoi Stephen,

Thursday, February 25, 2021, 5:01:52 PM, you wrote:

> On Thu, 25 Feb 2021 15:57:14 +0100, you wrote:

>>Hoi Stephen,

>>Thanks, I googled and got that version. But a searching directly on
>>pypi.org gave me the right version:
>>https://pypi.org/project/future/
>>
>>and now it works OK.
>>
>>In the mean time I tried installing the complete recent bindings on
>>python3 next to the old one on python2. I get:
>>ERROR: <class 'MythTV.exception.MythError'> : No viable database module found
>>
>>I guess mythtv/mythtv/bindings/python/setup.py from git does not
>>install the complete bindings? Or are other python modules missing?

> In Ubuntu 20.04 from my v31-fixes install from the PPA packages, I
> have a copy of what looks like this:

> https://github.com/MythTV/mythtv/tree/master/mythtv/bindings/python/MythTV

> installed in this directory:

> /usr/lib/python3/dist-packages/MythTV

> That looks to be the full set of files for the Python 3 bindings.
> _______________________________________________

It was an ambiguous error. The python2 mysql module 'mysql-python' was
forked and renamed to 'mysqlclient'. So I had no mysql module under
python3. Took some fiddling under gentoo to keep the old one for
python 2.7 and the new one for python3 as they excluded each other.

But now both tvmaze.py and tmdb3tv.py work under both python2 with
partial adapted 0.27 bindings and under python3 with the current
bindings.

Next step is integration in older mythtv versions that have no
knowledge of those two new metadata grabbers and there I am a bit out
of my depth.
I can only think of renaming either one of the two to ttvdb.py and
update the inetrefs. But that requires their in- and output behaviour
to be exactly the same! And my first tests seem to indicate that is
not the case :-(


Tot mails,
Hika mailto:hikavdh@gmail.com

"Zonder hoop kun je niet leven
Zonder leven is er geen hoop
Het eeuwige dilemma
Zeker als je hoop moet vernietigen om te kunnen overleven!"

De lerende Mens

_______________________________________________
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: Important: Changes to Metadata lookup in March 2021 [ In reply to ]
Hi Hika

On 2/25/21 11:19 AM, Hika van den Hoven wrote:
> It was an ambiguous error. The python2 mysql module 'mysql-python' was
> forked and renamed to 'mysqlclient'. So I had no mysql module under
> python3. Took some fiddling under gentoo to keep the old one for
> python 2.7 and the new one for python3 as they excluded each other.
>
> But now both tvmaze.py and tmdb3tv.py work under both python2 with
> partial adapted 0.27 bindings and under python3 with the current
> bindings.
>
> Next step is integration in older mythtv versions that have no
> knowledge of those two new metadata grabbers and there I am a bit out
> of my depth.
> I can only think of renaming either one of the two to ttvdb.py and
> update the inetrefs. But that requires their in- and output behaviour
> to be exactly the same! And my first tests seem to indicate that is
> not the case:-(
>
>
> Tot mails,
> Hikamailto:hikavdh@gmail.com

Do you have a list of steps needed to get it to work with version 0.27,
for other people that are on older version of MythTV?

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
Re: Important: Changes to Metadata lookup in March 2021 [ In reply to ]
Hoi Peter,

Thursday, February 25, 2021, 6:19:52 PM, you wrote:

> Hi Hika

> On 2/25/21 11:19 AM, Hika van den Hoven wrote:
>> It was an ambiguous error. The python2 mysql module 'mysql-python' was
>> forked and renamed to 'mysqlclient'. So I had no mysql module under
>> python3. Took some fiddling under gentoo to keep the old one for
>> python 2.7 and the new one for python3 as they excluded each other.
>>
>> But now both tvmaze.py and tmdb3tv.py work under both python2 with
>> partial adapted 0.27 bindings and under python3 with the current
>> bindings.
>>
>> Next step is integration in older mythtv versions that have no
>> knowledge of those two new metadata grabbers and there I am a bit out
>> of my depth.
>> I can only think of renaming either one of the two to ttvdb.py and
>> update the inetrefs. But that requires their in- and output behaviour
>> to be exactly the same! And my first tests seem to indicate that is
>> not the case:-(
>>
>>
>> Tot mails,
>> Hikamailto:hikavdh@gmail.com

> Do you have a list of steps needed to get it to work with version 0.27,
> for other people that are on older version of MythTV?

> Peter

Get the latest version of mythtv from github:
Make directory where to place it and go there
run:
git clone https://github.com/MythTV/mythtv.git mythtv

If that does not work, first install git!

Next either install the pythonbindings from there into python3:
go inside the downloaded data to:
...mythtv/mythtv/bindings/python
(substitute ... with the location you downloaded it to)
run:
sudo python3 ./setup.py install
install the following python modules if not jet there:
https://pypi.org/project/mysqlclient/
https://pypi.org/project/requests/
https://pypi.org/project/requests-cache/
https://pypi.org/project/python-dateutil/
https://pypi.org/project/future
by either
downloading the sourcefiles from above links,
unpacking them
and from the main directory within the unpacked files run:
sudo python3 ./setup.py install
or by finding the appropriate modules for your distribution.

or update the apropriate bindingfiles in your python2.7 binding directory
on my system:
/usr/lib64/python2.7/site-packages/MythTV
on others possibly:
/usr/local/lib/python2.7/dist-packages/MythTV
or a variation of the above.

Go to that directory
first backup the tmdb3 directory in there by renaming it to tmdb3.bak:
mv tmdb3 tmdb3.bak
copy from the above downloaded git files the tmdb3 and tvmaze directory into this MythTV directory:
sudo cp -rp ...mythtv/mythtv/bindings/python/tmdb3/tmdb3/ .
sudo cp -rp ...mythtv/mythtv/bindings/python/tvmaze/ .
(substitute ... with the location you downloaded mythtv into)
install the following python modules if not jet there:
https://pypi.org/project/requests/
https://pypi.org/project/requests-cache/
https://pypi.org/project/python-dateutil/
https://pypi.org/project/future
by either
downloading the sourcefiles from above links,
unpacking them
and from the main directory within the unpacked files run:
sudo python2 ./setup.py install
or by finding the appropriate modules for your distribution.

Go to the location of the graberfiles in:
/usr/share/mythtv/metadata/Television/
sudo cp -p ...mythtv/mythtv/programs/scripts/metadata/Television/tvmaze.py .
sudo cp -p ...mythtv/mythtv/programs/scripts/metadata/Television/tmdb3tv.py .
(substitute ... with the location you downloaded mythtv into)
fix the bug at line 504 in tvmaze.py

if not os.path.exists(cachedir):
- os.makedirs(cachepath)
+ os.makedirs(cachedir)
if sys.version_info[0] == 2:

if you installed the python3 bindings, ensure the first line of both files points to python3:
#!/usr/bin/env python3

if you updated the python2 bindings,ensure the first line of both files points to python2:
#!/usr/bin/env python2

if you updated the python2 bindings, you also have to update tmdb3.py in
/usr/share/mythtv/metadata/Movie/
go there and run:
sudo cp -p ...mythtv/mythtv/programs/scripts/metadata/Movie/tmdb3.py .
(substitute ... with the location you downloaded mythtv into)
I have not tested this tmdb3.py version with python2!

Tests:
/usr/share/mythtv/metadata/Television/tvmaze.py -t
/usr/share/mythtv/metadata/Television/tmdb3tv.py -l en -a US -M Monk
/usr/share/mythtv/metadata/Television/tvmaze.py -l en -a US -M Monk


Tot mails,
Hika mailto:hikavdh@gmail.com

"Zonder hoop kun je niet leven
Zonder leven is er geen hoop
Het eeuwige dilemma
Zeker als je hoop moet vernietigen om te kunnen overleven!"

De lerende Mens

_______________________________________________
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: Important: Changes to Metadata lookup in March 2021 [ In reply to ]
On 2/25/21 8:57 AM, Hika van den Hoven wrote:
> Hoi Stephen,
>
> Thursday, February 25, 2021, 3:12:21 PM, you wrote:
>
>> On Thu, 25 Feb 2021 09:40:16 +0000, you wrote:
>
>>> On 25/02/2021 00:37, Hika van den Hoven wrote:
>>>> Hoi Peter,
>>>>
>>>> Wednesday, February 24, 2021, 7:08:16 PM, you wrote:
>>>>
>>>>
>>>>> Test it by running these
>>>>
>>>>> Display help page
>>>>> /usr/share/mythtv/metadata/Television/tmdb3tv.py -h
>>>>
>>>>> Display series data xml
>>>>> /usr/share/mythtv/metadata/Television/tmdb3tv.py -l en -a US -M Monk
>>>>
>>>>> Display episode data xml
>>>>> /usr/share/mythtv/metadata/Television/tmdb3tv.py -l en -a US -N 1695
>>>>> "Mr. Monk and the Psychic"
>>>>
>>>>> Display episode data xml
>>>>> /usr/share/mythtv/metadata/Television/tmdb3tv.py -l en -a US -N Monk
>>>>> "Mr. Monk and the Psychic"
>>>>
>>>>> Run the same tests for tvmaze.py
>>>>
>>>>> Let me know if this works.
>>>>
>>>>> Note: You need to install them on all frontends and backend.
>>>>
>>>>> Peter
>>>>
>>>> With tmdb3tv I encounter a more complex issue that I as jet do not
>>>> fully understand. I was missing: https://pypi.org/project/future/0.6.0/
>>>> that next after installing gave the following error:
>>>>
>>>> Traceback (most recent call last):
>>>> File "./tmdb3tv.py", line 159, in <module>
>>>> sys.exit(main("television",'tmdb3tv.py'))
>>>> File "./tmdb3tv.py", line 79, in main
>>>> from MythTV.tmdb3.lookup import timeouthandler
>>>> File "/usr/lib64/python2.7/site-packages/MythTV/tmdb3/__init__.py", line 5, in <module>
>>>> from .tmdb_api import Configuration, searchMovie, searchMovieWithYear, \
>>>> File "/usr/lib64/python2.7/site-packages/MythTV/tmdb3/tmdb_api.py", line 69, in <module>
>>>> from .request import set_key, Request
>>>> File "/usr/lib64/python2.7/site-packages/MythTV/tmdb3/request.py", line 12, in <module>
>>>> from .cache import Cache
>>>> File "/usr/lib64/python2.7/site-packages/MythTV/tmdb3/cache.py", line 13, in <module>
>>>> from .cache_engine import Engines
>>>> File "/usr/lib64/python2.7/site-packages/MythTV/tmdb3/cache_engine.py", line 47, in <module>
>>>> class CacheEngine(with_metaclass(CacheEngineType, object)):
>>>> File "/usr/lib64/python2.7/site-packages/future-0.6.0-py2.7.egg/future/utils/__init__.py", line 125, in with_metaclass
>>>> return metaclass('temporary_class', None, {})
>>>> File "/usr/lib64/python2.7/site-packages/future-0.6.0-py2.7.egg/future/utils/__init__.py", line 123, in __new__
>>>> return type.__new__(cls, name, (), d)
>>>> TypeError: type() argument 1 must be string, not unicode
>>>
>>> I don't speak python that much, but should the first argument be in single quotes, not double? It is
>>> a literal, so in theory it shouldn't matter which is used, but I suspect that in this case double
>>> quotes would be taken as unicode rather than character.
>
>> The current version of the "future" package is 0.18.2. As this
>> exception is happening in the future package, my guess is that 0.6.0
>> is way too old and is incompatible with modern Python 3 code
>> somewhere. Unicode versus string problems are common with converting
>> Python 2 to Python 3 - this is one major area where they are
>> incompatible with each other.
>> _______________________________________________
>
> Thanks, I googled and got that version. But a searching directly on
> pypi.org gave me the right version:
> https://pypi.org/project/future/
>
> and now it works OK.
>
> In the mean time I tried installing the complete recent bindings on
> python3 next to the old one on python2. I get:
> ERROR: <class 'MythTV.exception.MythError'> : No viable database module found
>
> I guess mythtv/mythtv/bindings/python/setup.py from git does not
> install the complete bindings? Or are other python modules missing?

Make calls setup.py and installs per what's done a configure time. This may help.

I haven't used the following in months, but when testing v31 with Python 2.7 and 3.x
it installed both. Again, not tested recently and not intended for long term
solutions.

#!/bin/sh

# ASSUMES ./configure installed with python3.

PY2_VERSION=$(python2 --version 2>&1 | awk 'BEGIN {FS="[ .]"} {print $2"."$3}')
PY3_VERSION=$(python3 --version 2>&1 | awk 'BEGIN {FS="[ .]"} {print $2"."$3}')

PY2_DIR=/usr/local/lib/python${PY2_VERSION}/dist-packages/MythTV
PY3_DIR=/usr/local/lib/python${PY3_VERSION}/dist-packages/MythTV

cd ~/source/mythtv/mythtv/bindings/python

make clean PREFIX=/usr/local PYTHON=python2
make clean PREFIX=/usr/local PYTHON=python3
make PREFIX=/usr/local PYTHON=python2
sudo make install PREFIX=/usr/local PYTHON=python2

ls -al $PY2_DIR $PY3_DIR

--
Bill
_______________________________________________
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: Important: Changes to Metadata lookup in March 2021 [ In reply to ]
On 2/25/21 1:45 PM, Hika van den Hoven wrote:
> Get the latest version of mythtv from github:
> Make directory where to place it and go there

Hika has written detailed instructions for installing the metadata
changes manually on versions of MythTV older than v31. I have added
these instructions to the wiki page at
https://www.mythtv.org/wiki/Metadata_Lookup_Changes_March_2021 . The
instructions are not simple and are not officially supported. Be
prepared for problems! Let me know if you find things that can be
improved in the instructions.

Thank you Hika!

Note - I removed the part about fixing the bug because that has now been
fixed in github.

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
Re: Important: Changes to Metadata lookup in March 2021 [ In reply to ]
On 2/25/2021 10:45 AM, Hika van den Hoven wrote:
> Hoi Peter,
>
> Thursday, February 25, 2021, 6:19:52 PM, you wrote:
>
>> Hi Hika
>> On 2/25/21 11:19 AM, Hika van den Hoven wrote:
>>> It was an ambiguous error. The python2 mysql module 'mysql-python' was
>>> forked and renamed to 'mysqlclient'. So I had no mysql module under
>>> python3. Took some fiddling under gentoo to keep the old one for
>>> python 2.7 and the new one for python3 as they excluded each other.
>>>
>>> But now both tvmaze.py and tmdb3tv.py work under both python2 with
>>> partial adapted 0.27 bindings and under python3 with the current
>>> bindings.
>>>
>>> Next step is integration in older mythtv versions that have no
>>> knowledge of those two new metadata grabbers and there I am a bit out
>>> of my depth.
>>> I can only think of renaming either one of the two to ttvdb.py and
>>> update the inetrefs. But that requires their in- and output behaviour
>>> to be exactly the same! And my first tests seem to indicate that is
>>> not the case:-(
>>>
>>>
>>> Tot mails,
>>> Hikamailto:hikavdh@gmail.com
>> Do you have a list of steps needed to get it to work with version 0.27,
>> for other people that are on older version of MythTV?
>> Peter
> Get the latest version of mythtv from github:
> Make directory where to place it and go there
> run:
> git clone https://github.com/MythTV/mythtv.git mythtv
>
> If that does not work, first install git!
>
> Next either install the pythonbindings from there into python3:
> go inside the downloaded data to:
> ...mythtv/mythtv/bindings/python
> (substitute ... with the location you downloaded it to)
> run:
> sudo python3 ./setup.py install
> install the following python modules if not jet there:
> https://pypi.org/project/mysqlclient/
> https://pypi.org/project/requests/
> https://pypi.org/project/requests-cache/
> https://pypi.org/project/python-dateutil/
> https://pypi.org/project/future
> by either
> downloading the sourcefiles from above links,
> unpacking them
> and from the main directory within the unpacked files run:
> sudo python3 ./setup.py install
> or by finding the appropriate modules for your distribution.
>
> or update the apropriate bindingfiles in your python2.7 binding directory
> on my system:
> /usr/lib64/python2.7/site-packages/MythTV
> on others possibly:
> /usr/local/lib/python2.7/dist-packages/MythTV
> or a variation of the above.
>
> Go to that directory
> first backup the tmdb3 directory in there by renaming it to tmdb3.bak:
> mv tmdb3 tmdb3.bak
> copy from the above downloaded git files the tmdb3 and tvmaze directory into this MythTV directory:
> sudo cp -rp ...mythtv/mythtv/bindings/python/tmdb3/tmdb3/ .
> sudo cp -rp ...mythtv/mythtv/bindings/python/tvmaze/ .
> (substitute ... with the location you downloaded mythtv into)
> install the following python modules if not jet there:
> https://pypi.org/project/requests/
> https://pypi.org/project/requests-cache/
> https://pypi.org/project/python-dateutil/
> https://pypi.org/project/future
> by either
> downloading the sourcefiles from above links,
> unpacking them
> and from the main directory within the unpacked files run:
> sudo python2 ./setup.py install
> or by finding the appropriate modules for your distribution.
>
> Go to the location of the graberfiles in:
> /usr/share/mythtv/metadata/Television/
> sudo cp -p ...mythtv/mythtv/programs/scripts/metadata/Television/tvmaze.py .
> sudo cp -p ...mythtv/mythtv/programs/scripts/metadata/Television/tmdb3tv.py .
> (substitute ... with the location you downloaded mythtv into)
> fix the bug at line 504 in tvmaze.py
>
> if not os.path.exists(cachedir):
> - os.makedirs(cachepath)
> + os.makedirs(cachedir)
> if sys.version_info[0] == 2:
>
> if you installed the python3 bindings, ensure the first line of both files points to python3:
> #!/usr/bin/env python3
>
> if you updated the python2 bindings,ensure the first line of both files points to python2:
> #!/usr/bin/env python2
>
> if you updated the python2 bindings, you also have to update tmdb3.py in
> /usr/share/mythtv/metadata/Movie/
> go there and run:
> sudo cp -p ...mythtv/mythtv/programs/scripts/metadata/Movie/tmdb3.py .
> (substitute ... with the location you downloaded mythtv into)
> I have not tested this tmdb3.py version with python2!
>
> Tests:
> /usr/share/mythtv/metadata/Television/tvmaze.py -t
> /usr/share/mythtv/metadata/Television/tmdb3tv.py -l en -a US -M Monk
> /usr/share/mythtv/metadata/Television/tvmaze.py -l en -a US -M Monk
>
>
>


On my system with python2.7 I had to hack the lookup.py file line 300 from:

   if query.isnumeric():

to:

   if unicode(query).isnumeric():

because the string in query is not unicode.

John
_______________________________________________
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: Important: Changes to Metadata lookup in March 2021 [ In reply to ]
Hoi Peter,

Thursday, February 25, 2021, 9:24:39 PM, you wrote:


> On 2/25/21 1:45 PM, Hika van den Hoven wrote:
>> Get the latest version of mythtv from github:
>> Make directory where to place it and go there

> Hika has written detailed instructions for installing the metadata
> changes manually on versions of MythTV older than v31. I have added
> these instructions to the wiki page at
> https://www.mythtv.org/wiki/Metadata_Lookup_Changes_March_2021 . The
> instructions are not simple and are not officially supported. Be
> prepared for problems! Let me know if you find things that can be
> improved in the instructions.

> Thank you Hika!

> Note - I removed the part about fixing the bug because that has now been
> fixed in github.

> Peter


I have tested the integration with mythtv and that works. Even beter
than I had expected!
I thought it possible that mythmetadatalookup would simply use the
script name in the inetref, but I thought first to test what would
happen if I renamed tvmaze.py to ttvdb.py and it worked. So good that
the inetref was after the hit changed to reflect tvmaze.py.

However, if you do not copy either tvmaze.py or tmdb3tv.py to ttvdb.py
searches won't work, it will always come up with a tmdb3.py reference.

So choose which of the two you want and copy (or simlink) that one to
ttvdb.py.


Tot mails,
Hika mailto:hikavdh@gmail.com

"Zonder hoop kun je niet leven
Zonder leven is er geen hoop
Het eeuwige dilemma
Zeker als je hoop moet vernietigen om te kunnen overleven!"

De lerende Mens

_______________________________________________
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: Important: Changes to Metadata lookup in March 2021 [ In reply to ]
On Thu, Feb 25, 2021 at 9:36 PM John Finlay via mythtv-users <
mythtv-users@mythtv.org> wrote:

> On 2/25/2021 10:45 AM, Hika van den Hoven wrote:
> > Hoi Peter,
> >
> > Thursday, February 25, 2021, 6:19:52 PM, you wrote:
> >
> >> Hi Hika
> >> On 2/25/21 11:19 AM, Hika van den Hoven wrote:
> >>> It was an ambiguous error. The python2 mysql module 'mysql-python' was
> >>> forked and renamed to 'mysqlclient'. So I had no mysql module under
> >>> python3. Took some fiddling under gentoo to keep the old one for
> >>> python 2.7 and the new one for python3 as they excluded each other.
> >>>
> >>> But now both tvmaze.py and tmdb3tv.py work under both python2 with
> >>> partial adapted 0.27 bindings and under python3 with the current
> >>> bindings.
> >>>
> >>> Next step is integration in older mythtv versions that have no
> >>> knowledge of those two new metadata grabbers and there I am a bit out
> >>> of my depth.
> >>> I can only think of renaming either one of the two to ttvdb.py and
> >>> update the inetrefs. But that requires their in- and output behaviour
> >>> to be exactly the same! And my first tests seem to indicate that is
> >>> not the case:-(
> >>>
> >>>
> >>> Tot mails,
> >>> Hikamailto:hikavdh@gmail.com
> >> Do you have a list of steps needed to get it to work with version 0.27,
> >> for other people that are on older version of MythTV?
> >> Peter
> > Get the latest version of mythtv from github:
> > Make directory where to place it and go there
> > run:
> > git clone https://github.com/MythTV/mythtv.git mythtv
> >
> > If that does not work, first install git!
> >
> > Next either install the pythonbindings from there into python3:
> > go inside the downloaded data to:
> > ...mythtv/mythtv/bindings/python
> > (substitute ... with the location you downloaded it to)
> > run:
> > sudo python3 ./setup.py install
> > install the following python modules if not jet there:
> > https://pypi.org/project/mysqlclient/
> > https://pypi.org/project/requests/
> > https://pypi.org/project/requests-cache/
> > https://pypi.org/project/python-dateutil/
> > https://pypi.org/project/future
> > by either
> > downloading the sourcefiles from above links,
> > unpacking them
> > and from the main directory within the unpacked files run:
> > sudo python3 ./setup.py install
> > or by finding the appropriate modules for your distribution.
> >
> > or update the apropriate bindingfiles in your python2.7 binding directory
> > on my system:
> > /usr/lib64/python2.7/site-packages/MythTV
> > on others possibly:
> > /usr/local/lib/python2.7/dist-packages/MythTV
> > or a variation of the above.
> >
> > Go to that directory
> > first backup the tmdb3 directory in there by renaming it to
> tmdb3.bak:
> > mv tmdb3 tmdb3.bak
> > copy from the above downloaded git files the tmdb3 and tvmaze
> directory into this MythTV directory:
> > sudo cp -rp ...mythtv/mythtv/bindings/python/tmdb3/tmdb3/ .
> > sudo cp -rp ...mythtv/mythtv/bindings/python/tvmaze/ .
> > (substitute ... with the location you downloaded mythtv into)
> > install the following python modules if not jet there:
> > https://pypi.org/project/requests/
> > https://pypi.org/project/requests-cache/
> > https://pypi.org/project/python-dateutil/
> > https://pypi.org/project/future
> > by either
> > downloading the sourcefiles from above links,
> > unpacking them
> > and from the main directory within the unpacked files run:
> > sudo python2 ./setup.py install
> > or by finding the appropriate modules for your distribution.
> >
> > Go to the location of the graberfiles in:
> > /usr/share/mythtv/metadata/Television/
> > sudo cp -p
> ...mythtv/mythtv/programs/scripts/metadata/Television/tvmaze.py .
> > sudo cp -p
> ...mythtv/mythtv/programs/scripts/metadata/Television/tmdb3tv.py .
> > (substitute ... with the location you downloaded mythtv into)
> > fix the bug at line 504 in tvmaze.py
> >
> > if not os.path.exists(cachedir):
> > - os.makedirs(cachepath)
> > + os.makedirs(cachedir)
> > if sys.version_info[0] == 2:
> >
> > if you installed the python3 bindings, ensure the first line of
> both files points to python3:
> > #!/usr/bin/env python3
> >
> > if you updated the python2 bindings,ensure the first line of both
> files points to python2:
> > #!/usr/bin/env python2
> >
> > if you updated the python2 bindings, you also have to update tmdb3.py in
> > /usr/share/mythtv/metadata/Movie/
> > go there and run:
> > sudo cp -p
> ...mythtv/mythtv/programs/scripts/metadata/Movie/tmdb3.py .
> > (substitute ... with the location you downloaded mythtv into)
> > I have not tested this tmdb3.py version with python2!
> >
> > Tests:
> > /usr/share/mythtv/metadata/Television/tvmaze.py -t
> > /usr/share/mythtv/metadata/Television/tmdb3tv.py -l en -a US -M Monk
> > /usr/share/mythtv/metadata/Television/tvmaze.py -l en -a US -M Monk
> >
> >
> >
>
>
> On my system with python2.7 I had to hack the lookup.py file line 300 from:
>
> if query.isnumeric():
>
> to:
>
> if unicode(query).isnumeric():
>
> because the string in query is not unicode.
>
> John
>
>
I have a fixes/29 system running and can look into this over the weekend.

Roland
Re: Important: Changes to Metadata lookup in March 2021 [ In reply to ]
On 2/25/21 1:36 PM, Roland Ernst wrote:
>
>
> On Thu, Feb 25, 2021 at 9:36 PM John Finlay via mythtv-users
> <mythtv-users@mythtv.org <mailto:mythtv-users@mythtv.org>> wrote:
>
> On 2/25/2021 10:45 AM, Hika van den Hoven wrote:
> > Hoi Peter,
> >
> > Thursday, February 25, 2021, 6:19:52 PM, you wrote:
> >
> >> Hi Hika
> >> On 2/25/21 11:19 AM, Hika van den Hoven wrote:
> >>> It was an ambiguous error. The python2 mysql module
> 'mysql-python' was
> >>> forked and renamed to 'mysqlclient'. So I had no mysql module
> under
> >>> python3. Took some fiddling under gentoo to keep the old one for
> >>> python 2.7 and the new one for python3 as they excluded each
> other.
> >>>
> >>> But now both tvmaze.py and tmdb3tv.py work under both python2 with
> >>> partial adapted 0.27 bindings and under python3 with the current
> >>> bindings.
> >>>
> >>> Next step is integration in older mythtv versions that have no
> >>> knowledge of those two new metadata grabbers and there I am a
> bit out
> >>> of my depth.
> >>> I can only think of renaming either one of the two to ttvdb.py and
> >>> update the inetrefs. But that requires their in- and output
> behaviour
> >>> to be exactly the same! And my first tests seem to indicate
> that is
> >>> not the case:-(
> >>>
> >>>
> >>> Tot mails,
> >>> Hikamailto:hikavdh@gmail.com
> <mailto:Hikamailto%3Ahikavdh@gmail.com>
> >> Do you have a list of steps needed to get it to work with
> version 0.27,
> >> for other people that are on older version of MythTV?
> >> Peter
> > Get the latest version of mythtv from github:
> >      Make directory where to place it and go there
> >      run:
> >      git clone https://github.com/MythTV/mythtv.git
> <https://github.com/MythTV/mythtv.git> mythtv
> >
> >      If that does not work, first install git!
> >
> > Next either install the pythonbindings from there into python3:
> >      go inside the downloaded data to:
> >          ...mythtv/mythtv/bindings/python
> >          (substitute ... with the location you downloaded it to)
> >      run:
> >          sudo python3 ./setup.py install
> >      install the following python modules if not jet there:
> > https://pypi.org/project/mysqlclient/
> <https://pypi.org/project/mysqlclient/>
> > https://pypi.org/project/requests/
> <https://pypi.org/project/requests/>
> > https://pypi.org/project/requests-cache/
> <https://pypi.org/project/requests-cache/>
> > https://pypi.org/project/python-dateutil/
> <https://pypi.org/project/python-dateutil/>
> > https://pypi.org/project/future <https://pypi.org/project/future>
> >      by either
> >          downloading the sourcefiles from above links,
> >          unpacking them
> >          and from the main directory within the unpacked files run:
> >          sudo python3 ./setup.py install
> >      or by finding the appropriate modules for your distribution.
> >
> > or update the apropriate bindingfiles in your python2.7 binding
> directory
> >      on my system:
> >          /usr/lib64/python2.7/site-packages/MythTV
> >      on others possibly:
> >          /usr/local/lib/python2.7/dist-packages/MythTV
> >      or a variation of the above.
> >
> >      Go to that directory
> >      first backup the tmdb3 directory in there by renaming it to
> tmdb3.bak:
> >          mv tmdb3 tmdb3.bak
> >      copy from the above downloaded git files the tmdb3 and
> tvmaze directory into this MythTV directory:
> >          sudo cp -rp ...mythtv/mythtv/bindings/python/tmdb3/tmdb3/ .
> >          sudo cp -rp ...mythtv/mythtv/bindings/python/tvmaze/ .
> >          (substitute ... with the location you downloaded mythtv
> into)
> >      install the following python modules if not jet there:
> > https://pypi.org/project/requests/
> <https://pypi.org/project/requests/>
> > https://pypi.org/project/requests-cache/
> <https://pypi.org/project/requests-cache/>
> > https://pypi.org/project/python-dateutil/
> <https://pypi.org/project/python-dateutil/>
> > https://pypi.org/project/future <https://pypi.org/project/future>
> >      by either
> >          downloading the sourcefiles from above links,
> >          unpacking them
> >          and from the main directory within the unpacked files run:
> >          sudo python2 ./setup.py install
> >      or by finding the appropriate modules for your distribution.
> >
> > Go to the location of the graberfiles in:
> >      /usr/share/mythtv/metadata/Television/
> >          sudo cp -p
> ...mythtv/mythtv/programs/scripts/metadata/Television/tvmaze.py .
> >          sudo cp -p
> ...mythtv/mythtv/programs/scripts/metadata/Television/tmdb3tv.py .
> >          (substitute ... with the location you downloaded mythtv
> into)
> >      fix the bug at line 504 in tvmaze.py
> >
> >          if not os.path.exists(cachedir):
> > -            os.makedirs(cachepath)
> > +            os.makedirs(cachedir)
> >          if sys.version_info[0] == 2:
> >
> >      if you installed the python3 bindings, ensure the first
> line of both files points to python3:
> >          #!/usr/bin/env python3
> >
> >      if you updated the python2 bindings,ensure the first line
> of both files points to python2:
> >          #!/usr/bin/env python2
> >
> > if you updated the python2 bindings, you also have to update
> tmdb3.py in
> >      /usr/share/mythtv/metadata/Movie/
> >      go there and run:
> >          sudo cp -p
> ...mythtv/mythtv/programs/scripts/metadata/Movie/tmdb3.py .
> >          (substitute ... with the location you downloaded mythtv
> into)
> >      I have not tested this tmdb3.py version with python2!
> >
> > Tests:
> > /usr/share/mythtv/metadata/Television/tvmaze.py -t
> > /usr/share/mythtv/metadata/Television/tmdb3tv.py -l en -a US -M Monk
> > /usr/share/mythtv/metadata/Television/tvmaze.py -l en -a US -M Monk
> >
> >
> >
>
>
> On my system with python2.7 I had to hack the lookup.py file line
> 300 from:
>
>     if query.isnumeric():
>
> to:
>
>     if unicode(query).isnumeric():
>
> because the string in query is not unicode.
>
> John
>
>
> I have a fixes/29 system running and can look into this over the weekend.
>
> Roland
>

One final note: in order to get mythtv to use tmdb3tv.py I had to
restart the backend after changing the Artwork and Data Sources setting.

Seems to be working as expected now after testing with a recording and a
videos TV program.

John
Re: Important: Changes to Metadata lookup in March 2021 [ In reply to ]
On 2/25/21 4:22 PM, Hika van den Hoven wrote:
> I have tested the integration with mythtv and that works. Even beter
> than I had expected!
> I thought it possible that mythmetadatalookup would simply use the
> script name in the inetref, but I thought first to test what would
> happen if I renamed tvmaze.py to ttvdb.py and it worked. So good that
> the inetref was after the hit changed to reflect tvmaze.py.
>
> However, if you do not copy either tvmaze.py or tmdb3tv.py to ttvdb.py
> searches won't work, it will always come up with a tmdb3.py reference.
>
> So choose which of the two you want and copy (or simlink) that one to
> ttvdb.py.

Hi Hika

Can you explain this. I don't understand.

All you need to do is go into mythfrontend -> setup -> Artwork and Data
Sources -> Television Metadata Source

Change there to whichever script you want and it will use that script
for shows that do not have the inetref filled in.

If you link one of the other script names to ttvdb.py then those
recording rules and recorded shows that have ttvdb.py_nnnnn in the
inetref will lookup the wrong show because the nnnnn is different for
each of the sources.

Maybe this works differently in 0.27. Does 0.27 have the Artwork and
Data Sources entry?

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
Re: Important: Changes to Metadata lookup in March 2021 [ In reply to ]
Hoi Peter,

Friday, February 26, 2021, 3:18:32 PM, you wrote:


> On 2/25/21 4:22 PM, Hika van den Hoven wrote:
>> I have tested the integration with mythtv and that works. Even beter
>> than I had expected!
>> I thought it possible that mythmetadatalookup would simply use the
>> script name in the inetref, but I thought first to test what would
>> happen if I renamed tvmaze.py to ttvdb.py and it worked. So good that
>> the inetref was after the hit changed to reflect tvmaze.py.
>>
>> However, if you do not copy either tvmaze.py or tmdb3tv.py to ttvdb.py
>> searches won't work, it will always come up with a tmdb3.py reference.
>>
>> So choose which of the two you want and copy (or simlink) that one to
>> ttvdb.py.

> Hi Hika

> Can you explain this. I don't understand.

> All you need to do is go into mythfrontend -> setup -> Artwork and Data
Sources ->> Television Metadata Source

> Change there to whichever script you want and it will use that script
> for shows that do not have the inetref filled in.

> If you link one of the other script names to ttvdb.py then those
> recording rules and recorded shows that have ttvdb.py_nnnnn in the
> inetref will lookup the wrong show because the nnnnn is different for
> each of the sources.

> Maybe this works differently in 0.27. Does 0.27 have the Artwork and
> Data Sources entry?

> Peter

OK, I assumed that this option was only introduced recently and was
not available in older versions. So I didn't even check.
But as I just looked, it is already there in 0.27. Thanks!
I already wondered why you were not interested in the integration
part. ;-)

My mistake, to assume without checking.

Tot mails,
Hika mailto:hikavdh@gmail.com

"Zonder hoop kun je niet leven
Zonder leven is er geen hoop
Het eeuwige dilemma
Zeker als je hoop moet vernietigen om te kunnen overleven!"

De lerende Mens

_______________________________________________
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: Important: Changes to Metadata lookup in March 2021 [ In reply to ]
Hoi Peter,

Thursday, February 25, 2021, 9:24:39 PM, you wrote:


> On 2/25/21 1:45 PM, Hika van den Hoven wrote:
>> Get the latest version of mythtv from github:
>> Make directory where to place it and go there

> Hika has written detailed instructions for installing the metadata
> changes manually on versions of MythTV older than v31. I have added
> these instructions to the wiki page at
> https://www.mythtv.org/wiki/Metadata_Lookup_Changes_March_2021 . The
> instructions are not simple and are not officially supported. Be
> prepared for problems! Let me know if you find things that can be
> improved in the instructions.

> Thank you Hika!

> Note - I removed the part about fixing the bug because that has now been
> fixed in github.

> Peter

One update for older installations. I have one old dedicated frontend
that is beyond updating. I have sometimes to reinstall everything. It
is still running with python 2.7.10 and next to earlier mentioned
python modules it was missing urllib3. The latest version of urllib3
that would install is 1.24.2
https://github.com/urllib3/urllib3/releases/tag/1.24.2

After that it worked OK. Not bad for a machine/installation untouched
since 2015! Except for moving it from an old big tv to a flatscreen 4
years ago.


Tot mails,
Hika mailto:hikavdh@gmail.com

"Zonder hoop kun je niet leven
Zonder leven is er geen hoop
Het eeuwige dilemma
Zeker als je hoop moet vernietigen om te kunnen overleven!"

De lerende Mens

_______________________________________________
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: Important: Changes to Metadata lookup in March 2021 [ In reply to ]
On Thu, Feb 25, 2021 at 9:36 PM John Finlay via mythtv-users <
mythtv-users@mythtv.org> wrote:

>
> On my system with python2.7 I had to hack the lookup.py file line 300 from:
>
> if query.isnumeric():
>
> to:
>
> if unicode(query).isnumeric():
>
> because the string in query is not unicode.
>
> John
>
>
John,
please try to change line 300 of lookup.py from

if query.isnumeric():

to:

if query.isdigit():

The *isdigit*() method returns True if all the characters are digits,
otherwise False.
And works for unicode strings and ascii strings in python2.
This should be compatible to python3 and python2.

Thanks,
Roland
Re: Important: Changes to Metadata lookup in March 2021 [ In reply to ]
On 2/26/2021 9:44 AM, Roland Ernst wrote:
>
> On Thu, Feb 25, 2021 at 9:36 PM John Finlay via mythtv-users
> <mythtv-users@mythtv.org <mailto:mythtv-users@mythtv.org>> wrote:
>
>
> On my system with python2.7 I had to hack the lookup.py file line
> 300 from:
>
>     if query.isnumeric():
>
> to:
>
>     if unicode(query).isnumeric():
>
> because the string in query is not unicode.
>
> John
>
>
> John,
> please try to change line 300 of lookup.py from
>
>      if query.isnumeric():
>
> to:
>
>     if query.isdigit():
>
> The /isdigit/() method returns True if all the characters are digits,
> otherwise False.
> And works for unicode strings and ascii strings in python2.
> This should be compatible to python3 and python2.
>
> Thanks,
> Roland
>
>

Thanks it works for me.

John
Re: Important: Changes to Metadata lookup in March 2021 [ In reply to ]
On 2/26/21 10:57 AM, John Finlay via mythtv-users wrote:
> On 2/26/2021 9:44 AM, Roland Ernst wrote:
>>
>> On Thu, Feb 25, 2021 at 9:36 PM John Finlay via mythtv-users
>> <mythtv-users@mythtv.org <mailto:mythtv-users@mythtv.org>> wrote:
>>
>>
>> On my system with python2.7 I had to hack the lookup.py file line
>> 300 from:
>>
>>     if query.isnumeric():
>>
>> to:
>>
>>     if unicode(query).isnumeric():
>>
>> because the string in query is not unicode.
>>
>> John
>>
>>
>> John,
>> please try to change line 300 of lookup.py from
>>
>>      if query.isnumeric():
>>
>> to:
>>
>>     if query.isdigit():
>>
>> The /isdigit/() method returns True if all the characters are digits,
>> otherwise False.
>> And works for unicode strings and ascii strings in python2.
>> This should be compatible to python3 and python2.
>>
>> Thanks,
>> Roland
>>
>>
>
> Thanks it works for me.
>
> John
>
> _______________________________________________
> 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

I am running 0.28 and the tmdb3tv.py seems to work, but the tvmaze.py
throws this error:

ERROR: <class 'requests.exceptions.SSLError'> :
HTTPSConnectionPool(host='api.tvmaze.com', port=443): Max retries
exceeded with url: /search/shows?q=Monk (Caused by
SSLError(CertificateError("hostname 'api.tvmaze.com' doesn't match
'tvlive.tvmaze.info'",),))

Any idea how to fix this?

Jay
Re: Important: Changes to Metadata lookup in March 2021 [ In reply to ]
On 2/26/21 6:18 AM, Peter Bennett wrote:
>
> On 2/25/21 4:22 PM, Hika van den Hoven wrote:
>> I have tested the integration with mythtv and that works. Even beter
>> than I had expected!
>> I thought it possible that mythmetadatalookup would simply use the
>> script name in the inetref, but I thought first to test what would
>> happen if I renamed tvmaze.py to ttvdb.py and it worked. So good that
>> the inetref was after the hit changed to reflect tvmaze.py.
>>
>> However, if you do not copy either tvmaze.py or tmdb3tv.py to ttvdb.py
>> searches won't work, it will always come up with a tmdb3.py reference.
>>
>> So choose which of the two you want and copy (or simlink) that one to
>> ttvdb.py.
>
> Hi Hika
>
> Can you explain this. I don't understand.
>
> All you need to do is go into mythfrontend -> setup -> Artwork and
> Data Sources -> Television Metadata Source
>
> Change there to whichever script you want and it will use that script
> for shows that do not have the inetref filled in.
>
> If you link one of the other script names to ttvdb.py then those
> recording rules and recorded shows that have ttvdb.py_nnnnn in the
> inetref will lookup the wrong show because the nnnnn is different for
> each of the sources.
>
> Maybe this works differently in 0.27. Does 0.27 have the Artwork and
> Data Sources entry?
>
> 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

This is not working for me with 0.28.  I go to mythfrontend -> setup ->
Artwork and Data Source -> Television, but there is only one choice
there (TheTVDB.com).  This is the name when using the previous tvdb.py
script.  Is it also the correct name for the new tvdb3tv.py script?  And
why do I not see tvmaze as a choice? I tried restarting the backend and
frontend, but makes no difference.

Jay

_______________________________________________
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: Important: Changes to Metadata lookup in March 2021 [ In reply to ]
Hoi Jay,

Saturday, February 27, 2021, 10:06:09 PM, you wrote:

> On 2/26/21 10:57 AM, John Finlay via mythtv-users wrote:

>
> On 2/26/2021 9:44 AM, Roland Ernst wrote:



>
> On Thu, Feb 25, 2021 at 9:36 PM John Finlay via
> mythtv-users <mythtv-users@mythtv.org> wrote:
>

> On my system with python2.7 I had to hack the
> lookup.py file line 300 from:
>
>     if query.isnumeric():
>
> to:
>
>     if unicode(query).isnumeric():
>
> because the string in query is not unicode.
>
> John
>
>
>

>
> John,
> please try to change line 300 of lookup.py from

>
>      if query.isnumeric():
>
> to:
>
>     if query.isdigit():

>
> The isdigit() method returns True if all the
> characters are digits, otherwise False.
> And works for unicode strings and ascii strings in python2.
>
> This should be compatible to python3 and python2.

>
> Thanks,
> Roland
>

>

> Thanks it works for me.

> John


> _______________________________________________
> mythtv-users mailing list
> mythtv-users@mythtv.orghttp://lists.mythtv.org/mailman/listinfo/mythtv-usershttp://wiki.mythtv.org/Mailing_List_etiquetteMythTV Forums: https://forum.mythtv.org
> I am running 0.28 and the tmdb3tv.py seems to work, but the tvmaze.py throws this error:
> ERROR: <class 'requests.exceptions.SSLError'> :
> HTTPSConnectionPool(host='api.tvmaze.com', port=443): Max retries
> exceeded with url: /search/shows?q=Monk (Caused by
> SSLError(CertificateError("hostname 'api.tvmaze.com' doesn't match 'tvlive.tvmaze.info'",),))
> Any idea how to fix this?
> Jay


My guess would be that you need to update your CA-certificates.

Tot mails,
Hika mailto:hikavdh@gmail.com

"Zonder hoop kun je niet leven
Zonder leven is er geen hoop
Het eeuwige dilemma
Zeker als je hoop moet vernietigen om te kunnen overleven!"

De lerende Mens

_______________________________________________
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: Important: Changes to Metadata lookup in March 2021 [ In reply to ]
On 2/27/2021 1:18 PM, Jay Foster wrote:
> On 2/26/21 6:18 AM, Peter Bennett wrote:
>>
>> On 2/25/21 4:22 PM, Hika van den Hoven wrote:
>>> I have tested the integration with mythtv and that works. Even beter
>>> than I had expected!
>>> I thought it possible that mythmetadatalookup would simply use the
>>> script name in the inetref, but I thought first to test what would
>>> happen if I renamed tvmaze.py to ttvdb.py and it worked. So good that
>>> the inetref was after the hit changed to reflect tvmaze.py.
>>>
>>> However, if you do not copy either tvmaze.py or tmdb3tv.py to ttvdb.py
>>> searches won't work, it will always come up with a tmdb3.py reference.
>>>
>>> So choose which of the two you want and copy (or simlink) that one to
>>> ttvdb.py.
>>
>> Hi Hika
>>
>> Can you explain this. I don't understand.
>>
>> All you need to do is go into mythfrontend -> setup -> Artwork and
>> Data Sources -> Television Metadata Source
>>
>> Change there to whichever script you want and it will use that script
>> for shows that do not have the inetref filled in.
>>
>> If you link one of the other script names to ttvdb.py then those
>> recording rules and recorded shows that have ttvdb.py_nnnnn in the
>> inetref will lookup the wrong show because the nnnnn is different for
>> each of the sources.
>>
>> Maybe this works differently in 0.27. Does 0.27 have the Artwork and
>> Data Sources entry?
>>
>> 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
>
> This is not working for me with 0.28.  I go to mythfrontend -> setup
> -> Artwork and Data Source -> Television, but there is only one choice
> there (TheTVDB.com).  This is the name when using the previous tvdb.py
> script.  Is it also the correct name for the new tvdb3tv.py script? 
> And why do I not see tvmaze as a choice? I tried restarting the
> backend and frontend, but makes no difference.
>

Did you copy tmdb3tv.py to the "/usr/share/mythtv/metadata/Television"
driectory? On 0.29 the mythtv frontend seems to scan the contents of the
directory to populate the Artwork and Data Sources choices.

John
_______________________________________________
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: Important: Changes to Metadata lookup in March 2021 [ In reply to ]
On 2/27/21 1:37 PM, John Finlay via mythtv-users wrote:
> On 2/27/2021 1:18 PM, Jay Foster wrote:
>> On 2/26/21 6:18 AM, Peter Bennett wrote:
>>>
>>> On 2/25/21 4:22 PM, Hika van den Hoven wrote:
>>>> I have tested the integration with mythtv and that works. Even beter
>>>> than I had expected!
>>>> I thought it possible that mythmetadatalookup would simply use the
>>>> script name in the inetref, but I thought first to test what would
>>>> happen if I renamed tvmaze.py to ttvdb.py and it worked. So good that
>>>> the inetref was after the hit changed to reflect tvmaze.py.
>>>>
>>>> However, if you do not copy either tvmaze.py or tmdb3tv.py to ttvdb.py
>>>> searches won't work, it will always come up with a tmdb3.py reference.
>>>>
>>>> So choose which of the two you want and copy (or simlink) that one to
>>>> ttvdb.py.
>>>
>>> Hi Hika
>>>
>>> Can you explain this. I don't understand.
>>>
>>> All you need to do is go into mythfrontend -> setup -> Artwork and
>>> Data Sources -> Television Metadata Source
>>>
>>> Change there to whichever script you want and it will use that script
>>> for shows that do not have the inetref filled in.
>>>
>>> If you link one of the other script names to ttvdb.py then those
>>> recording rules and recorded shows that have ttvdb.py_nnnnn in the
>>> inetref will lookup the wrong show because the nnnnn is different for
>>> each of the sources.
>>>
>>> Maybe this works differently in 0.27. Does 0.27 have the Artwork and
>>> Data Sources entry?
>>>
>>> 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
>>
>> This is not working for me with 0.28.  I go to mythfrontend -> setup
>> -> Artwork and Data Source -> Television, but there is only one choice
>> there (TheTVDB.com).  This is the name when using the previous tvdb.py
>> script.  Is it also the correct name for the new tvdb3tv.py script?
>> And why do I not see tvmaze as a choice? I tried restarting the
>> backend and frontend, but makes no difference.
>>
>
> Did you copy tmdb3tv.py to the "/usr/share/mythtv/metadata/Television"
> driectory? On 0.29 the mythtv frontend seems to scan the contents of the
> directory to populate the Artwork and Data Sources choices.
>
> John
> _______________________________________________
> 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

Yes I have.
jay@mythbox:/usr/share/mythtv/metadata$ ls -l Television/
total 188
-rwxrwxr-x 1 jay jay 5555 Feb 26 11:25 tmdb3tv.py
-rwxr-xr-x 1 root root 133392 Aug 26 2018 ttvdb.py
-rw-r--r-- 1 root root 248 Jan 26 2018 tvdb_test.conf
-rwxrwxr-x 1 jay jay 21512 Feb 27 12:59 tvmaze.py
-rw-rw-r-- 1 jay jay 17220 Feb 26 11:25 tvmaze_tests.txt
jay@mythbox:/usr/share/mythtv/metadata$

From the frontend, when I go to Artwork and Data Sources, I see a brief
popup stating that MythTV is scanning sources, but the Television
selection box has only one choice filled in (the existing ttvdb.py).
Jay
_______________________________________________
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: Important: Changes to Metadata lookup in March 2021 [ In reply to ]
On 2/27/21 1:30 PM, Hika van den Hoven wrote:
> Hoi Jay,
>
> Saturday, February 27, 2021, 10:06:09 PM, you wrote:
>
>> On 2/26/21 10:57 AM, John Finlay via mythtv-users wrote:
>
>>
>> On 2/26/2021 9:44 AM, Roland Ernst wrote:
>
>
>
>>
>> On Thu, Feb 25, 2021 at 9:36 PM John Finlay via
>> mythtv-users <mythtv-users@mythtv.org> wrote:
>>
>
>> On my system with python2.7 I had to hack the
>> lookup.py file line 300 from:
>>
>>     if query.isnumeric():
>>
>> to:
>>
>>     if unicode(query).isnumeric():
>>
>> because the string in query is not unicode.
>>
>> John
>>
>>
>>
>
>>
>> John,
>> please try to change line 300 of lookup.py from
>
>>
>>      if query.isnumeric():
>>
>> to:
>>
>>     if query.isdigit():
>
>>
>> The isdigit() method returns True if all the
>> characters are digits, otherwise False.
>> And works for unicode strings and ascii strings in python2.
>>
>> This should be compatible to python3 and python2.
>
>>
>> Thanks,
>> Roland
>>
>
>>
>
>> Thanks it works for me.
>
>> John
>
>
>> _______________________________________________
>> mythtv-users mailing list
>> mythtv-users@mythtv.orghttp://lists.mythtv.org/mailman/listinfo/mythtv-usershttp://wiki.mythtv.org/Mailing_List_etiquetteMythTV Forums: https://forum.mythtv.org
>> I am running 0.28 and the tmdb3tv.py seems to work, but the tvmaze.py throws this error:
>> ERROR: <class 'requests.exceptions.SSLError'> :
>> HTTPSConnectionPool(host='api.tvmaze.com', port=443): Max retries
>> exceeded with url: /search/shows?q=Monk (Caused by
>> SSLError(CertificateError("hostname 'api.tvmaze.com' doesn't match 'tvlive.tvmaze.info'",),))
>> Any idea how to fix this?
>> Jay
>
>
> My guess would be that you need to update your CA-certificates.
>
> Tot mails,
> Hika mailto:hikavdh@gmail.com
>
> "Zonder hoop kun je niet leven
> Zonder leven is er geen hoop
> Het eeuwige dilemma
> Zeker als je hoop moet vernietigen om te kunnen overleven!"
>
> De lerende Mens
>
> _______________________________________________
> 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
>
Any ideas on how I can fix that?
Jay
_______________________________________________
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: Important: Changes to Metadata lookup in March 2021 [ In reply to ]
On 2/27/21 4:11 PM, Jay Foster wrote:
> On 2/27/21 1:37 PM, John Finlay via mythtv-users wrote:
>> On 2/27/2021 1:18 PM, Jay Foster wrote:
>>> On 2/26/21 6:18 AM, Peter Bennett wrote:
>>>>
>>>> On 2/25/21 4:22 PM, Hika van den Hoven wrote:
>>>>> I have tested the integration with mythtv and that works. Even beter
>>>>> than I had expected!
>>>>> I thought it possible that mythmetadatalookup would simply use the
>>>>> script name in the inetref, but I thought first to test what would
>>>>> happen if I renamed tvmaze.py to ttvdb.py and it worked. So good that
>>>>> the inetref was after the hit changed to reflect tvmaze.py.
>>>>>
>>>>> However, if you do not copy either tvmaze.py or tmdb3tv.py to ttvdb.py
>>>>> searches won't work, it will always come up with a tmdb3.py reference.
>>>>>
>>>>> So choose which of the two you want and copy (or simlink) that one to
>>>>> ttvdb.py.
>>>>
>>>> Hi Hika
>>>>
>>>> Can you explain this. I don't understand.
>>>>
>>>> All you need to do is go into mythfrontend -> setup -> Artwork and
>>>> Data Sources -> Television Metadata Source
>>>>
>>>> Change there to whichever script you want and it will use that
>>>> script for shows that do not have the inetref filled in.
>>>>
>>>> If you link one of the other script names to ttvdb.py then those
>>>> recording rules and recorded shows that have ttvdb.py_nnnnn in the
>>>> inetref will lookup the wrong show because the nnnnn is different
>>>> for each of the sources.
>>>>
>>>> Maybe this works differently in 0.27. Does 0.27 have the Artwork and
>>>> Data Sources entry?
>>>>
>>>> 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
>>>
>>> This is not working for me with 0.28.  I go to mythfrontend -> setup
>>> -> Artwork and Data Source -> Television, but there is only one
>>> choice there (TheTVDB.com).  This is the name when using the previous
>>> tvdb.py script.  Is it also the correct name for the new tvdb3tv.py
>>> script? And why do I not see tvmaze as a choice? I tried restarting
>>> the backend and frontend, but makes no difference.
>>>
>>
>> Did you copy tmdb3tv.py to the "/usr/share/mythtv/metadata/Television"
>> driectory? On 0.29 the mythtv frontend seems to scan the contents of
>> the directory to populate the Artwork and Data Sources choices.
>>
>> John
>> _______________________________________________
>> 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
>
> Yes I have.
> jay@mythbox:/usr/share/mythtv/metadata$ ls -l Television/
> total 188
> -rwxrwxr-x 1 jay  jay    5555 Feb 26 11:25 tmdb3tv.py
> -rwxr-xr-x 1 root root 133392 Aug 26  2018 ttvdb.py
> -rw-r--r-- 1 root root    248 Jan 26  2018 tvdb_test.conf
> -rwxrwxr-x 1 jay  jay   21512 Feb 27 12:59 tvmaze.py
> -rw-rw-r-- 1 jay  jay   17220 Feb 26 11:25 tvmaze_tests.txt
> jay@mythbox:/usr/share/mythtv/metadata$
>
> From the frontend, when I go to Artwork and Data Sources, I see a brief
> popup stating that MythTV is scanning sources, but the Television
> selection box has only one choice filled in (the existing ttvdb.py).
> Jay
> _______________________________________________
> 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
When I compare the previous tmdb3 directory with the new tmdb3 directory
(in /usr/lib/python2.7/dist-packages/MythTV), I notice that the new
tvdb3 directory is missing the lookup.py script. Is that needed? Where
do I get it for the new version?
Jay
_______________________________________________
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: Important: Changes to Metadata lookup in March 2021 [ In reply to ]
Hoi Jay,

Sunday, February 28, 2021, 1:11:58 AM, you wrote:

> On 2/27/21 1:30 PM, Hika van den Hoven wrote:
>> Hoi Jay,
>>
>> Saturday, February 27, 2021, 10:06:09 PM, you wrote:
>>
>>> On 2/26/21 10:57 AM, John Finlay via mythtv-users wrote:
>>
>>>
>>> On 2/26/2021 9:44 AM, Roland Ernst wrote:
>>
>>
>>
>>>
>>> On Thu, Feb 25, 2021 at 9:36 PM John Finlay via
>>> mythtv-users <mythtv-users@mythtv.org> wrote:
>>>
>>
>>> On my system with python2.7 I had to hack the
>>> lookup.py file line 300 from:
>>>
>>>     if query.isnumeric():
>>>
>>> to:
>>>
>>>     if unicode(query).isnumeric():
>>>
>>> because the string in query is not unicode.
>>>
>>> John
>>>
>>>
>>>
>>
>>>
>>> John,
>>> please try to change line 300 of lookup.py from
>>
>>>
>>>      if query.isnumeric():
>>>
>>> to:
>>>
>>>     if query.isdigit():
>>
>>>
>>> The isdigit() method returns True if all the
>>> characters are digits, otherwise False.
>>> And works for unicode strings and ascii strings in python2.
>>>
>>> This should be compatible to python3 and python2.
>>
>>>
>>> Thanks,
>>> Roland
>>>
>>
>>>
>>
>>> Thanks it works for me.
>>
>>> John
>>
>>
>>> _______________________________________________
>>> mythtv-users mailing list
>>> mythtv-users@mythtv.orghttp://lists.mythtv.org/mailman/listinfo/mythtv-usershttp://wiki.mythtv.org/Mailing_List_etiquetteMythTV Forums: https://forum.mythtv.org
>>> I am running 0.28 and the tmdb3tv.py seems to work, but the tvmaze.py throws this error:
>>> ERROR: <class 'requests.exceptions.SSLError'> :
>>> HTTPSConnectionPool(host='api.tvmaze.com', port=443): Max retries
>>> exceeded with url: /search/shows?q=Monk (Caused by
>>> SSLError(CertificateError("hostname 'api.tvmaze.com' doesn't match 'tvlive.tvmaze.info'",),))
>>> Any idea how to fix this?
>>> Jay
>>
>>
>> My guess would be that you need to update your CA-certificates.
>>
>> Tot mails,
>> Hika mailto:hikavdh@gmail.com
>>
>>
> Any ideas on how I can fix that?
> Jay


Look for the right package for your distribution.

Tot mails,
Hika mailto:hikavdh@gmail.com

"Zonder hoop kun je niet leven
Zonder leven is er geen hoop
Het eeuwige dilemma
Zeker als je hoop moet vernietigen om te kunnen overleven!"

De lerende Mens

_______________________________________________
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: Important: Changes to Metadata lookup in March 2021 [ In reply to ]
Hoi Jay,

Sunday, February 28, 2021, 1:27:20 AM, you wrote:

> On 2/27/21 4:11 PM, Jay Foster wrote:
>> On 2/27/21 1:37 PM, John Finlay via mythtv-users wrote:
>>> On 2/27/2021 1:18 PM, Jay Foster wrote:
>>>> On 2/26/21 6:18 AM, Peter Bennett wrote:
>>>>>
>>>>> On 2/25/21 4:22 PM, Hika van den Hoven wrote:
>>>>>> I have tested the integration with mythtv and that works. Even beter
>>>>>> than I had expected!
>>>>>> I thought it possible that mythmetadatalookup would simply use the
>>>>>> script name in the inetref, but I thought first to test what would
>>>>>> happen if I renamed tvmaze.py to ttvdb.py and it worked. So good that
>>>>>> the inetref was after the hit changed to reflect tvmaze.py.
>>>>>>
>>>>>> However, if you do not copy either tvmaze.py or tmdb3tv.py to ttvdb.py
>>>>>> searches won't work, it will always come up with a tmdb3.py reference.
>>>>>>
>>>>>> So choose which of the two you want and copy (or simlink) that one to
>>>>>> ttvdb.py.
>>>>>
>>>>> Hi Hika
>>>>>
>>>>> Can you explain this. I don't understand.
>>>>>
>>>>> All you need to do is go into mythfrontend -> setup -> Artwork and
>>>>> Data Sources -> Television Metadata Source
>>>>>
>>>>> Change there to whichever script you want and it will use that
>>>>> script for shows that do not have the inetref filled in.
>>>>>
>>>>> If you link one of the other script names to ttvdb.py then those
>>>>> recording rules and recorded shows that have ttvdb.py_nnnnn in the
>>>>> inetref will lookup the wrong show because the nnnnn is different
>>>>> for each of the sources.
>>>>>
>>>>> Maybe this works differently in 0.27. Does 0.27 have the Artwork and
>>>>> Data Sources entry?
>>>>>
>>>>> 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
>>>>
>>>> This is not working for me with 0.28.  I go to mythfrontend -> setup
>>>> -> Artwork and Data Source -> Television, but there is only one
>>>> choice there (TheTVDB.com).  This is the name when using the previous
>>>> tvdb.py script.  Is it also the correct name for the new tvdb3tv.py
>>>> script? And why do I not see tvmaze as a choice? I tried restarting
>>>> the backend and frontend, but makes no difference.
>>>>
>>>
>>> Did you copy tmdb3tv.py to the "/usr/share/mythtv/metadata/Television"
>>> driectory? On 0.29 the mythtv frontend seems to scan the contents of
>>> the directory to populate the Artwork and Data Sources choices.
>>>
>>> John
>>> _______________________________________________
>>> 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
>>
>> Yes I have.
>> jay@mythbox:/usr/share/mythtv/metadata$ ls -l Television/
>> total 188
>> -rwxrwxr-x 1 jay  jay    5555 Feb 26 11:25 tmdb3tv.py
>> -rwxr-xr-x 1 root root 133392 Aug 26  2018 ttvdb.py
>> -rw-r--r-- 1 root root    248 Jan 26  2018 tvdb_test.conf
>> -rwxrwxr-x 1 jay  jay   21512 Feb 27 12:59 tvmaze.py
>> -rw-rw-r-- 1 jay  jay   17220 Feb 26 11:25 tvmaze_tests.txt
>> jay@mythbox:/usr/share/mythtv/metadata$
>>
>> From the frontend, when I go to Artwork and Data Sources, I see a brief
>> popup stating that MythTV is scanning sources, but the Television
>> selection box has only one choice filled in (the existing ttvdb.py).
>> Jay

> When I compare the previous tmdb3 directory with the new tmdb3 directory
> (in /usr/lib/python2.7/dist-packages/MythTV), I notice that the new
> tvdb3 directory is missing the lookup.py script. Is that needed? Where
> do I get it for the new version?
> Jay

Have you installed the 31 bindings in python3 or have you updated the
python2 bindings from your mythtv version?
And have you correspondingly adapted the first line of the grabber
files under /usr/share/mythtv/metadata/Television and Movie to point
to the right python version?

What is the response to:
tvmaze.py -t
tmdb3tv.py -t
tmdb3.py -t

If either of the grabber file does not respond with:
"Everything appears in order."
it probably will not be seen as a valid option and won't show in the
selection list.

Tot mails,
Hika mailto:hikavdh@gmail.com

"Zonder hoop kun je niet leven
Zonder leven is er geen hoop
Het eeuwige dilemma
Zeker als je hoop moet vernietigen om te kunnen overleven!"

De lerende Mens

_______________________________________________
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: Important: Changes to Metadata lookup in March 2021 [ In reply to ]
On 2/27/21 4:53 PM, Hika van den Hoven wrote:
> Hoi Jay,
>
> Sunday, February 28, 2021, 1:27:20 AM, you wrote:
>
>> On 2/27/21 4:11 PM, Jay Foster wrote:
>>> On 2/27/21 1:37 PM, John Finlay via mythtv-users wrote:
>>>> On 2/27/2021 1:18 PM, Jay Foster wrote:
>>>>> On 2/26/21 6:18 AM, Peter Bennett wrote:
>>>>>>
>>>>>> On 2/25/21 4:22 PM, Hika van den Hoven wrote:
>>>>>>> I have tested the integration with mythtv and that works. Even beter
>>>>>>> than I had expected!
>>>>>>> I thought it possible that mythmetadatalookup would simply use the
>>>>>>> script name in the inetref, but I thought first to test what would
>>>>>>> happen if I renamed tvmaze.py to ttvdb.py and it worked. So good that
>>>>>>> the inetref was after the hit changed to reflect tvmaze.py.
>>>>>>>
>>>>>>> However, if you do not copy either tvmaze.py or tmdb3tv.py to ttvdb.py
>>>>>>> searches won't work, it will always come up with a tmdb3.py reference.
>>>>>>>
>>>>>>> So choose which of the two you want and copy (or simlink) that one to
>>>>>>> ttvdb.py.
>>>>>>
>>>>>> Hi Hika
>>>>>>
>>>>>> Can you explain this. I don't understand.
>>>>>>
>>>>>> All you need to do is go into mythfrontend -> setup -> Artwork and
>>>>>> Data Sources -> Television Metadata Source
>>>>>>
>>>>>> Change there to whichever script you want and it will use that
>>>>>> script for shows that do not have the inetref filled in.
>>>>>>
>>>>>> If you link one of the other script names to ttvdb.py then those
>>>>>> recording rules and recorded shows that have ttvdb.py_nnnnn in the
>>>>>> inetref will lookup the wrong show because the nnnnn is different
>>>>>> for each of the sources.
>>>>>>
>>>>>> Maybe this works differently in 0.27. Does 0.27 have the Artwork and
>>>>>> Data Sources entry?
>>>>>>
>>>>>> 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
>>>>>
>>>>> This is not working for me with 0.28.  I go to mythfrontend -> setup
>>>>> -> Artwork and Data Source -> Television, but there is only one
>>>>> choice there (TheTVDB.com).  This is the name when using the previous
>>>>> tvdb.py script.  Is it also the correct name for the new tvdb3tv.py
>>>>> script? And why do I not see tvmaze as a choice? I tried restarting
>>>>> the backend and frontend, but makes no difference.
>>>>>
>>>>
>>>> Did you copy tmdb3tv.py to the "/usr/share/mythtv/metadata/Television"
>>>> driectory? On 0.29 the mythtv frontend seems to scan the contents of
>>>> the directory to populate the Artwork and Data Sources choices.
>>>>
>>>> John
>>>> _______________________________________________
>>>> 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
>>>
>>> Yes I have.
>>> jay@mythbox:/usr/share/mythtv/metadata$ ls -l Television/
>>> total 188
>>> -rwxrwxr-x 1 jay  jay    5555 Feb 26 11:25 tmdb3tv.py
>>> -rwxr-xr-x 1 root root 133392 Aug 26  2018 ttvdb.py
>>> -rw-r--r-- 1 root root    248 Jan 26  2018 tvdb_test.conf
>>> -rwxrwxr-x 1 jay  jay   21512 Feb 27 12:59 tvmaze.py
>>> -rw-rw-r-- 1 jay  jay   17220 Feb 26 11:25 tvmaze_tests.txt
>>> jay@mythbox:/usr/share/mythtv/metadata$
>>>
>>> From the frontend, when I go to Artwork and Data Sources, I see a brief
>>> popup stating that MythTV is scanning sources, but the Television
>>> selection box has only one choice filled in (the existing ttvdb.py).
>>> Jay
>
>> When I compare the previous tmdb3 directory with the new tmdb3 directory
>> (in /usr/lib/python2.7/dist-packages/MythTV), I notice that the new
>> tvdb3 directory is missing the lookup.py script. Is that needed? Where
>> do I get it for the new version?
>> Jay
>
> Have you installed the 31 bindings in python3 or have you updated the
> python2 bindings from your mythtv version?
> And have you correspondingly adapted the first line of the grabber
> files under /usr/share/mythtv/metadata/Television and Movie to point
> to the right python version?
>
> What is the response to:
> tvmaze.py -t
> tmdb3tv.py -t
> tmdb3.py -t
>
> If either of the grabber file does not respond with:
> "Everything appears in order."
> it probably will not be seen as a valid option and won't show in the
> selection list.
>
> Tot mails,
> Hika mailto:hikavdh@gmail.com
>
> "Zonder hoop kun je niet leven
> Zonder leven is er geen hoop
> Het eeuwige dilemma
> Zeker als je hoop moet vernietigen om te kunnen overleven!"
>
> De lerende Mens
>
> _______________________________________________
> 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
>
Yes, I have done each of those tasks, and the test option reports
everything looks okay.
jay@mythbox:/usr/share/mythtv/metadata$ ./Television/tmdb3tv.py -t
Everything appears in order.
jay@mythbox:/usr/share/mythtv/metadata$ ./Television/tvmaze.py -t
Everything appears in order.
jay@mythbox:/usr/share/mythtv/metadata$ ./Movie/tmdb3.py -t
Everything appears in order.
jay@mythbox:/usr/share/mythtv/metadata$
Jay
_______________________________________________
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: Important: Changes to Metadata lookup in March 2021 [ In reply to ]
On 2/27/21 4:27 PM, Jay Foster wrote:
> On 2/27/21 4:11 PM, Jay Foster wrote:
>> On 2/27/21 1:37 PM, John Finlay via mythtv-users wrote:
>>> On 2/27/2021 1:18 PM, Jay Foster wrote:
>>>> On 2/26/21 6:18 AM, Peter Bennett wrote:
>>>>>
>>>>> On 2/25/21 4:22 PM, Hika van den Hoven wrote:
>>>>>> I have tested the integration with mythtv and that works. Even beter
>>>>>> than I had expected!
>>>>>> I thought it possible that mythmetadatalookup would simply use the
>>>>>> script name in the inetref, but I thought first to test what would
>>>>>> happen if I renamed tvmaze.py to ttvdb.py and it worked. So good that
>>>>>> the inetref was after the hit changed to reflect tvmaze.py.
>>>>>>
>>>>>> However, if you do not copy either tvmaze.py or tmdb3tv.py to
>>>>>> ttvdb.py
>>>>>> searches won't work, it will always come up with a tmdb3.py
>>>>>> reference.
>>>>>>
>>>>>> So choose which of the two you want and copy (or simlink) that one to
>>>>>> ttvdb.py.
>>>>>
>>>>> Hi Hika
>>>>>
>>>>> Can you explain this. I don't understand.
>>>>>
>>>>> All you need to do is go into mythfrontend -> setup -> Artwork and
>>>>> Data Sources -> Television Metadata Source
>>>>>
>>>>> Change there to whichever script you want and it will use that
>>>>> script for shows that do not have the inetref filled in.
>>>>>
>>>>> If you link one of the other script names to ttvdb.py then those
>>>>> recording rules and recorded shows that have ttvdb.py_nnnnn in the
>>>>> inetref will lookup the wrong show because the nnnnn is different
>>>>> for each of the sources.
>>>>>
>>>>> Maybe this works differently in 0.27. Does 0.27 have the Artwork
>>>>> and Data Sources entry?
>>>>>
>>>>> 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
>>>>
>>>> This is not working for me with 0.28.  I go to mythfrontend -> setup
>>>> -> Artwork and Data Source -> Television, but there is only one
>>>> choice there (TheTVDB.com).  This is the name when using the
>>>> previous tvdb.py script.  Is it also the correct name for the new
>>>> tvdb3tv.py script? And why do I not see tvmaze as a choice? I tried
>>>> restarting the backend and frontend, but makes no difference.
>>>>
>>>
>>> Did you copy tmdb3tv.py to the
>>> "/usr/share/mythtv/metadata/Television" driectory? On 0.29 the mythtv
>>> frontend seems to scan the contents of the directory to populate the
>>> Artwork and Data Sources choices.
>>>
>>> John
>>> _______________________________________________
>>> 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
>>
>> Yes I have.
>> jay@mythbox:/usr/share/mythtv/metadata$ ls -l Television/
>> total 188
>> -rwxrwxr-x 1 jay  jay    5555 Feb 26 11:25 tmdb3tv.py
>> -rwxr-xr-x 1 root root 133392 Aug 26  2018 ttvdb.py
>> -rw-r--r-- 1 root root    248 Jan 26  2018 tvdb_test.conf
>> -rwxrwxr-x 1 jay  jay   21512 Feb 27 12:59 tvmaze.py
>> -rw-rw-r-- 1 jay  jay   17220 Feb 26 11:25 tvmaze_tests.txt
>> jay@mythbox:/usr/share/mythtv/metadata$
>>
>>  From the frontend, when I go to Artwork and Data Sources, I see a
>> brief popup stating that MythTV is scanning sources, but the
>> Television selection box has only one choice filled in (the existing
>> ttvdb.py).
>> Jay
>> _______________________________________________
>> 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
> When I compare the previous tmdb3 directory with the new tmdb3 directory
> (in /usr/lib/python2.7/dist-packages/MythTV), I notice that the new
> tvdb3 directory is missing the lookup.py script.  Is that needed?  Where
> do I get it for the new version?
> Jay
> _______________________________________________
> 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
Disregard the post about the missing lookup.py. I had the previous and
new directories reversed.
Jay
_______________________________________________
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: Important: Changes to Metadata lookup in March 2021 [ In reply to ]
On 2/27/21 5:15 PM, Jay Foster wrote:
> On 2/27/21 4:53 PM, Hika van den Hoven wrote:
>> Hoi Jay,
>>
>> Sunday, February 28, 2021, 1:27:20 AM, you wrote:
>>
>>> On 2/27/21 4:11 PM, Jay Foster wrote:
>>>> On 2/27/21 1:37 PM, John Finlay via mythtv-users wrote:
>>>>> On 2/27/2021 1:18 PM, Jay Foster wrote:
>>>>>> On 2/26/21 6:18 AM, Peter Bennett wrote:
>>>>>>>
>>>>>>> On 2/25/21 4:22 PM, Hika van den Hoven wrote:
>>>>>>>> I have tested the integration with mythtv and that works. Even
>>>>>>>> beter
>>>>>>>> than I had expected!
>>>>>>>> I thought it possible that mythmetadatalookup would simply use the
>>>>>>>> script name in the inetref, but I thought first to test what would
>>>>>>>> happen if I renamed tvmaze.py to ttvdb.py and it worked. So good
>>>>>>>> that
>>>>>>>> the inetref was after the hit changed to reflect tvmaze.py.
>>>>>>>>
>>>>>>>> However, if you do not copy either tvmaze.py or tmdb3tv.py to
>>>>>>>> ttvdb.py
>>>>>>>> searches won't work, it will always come up with a tmdb3.py
>>>>>>>> reference.
>>>>>>>>
>>>>>>>> So choose which of the two you want and copy (or simlink) that
>>>>>>>> one to
>>>>>>>> ttvdb.py.
>>>>>>>
>>>>>>> Hi Hika
>>>>>>>
>>>>>>> Can you explain this. I don't understand.
>>>>>>>
>>>>>>> All you need to do is go into mythfrontend -> setup -> Artwork and
>>>>>>> Data Sources -> Television Metadata Source
>>>>>>>
>>>>>>> Change there to whichever script you want and it will use that
>>>>>>> script for shows that do not have the inetref filled in.
>>>>>>>
>>>>>>> If you link one of the other script names to ttvdb.py then those
>>>>>>> recording rules and recorded shows that have ttvdb.py_nnnnn in the
>>>>>>> inetref will lookup the wrong show because the nnnnn is different
>>>>>>> for each of the sources.
>>>>>>>
>>>>>>> Maybe this works differently in 0.27. Does 0.27 have the Artwork and
>>>>>>> Data Sources entry?
>>>>>>>
>>>>>>> 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
>>>>>>
>>>>>> This is not working for me with 0.28.  I go to mythfrontend -> setup
>>>>>> -> Artwork and Data Source -> Television, but there is only one
>>>>>> choice there (TheTVDB.com).  This is the name when using the previous
>>>>>> tvdb.py script.  Is it also the correct name for the new tvdb3tv.py
>>>>>> script? And why do I not see tvmaze as a choice? I tried restarting
>>>>>> the backend and frontend, but makes no difference.
>>>>>>
>>>>>
>>>>> Did you copy tmdb3tv.py to the "/usr/share/mythtv/metadata/Television"
>>>>> driectory? On 0.29 the mythtv frontend seems to scan the contents of
>>>>> the directory to populate the Artwork and Data Sources choices.
>>>>>
>>>>> John
>>>>> _______________________________________________
>>>>> 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
>>>>
>>>> Yes I have.
>>>> jay@mythbox:/usr/share/mythtv/metadata$ ls -l Television/
>>>> total 188
>>>> -rwxrwxr-x 1 jay  jay    5555 Feb 26 11:25 tmdb3tv.py
>>>> -rwxr-xr-x 1 root root 133392 Aug 26  2018 ttvdb.py
>>>> -rw-r--r-- 1 root root    248 Jan 26  2018 tvdb_test.conf
>>>> -rwxrwxr-x 1 jay  jay   21512 Feb 27 12:59 tvmaze.py
>>>> -rw-rw-r-- 1 jay  jay   17220 Feb 26 11:25 tvmaze_tests.txt
>>>> jay@mythbox:/usr/share/mythtv/metadata$
>>>>
>>>>   From the frontend, when I go to Artwork and Data Sources, I see a
>>>> brief
>>>> popup stating that MythTV is scanning sources, but the Television
>>>> selection box has only one choice filled in (the existing ttvdb.py).
>>>> Jay
>>
>>> When I compare the previous tmdb3 directory with the new tmdb3 directory
>>> (in /usr/lib/python2.7/dist-packages/MythTV), I notice that the new
>>> tvdb3 directory is missing the lookup.py script.  Is that needed?  Where
>>> do I get it for the new version?
>>> Jay
>>
>> Have you installed the 31 bindings in python3 or have you updated the
>> python2 bindings from your mythtv version?
>> And have you correspondingly adapted the first line of the grabber
>> files under /usr/share/mythtv/metadata/Television and Movie to point
>> to the right python version?
>>
>> What is the response to:
>> tvmaze.py -t
>> tmdb3tv.py -t
>> tmdb3.py -t
>>
>> If either of the grabber file does not respond with:
>> "Everything appears in order."
>> it probably will not be seen as a valid option and won't show in the
>> selection list.
>>
>> Tot mails,
>>    Hika                            mailto:hikavdh@gmail.com
>>
>> "Zonder hoop kun je niet leven
>> Zonder leven is er geen hoop
>> Het eeuwige dilemma
>> Zeker als je hoop moet vernietigen om te kunnen overleven!"
>>
>> De lerende Mens
>>
>> _______________________________________________
>> 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
>>
> Yes, I have done each of those tasks, and the test option reports
> everything looks okay.
> jay@mythbox:/usr/share/mythtv/metadata$ ./Television/tmdb3tv.py -t
> Everything appears in order.
> jay@mythbox:/usr/share/mythtv/metadata$ ./Television/tvmaze.py -t
> Everything appears in order.
> jay@mythbox:/usr/share/mythtv/metadata$ ./Movie/tmdb3.py -t
> Everything appears in order.
> jay@mythbox:/usr/share/mythtv/metadata$
> Jay
> _______________________________________________
> 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
I just now went back to the frontend and tried to select the new
metadata sources again. The new Movie and new Television choices now
show up (yeah). I selected the new tmdb V3 sources for both Movies and
Television (tvmaze still does not pass it's tests due to some kind of
TLS certificate issue). I will restart the frontend and backend.
How do I test that this works from within MythTV?
Jay
_______________________________________________
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: Important: Changes to Metadata lookup in March 2021 [ In reply to ]
Hoi Jay,

Sunday, February 28, 2021, 2:22:15 AM, you wrote:

> On 2/27/21 5:15 PM, Jay Foster wrote:

> I just now went back to the frontend and tried to select the new
> metadata sources again. The new Movie and new Television choices now
> show up (yeah). I selected the new tmdb V3 sources for both Movies and
> Television (tvmaze still does not pass it's tests due to some kind of
> TLS certificate issue). I will restart the frontend and backend.
> How do I test that this works from within MythTV?
> Jay

If you want to find the correct inetref for the new grabber go to the
schedule as there you can initiate a search:
m > Recording Options > Edit Recording Schedule
goto Metadata Options and remove there the old inetref.
Click on Perform Query
If you are satisfied, save the adapted schedule. All new recordings
will get the new inetref. To adapt old recording, write down the new
inetref and go:
m > Recording Options > Change Recording Metadata
adapt the inetref there and run the lookup job:
m > Job Options > Begin Metadata Lookup


Tot mails,
Hika mailto:hikavdh@gmail.com

"Zonder hoop kun je niet leven
Zonder leven is er geen hoop
Het eeuwige dilemma
Zeker als je hoop moet vernietigen om te kunnen overleven!"

De lerende Mens

_______________________________________________
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: Important: Changes to Metadata lookup in March 2021 [ In reply to ]
On 2/27/21 5:22 PM, Jay Foster wrote:
> On 2/27/21 5:15 PM, Jay Foster wrote:
>> On 2/27/21 4:53 PM, Hika van den Hoven wrote:
>>> Hoi Jay,
>>>
>>> Sunday, February 28, 2021, 1:27:20 AM, you wrote:
>>>
>>>> On 2/27/21 4:11 PM, Jay Foster wrote:
>>>>> On 2/27/21 1:37 PM, John Finlay via mythtv-users wrote:
>>>>>> On 2/27/2021 1:18 PM, Jay Foster wrote:
>>>>>>> On 2/26/21 6:18 AM, Peter Bennett wrote:
>>>>>>>>
>>>>>>>> On 2/25/21 4:22 PM, Hika van den Hoven wrote:
>>>>>>>>> I have tested the integration with mythtv and that works. Even
>>>>>>>>> beter
>>>>>>>>> than I had expected!
>>>>>>>>> I thought it possible that mythmetadatalookup would simply use the
>>>>>>>>> script name in the inetref, but I thought first to test what would
>>>>>>>>> happen if I renamed tvmaze.py to ttvdb.py and it worked. So
>>>>>>>>> good that
>>>>>>>>> the inetref was after the hit changed to reflect tvmaze.py.
>>>>>>>>>
>>>>>>>>> However, if you do not copy either tvmaze.py or tmdb3tv.py to
>>>>>>>>> ttvdb.py
>>>>>>>>> searches won't work, it will always come up with a tmdb3.py
>>>>>>>>> reference.
>>>>>>>>>
>>>>>>>>> So choose which of the two you want and copy (or simlink) that
>>>>>>>>> one to
>>>>>>>>> ttvdb.py.
>>>>>>>>
>>>>>>>> Hi Hika
>>>>>>>>
>>>>>>>> Can you explain this. I don't understand.
>>>>>>>>
>>>>>>>> All you need to do is go into mythfrontend -> setup -> Artwork and
>>>>>>>> Data Sources -> Television Metadata Source
>>>>>>>>
>>>>>>>> Change there to whichever script you want and it will use that
>>>>>>>> script for shows that do not have the inetref filled in.
>>>>>>>>
>>>>>>>> If you link one of the other script names to ttvdb.py then those
>>>>>>>> recording rules and recorded shows that have ttvdb.py_nnnnn in the
>>>>>>>> inetref will lookup the wrong show because the nnnnn is different
>>>>>>>> for each of the sources.
>>>>>>>>
>>>>>>>> Maybe this works differently in 0.27. Does 0.27 have the Artwork
>>>>>>>> and
>>>>>>>> Data Sources entry?
>>>>>>>>
>>>>>>>> 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
>>>>>>>
>>>>>>> This is not working for me with 0.28.  I go to mythfrontend -> setup
>>>>>>> -> Artwork and Data Source -> Television, but there is only one
>>>>>>> choice there (TheTVDB.com).  This is the name when using the
>>>>>>> previous
>>>>>>> tvdb.py script.  Is it also the correct name for the new tvdb3tv.py
>>>>>>> script? And why do I not see tvmaze as a choice? I tried restarting
>>>>>>> the backend and frontend, but makes no difference.
>>>>>>>
>>>>>>
>>>>>> Did you copy tmdb3tv.py to the
>>>>>> "/usr/share/mythtv/metadata/Television"
>>>>>> driectory? On 0.29 the mythtv frontend seems to scan the contents of
>>>>>> the directory to populate the Artwork and Data Sources choices.
>>>>>>
>>>>>> John
>>>>>> _______________________________________________
>>>>>> 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
>>>>>
>>>>> Yes I have.
>>>>> jay@mythbox:/usr/share/mythtv/metadata$ ls -l Television/
>>>>> total 188
>>>>> -rwxrwxr-x 1 jay  jay    5555 Feb 26 11:25 tmdb3tv.py
>>>>> -rwxr-xr-x 1 root root 133392 Aug 26  2018 ttvdb.py
>>>>> -rw-r--r-- 1 root root    248 Jan 26  2018 tvdb_test.conf
>>>>> -rwxrwxr-x 1 jay  jay   21512 Feb 27 12:59 tvmaze.py
>>>>> -rw-rw-r-- 1 jay  jay   17220 Feb 26 11:25 tvmaze_tests.txt
>>>>> jay@mythbox:/usr/share/mythtv/metadata$
>>>>>
>>>>>   From the frontend, when I go to Artwork and Data Sources, I see a
>>>>> brief
>>>>> popup stating that MythTV is scanning sources, but the Television
>>>>> selection box has only one choice filled in (the existing ttvdb.py).
>>>>> Jay
>>>
>>>> When I compare the previous tmdb3 directory with the new tmdb3
>>>> directory
>>>> (in /usr/lib/python2.7/dist-packages/MythTV), I notice that the new
>>>> tvdb3 directory is missing the lookup.py script.  Is that needed?
>>>> Where
>>>> do I get it for the new version?
>>>> Jay
>>>
>>> Have you installed the 31 bindings in python3 or have you updated the
>>> python2 bindings from your mythtv version?
>>> And have you correspondingly adapted the first line of the grabber
>>> files under /usr/share/mythtv/metadata/Television and Movie to point
>>> to the right python version?
>>>
>>> What is the response to:
>>> tvmaze.py -t
>>> tmdb3tv.py -t
>>> tmdb3.py -t
>>>
>>> If either of the grabber file does not respond with:
>>> "Everything appears in order."
>>> it probably will not be seen as a valid option and won't show in the
>>> selection list.
>>>
>>> Tot mails,
>>>    Hika                            mailto:hikavdh@gmail.com
>>>
>>> "Zonder hoop kun je niet leven
>>> Zonder leven is er geen hoop
>>> Het eeuwige dilemma
>>> Zeker als je hoop moet vernietigen om te kunnen overleven!"
>>>
>>> De lerende Mens
>>>
>>> _______________________________________________
>>> 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
>>>
>> Yes, I have done each of those tasks, and the test option reports
>> everything looks okay.
>> jay@mythbox:/usr/share/mythtv/metadata$ ./Television/tmdb3tv.py -t
>> Everything appears in order.
>> jay@mythbox:/usr/share/mythtv/metadata$ ./Television/tvmaze.py -t
>> Everything appears in order.
>> jay@mythbox:/usr/share/mythtv/metadata$ ./Movie/tmdb3.py -t
>> Everything appears in order.
>> jay@mythbox:/usr/share/mythtv/metadata$
>> Jay
>> _______________________________________________
>> 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
> I just now went back to the frontend and tried to select the new
> metadata sources again.  The new Movie and new Television choices now
> show up (yeah).  I selected the new tmdb V3 sources for both Movies and
> Television (tvmaze still does not pass it's tests due to some kind of
> TLS certificate issue).  I will restart the frontend and backend.
> How do I test that this works from within MythTV?
> Jay
> _______________________________________________
> 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
I am oh so close, but not quite there yet.
I next ran into the query.isnumeric() issue, which I corrected by
changing to isdigit() as suggested elsewhere in this thread. However,
lookups are still failing. If I run:
/usr/share/mythtv/metadata/Television/tmdb3tv.py -l en -a US -M Monk
the script returns valid XML text, which contains an inetref value of
1695. But when I then run:
/usr/share/mythtv/metadata/Television/tmdb3tv.py -l en -a US -N 1695
I get an error (ERROR: Episode not found: ['1695']
What am I missing here?
Jay

_______________________________________________
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: Important: Changes to Metadata lookup in March 2021 [ In reply to ]
On 2/27/21 4:43 PM, Hika van den Hoven wrote:
> Hoi Jay,
>
> Sunday, February 28, 2021, 1:11:58 AM, you wrote:
>
>> On 2/27/21 1:30 PM, Hika van den Hoven wrote:
>>> Hoi Jay,
>>>
>>> Saturday, February 27, 2021, 10:06:09 PM, you wrote:
>>>
>>>> On 2/26/21 10:57 AM, John Finlay via mythtv-users wrote:
>>>
>>>>
>>>> On 2/26/2021 9:44 AM, Roland Ernst wrote:
>>>
>>>
>>>
>>>>
>>>> On Thu, Feb 25, 2021 at 9:36 PM John Finlay via
>>>> mythtv-users <mythtv-users@mythtv.org> wrote:
>>>>
>>>
>>>> On my system with python2.7 I had to hack the
>>>> lookup.py file line 300 from:
>>>>
>>>>     if query.isnumeric():
>>>>
>>>> to:
>>>>
>>>>     if unicode(query).isnumeric():
>>>>
>>>> because the string in query is not unicode.
>>>>
>>>> John
>>>>
>>>>
>>>>
>>>
>>>>
>>>> John,
>>>> please try to change line 300 of lookup.py from
>>>
>>>>
>>>>      if query.isnumeric():
>>>>
>>>> to:
>>>>
>>>>     if query.isdigit():
>>>
>>>>
>>>> The isdigit() method returns True if all the
>>>> characters are digits, otherwise False.
>>>> And works for unicode strings and ascii strings in python2.
>>>>
>>>> This should be compatible to python3 and python2.
>>>
>>>>
>>>> Thanks,
>>>> Roland
>>>>
>>>
>>>>
>>>
>>>> Thanks it works for me.
>>>
>>>> John
>>>
>>>
>>>> _______________________________________________
>>>> mythtv-users mailing list
>>>> mythtv-users@mythtv.orghttp://lists.mythtv.org/mailman/listinfo/mythtv-usershttp://wiki.mythtv.org/Mailing_List_etiquetteMythTV Forums: https://forum.mythtv.org
>>>> I am running 0.28 and the tmdb3tv.py seems to work, but the tvmaze.py throws this error:
>>>> ERROR: <class 'requests.exceptions.SSLError'> :
>>>> HTTPSConnectionPool(host='api.tvmaze.com', port=443): Max retries
>>>> exceeded with url: /search/shows?q=Monk (Caused by
>>>> SSLError(CertificateError("hostname 'api.tvmaze.com' doesn't match 'tvlive.tvmaze.info'",),))
>>>> Any idea how to fix this?
>>>> Jay
>>>
>>>
>>> My guess would be that you need to update your CA-certificates.
>>>
>>> Tot mails,
>>> Hika mailto:hikavdh@gmail.com
>>>
>>>
>> Any ideas on how I can fix that?
>> Jay
>
>
> Look for the right package for your distribution.
>
> Tot mails,
> Hika mailto:hikavdh@gmail.com
>
> "Zonder hoop kun je niet leven
> Zonder leven is er geen hoop
> Het eeuwige dilemma
> Zeker als je hoop moet vernietigen om te kunnen overleven!"
>
> De lerende Mens
>
> _______________________________________________
> 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
>
No joy here. I updated to a recent ca-certificates package, but the
issue persists. I can access the https://tvmaze.com website using
firefox with no problem and view the site certificate which has a common
name of tvmaze.com. However, for some reason, the tvmaze.py script is
trying to use tvlive.tvmaze.info instead, which does not match.
Jay
_______________________________________________
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: Important: Changes to Metadata lookup in March 2021 [ In reply to ]
On 2/27/21 8:08 PM, Jay Foster wrote:

...

> I am oh so close, but not quite there yet.
> I next ran into the query.isnumeric() issue, which I corrected by changing to isdigit() as suggested elsewhere in this thread.  However, lookups
> are still failing.  If I run:
> /usr/share/mythtv/metadata/Television/tmdb3tv.py -l en -a US -M Monk
> the script returns valid XML text, which contains an inetref value of 1695.  But when I then run:
> /usr/share/mythtv/metadata/Television/tmdb3tv.py -l en -a US -N 1695
> I get an error (ERROR: Episode not found: ['1695']
> What am I missing here?
> Jay

-N, --numbers Get television Season and Episode numbers. Needs title
and subtitle or *inetref and subtitle*

This works for me: ... tmdb3tv.py -N 1695 'Mr. Monk Goes to Vegas'

--
Bill
_______________________________________________
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: Important: Changes to Metadata lookup in March 2021 [ In reply to ]
Hoi Jay,

Sunday, February 28, 2021, 3:08:06 AM, you wrote:

> On 2/27/21 5:22 PM, Jay Foster wrote:
>> On 2/27/21 5:15 PM, Jay Foster wrote:
>>> On 2/27/21 4:53 PM, Hika van den Hoven wrote:
>>>> Hoi Jay,
>>>>
>>>> Sunday, February 28, 2021, 1:27:20 AM, you wrote:
>>>>
>>>>> On 2/27/21 4:11 PM, Jay Foster wrote:
>>>>>> On 2/27/21 1:37 PM, John Finlay via mythtv-users wrote:
>>>>>>> On 2/27/2021 1:18 PM, Jay Foster wrote:
>>>>>>>> On 2/26/21 6:18 AM, Peter Bennett wrote:
>>>>>>>>>
>>>>>>>>> On 2/25/21 4:22 PM, Hika van den Hoven wrote:
>>>>>>>>>> I have tested the integration with mythtv and that works. Even
>>>>>>>>>> beter
>>>>>>>>>> than I had expected!
>>>>>>>>>> I thought it possible that mythmetadatalookup would simply use the
>>>>>>>>>> script name in the inetref, but I thought first to test what would
>>>>>>>>>> happen if I renamed tvmaze.py to ttvdb.py and it worked. So
>>>>>>>>>> good that
>>>>>>>>>> the inetref was after the hit changed to reflect tvmaze.py.
>>>>>>>>>>
>>>>>>>>>> However, if you do not copy either tvmaze.py or tmdb3tv.py to
>>>>>>>>>> ttvdb.py
>>>>>>>>>> searches won't work, it will always come up with a tmdb3.py
>>>>>>>>>> reference.
>>>>>>>>>>
>>>>>>>>>> So choose which of the two you want and copy (or simlink) that
>>>>>>>>>> one to
>>>>>>>>>> ttvdb.py.
>>>>>>>>>
>>>>>>>>> Hi Hika
>>>>>>>>>
>>>>>>>>> Can you explain this. I don't understand.
>>>>>>>>>
>>>>>>>>> All you need to do is go into mythfrontend -> setup -> Artwork and
>>>>>>>>> Data Sources -> Television Metadata Source
>>>>>>>>>
>>>>>>>>> Change there to whichever script you want and it will use that
>>>>>>>>> script for shows that do not have the inetref filled in.
>>>>>>>>>
>>>>>>>>> If you link one of the other script names to ttvdb.py then those
>>>>>>>>> recording rules and recorded shows that have ttvdb.py_nnnnn in the
>>>>>>>>> inetref will lookup the wrong show because the nnnnn is different
>>>>>>>>> for each of the sources.
>>>>>>>>>
>>>>>>>>> Maybe this works differently in 0.27. Does 0.27 have the Artwork
>>>>>>>>> and
>>>>>>>>> Data Sources entry?
>>>>>>>>>
>>>>>>>>> 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
>>>>>>>>
>>>>>>>> This is not working for me with 0.28.  I go to mythfrontend -> setup
>>>>>>>> -> Artwork and Data Source -> Television, but there is only one
>>>>>>>> choice there (TheTVDB.com).  This is the name when using the
>>>>>>>> previous
>>>>>>>> tvdb.py script.  Is it also the correct name for the new tvdb3tv.py
>>>>>>>> script? And why do I not see tvmaze as a choice? I tried restarting
>>>>>>>> the backend and frontend, but makes no difference.
>>>>>>>>
>>>>>>>
>>>>>>> Did you copy tmdb3tv.py to the
>>>>>>> "/usr/share/mythtv/metadata/Television"
>>>>>>> driectory? On 0.29 the mythtv frontend seems to scan the contents of
>>>>>>> the directory to populate the Artwork and Data Sources choices.
>>>>>>>
>>>>>>> John
>>>>>>> _______________________________________________
>>>>>>> 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
>>>>>>
>>>>>> Yes I have.
>>>>>> jay@mythbox:/usr/share/mythtv/metadata$ ls -l Television/
>>>>>> total 188
>>>>>> -rwxrwxr-x 1 jay  jay    5555 Feb 26 11:25 tmdb3tv.py
>>>>>> -rwxr-xr-x 1 root root 133392 Aug 26  2018 ttvdb.py
>>>>>> -rw-r--r-- 1 root root    248 Jan 26  2018 tvdb_test.conf
>>>>>> -rwxrwxr-x 1 jay  jay   21512 Feb 27 12:59 tvmaze.py
>>>>>> -rw-rw-r-- 1 jay  jay   17220 Feb 26 11:25 tvmaze_tests.txt
>>>>>> jay@mythbox:/usr/share/mythtv/metadata$
>>>>>>
>>>>>>   From the frontend, when I go to Artwork and Data Sources, I see a
>>>>>> brief
>>>>>> popup stating that MythTV is scanning sources, but the Television
>>>>>> selection box has only one choice filled in (the existing ttvdb.py).
>>>>>> Jay
>>>>
>>>>> When I compare the previous tmdb3 directory with the new tmdb3
>>>>> directory
>>>>> (in /usr/lib/python2.7/dist-packages/MythTV), I notice that the new
>>>>> tvdb3 directory is missing the lookup.py script.  Is that needed?
>>>>> Where
>>>>> do I get it for the new version?
>>>>> Jay
>>>>
>>>> Have you installed the 31 bindings in python3 or have you updated the
>>>> python2 bindings from your mythtv version?
>>>> And have you correspondingly adapted the first line of the grabber
>>>> files under /usr/share/mythtv/metadata/Television and Movie to point
>>>> to the right python version?
>>>>
>>>> What is the response to:
>>>> tvmaze.py -t
>>>> tmdb3tv.py -t
>>>> tmdb3.py -t
>>>>
>>>> If either of the grabber file does not respond with:
>>>> "Everything appears in order."
>>>> it probably will not be seen as a valid option and won't show in the
>>>> selection list.
>>>>
>>>> Tot mails,
>>>>    Hika                            mailto:hikavdh@gmail.com
>>>>
>>>>
>>>>
>>> Yes, I have done each of those tasks, and the test option reports
>>> everything looks okay.
>>> jay@mythbox:/usr/share/mythtv/metadata$ ./Television/tmdb3tv.py -t
>>> Everything appears in order.
>>> jay@mythbox:/usr/share/mythtv/metadata$ ./Television/tvmaze.py -t
>>> Everything appears in order.
>>> jay@mythbox:/usr/share/mythtv/metadata$ ./Movie/tmdb3.py -t
>>> Everything appears in order.
>>> jay@mythbox:/usr/share/mythtv/metadata$
>>> Jay
>>> _______________________________________________
>>> 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
>> I just now went back to the frontend and tried to select the new
>> metadata sources again.  The new Movie and new Television choices now
>> show up (yeah).  I selected the new tmdb V3 sources for both Movies and
>> Television (tvmaze still does not pass it's tests due to some kind of
>> TLS certificate issue).  I will restart the frontend and backend.
>> How do I test that this works from within MythTV?
>> Jay
>> _______________________________________________
> I am oh so close, but not quite there yet.
> I next ran into the query.isnumeric() issue, which I corrected by
> changing to isdigit() as suggested elsewhere in this thread. However,
> lookups are still failing. If I run:
> /usr/share/mythtv/metadata/Television/tmdb3tv.py -l en -a US -M Monk
> the script returns valid XML text, which contains an inetref value of
> 1695. But when I then run:
> /usr/share/mythtv/metadata/Television/tmdb3tv.py -l en -a US -N 1695
> I get an error (ERROR: Episode not found: ['1695']
> What am I missing here?
> Jay

You need to add an episode title. It is on the next line in Peters
mail. I at first missed that too! ;-)
/usr/share/mythtv/metadata/Television/tmdb3tv.py -l en -a US -N 1695
"Mr. Monk and the Psychic"


Tot mails,
Hika mailto:hikavdh@gmail.com

"Zonder hoop kun je niet leven
Zonder leven is er geen hoop
Het eeuwige dilemma
Zeker als je hoop moet vernietigen om te kunnen overleven!"

De lerende Mens

_______________________________________________
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: Important: Changes to Metadata lookup in March 2021 [ In reply to ]
On 2/27/21 6:08 PM, Jay Foster wrote:
> On 2/27/21 5:22 PM, Jay Foster wrote:
>> On 2/27/21 5:15 PM, Jay Foster wrote:
>>> On 2/27/21 4:53 PM, Hika van den Hoven wrote:
>>>> Hoi Jay,
>>>>
>>>> Sunday, February 28, 2021, 1:27:20 AM, you wrote:
>>>>
>>>>> On 2/27/21 4:11 PM, Jay Foster wrote:
>>>>>> On 2/27/21 1:37 PM, John Finlay via mythtv-users wrote:
>>>>>>> On 2/27/2021 1:18 PM, Jay Foster wrote:
>>>>>>>> On 2/26/21 6:18 AM, Peter Bennett wrote:
>>>>>>>>>
>>>>>>>>> On 2/25/21 4:22 PM, Hika van den Hoven wrote:
>>>>>>>>>> I have tested the integration with mythtv and that works. Even
>>>>>>>>>> beter
>>>>>>>>>> than I had expected!
>>>>>>>>>> I thought it possible that mythmetadatalookup would simply use
>>>>>>>>>> the
>>>>>>>>>> script name in the inetref, but I thought first to test what
>>>>>>>>>> would
>>>>>>>>>> happen if I renamed tvmaze.py to ttvdb.py and it worked. So
>>>>>>>>>> good that
>>>>>>>>>> the inetref was after the hit changed to reflect tvmaze.py.
>>>>>>>>>>
>>>>>>>>>> However, if you do not copy either tvmaze.py or tmdb3tv.py to
>>>>>>>>>> ttvdb.py
>>>>>>>>>> searches won't work, it will always come up with a tmdb3.py
>>>>>>>>>> reference.
>>>>>>>>>>
>>>>>>>>>> So choose which of the two you want and copy (or simlink) that
>>>>>>>>>> one to
>>>>>>>>>> ttvdb.py.
>>>>>>>>>
>>>>>>>>> Hi Hika
>>>>>>>>>
>>>>>>>>> Can you explain this. I don't understand.
>>>>>>>>>
>>>>>>>>> All you need to do is go into mythfrontend -> setup -> Artwork and
>>>>>>>>> Data Sources -> Television Metadata Source
>>>>>>>>>
>>>>>>>>> Change there to whichever script you want and it will use that
>>>>>>>>> script for shows that do not have the inetref filled in.
>>>>>>>>>
>>>>>>>>> If you link one of the other script names to ttvdb.py then those
>>>>>>>>> recording rules and recorded shows that have ttvdb.py_nnnnn in the
>>>>>>>>> inetref will lookup the wrong show because the nnnnn is different
>>>>>>>>> for each of the sources.
>>>>>>>>>
>>>>>>>>> Maybe this works differently in 0.27. Does 0.27 have the
>>>>>>>>> Artwork and
>>>>>>>>> Data Sources entry?
>>>>>>>>>
>>>>>>>>> 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
>>>>>>>>
>>>>>>>> This is not working for me with 0.28.  I go to mythfrontend ->
>>>>>>>> setup
>>>>>>>> -> Artwork and Data Source -> Television, but there is only one
>>>>>>>> choice there (TheTVDB.com).  This is the name when using the
>>>>>>>> previous
>>>>>>>> tvdb.py script.  Is it also the correct name for the new tvdb3tv.py
>>>>>>>> script? And why do I not see tvmaze as a choice? I tried restarting
>>>>>>>> the backend and frontend, but makes no difference.
>>>>>>>>
>>>>>>>
>>>>>>> Did you copy tmdb3tv.py to the
>>>>>>> "/usr/share/mythtv/metadata/Television"
>>>>>>> driectory? On 0.29 the mythtv frontend seems to scan the contents of
>>>>>>> the directory to populate the Artwork and Data Sources choices.
>>>>>>>
>>>>>>> John
>>>>>>> _______________________________________________
>>>>>>> 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
>>>>>>
>>>>>> Yes I have.
>>>>>> jay@mythbox:/usr/share/mythtv/metadata$ ls -l Television/
>>>>>> total 188
>>>>>> -rwxrwxr-x 1 jay  jay    5555 Feb 26 11:25 tmdb3tv.py
>>>>>> -rwxr-xr-x 1 root root 133392 Aug 26  2018 ttvdb.py
>>>>>> -rw-r--r-- 1 root root    248 Jan 26  2018 tvdb_test.conf
>>>>>> -rwxrwxr-x 1 jay  jay   21512 Feb 27 12:59 tvmaze.py
>>>>>> -rw-rw-r-- 1 jay  jay   17220 Feb 26 11:25 tvmaze_tests.txt
>>>>>> jay@mythbox:/usr/share/mythtv/metadata$
>>>>>>
>>>>>>   From the frontend, when I go to Artwork and Data Sources, I see
>>>>>> a brief
>>>>>> popup stating that MythTV is scanning sources, but the Television
>>>>>> selection box has only one choice filled in (the existing ttvdb.py).
>>>>>> Jay
>>>>
>>>>> When I compare the previous tmdb3 directory with the new tmdb3
>>>>> directory
>>>>> (in /usr/lib/python2.7/dist-packages/MythTV), I notice that the new
>>>>> tvdb3 directory is missing the lookup.py script.  Is that needed?
>>>>> Where
>>>>> do I get it for the new version?
>>>>> Jay
>>>>
>>>> Have you installed the 31 bindings in python3 or have you updated the
>>>> python2 bindings from your mythtv version?
>>>> And have you correspondingly adapted the first line of the grabber
>>>> files under /usr/share/mythtv/metadata/Television and Movie to point
>>>> to the right python version?
>>>>
>>>> What is the response to:
>>>> tvmaze.py -t
>>>> tmdb3tv.py -t
>>>> tmdb3.py -t
>>>>
>>>> If either of the grabber file does not respond with:
>>>> "Everything appears in order."
>>>> it probably will not be seen as a valid option and won't show in the
>>>> selection list.
>>>>
>>>> Tot mails,
>>>>    Hika                            mailto:hikavdh@gmail.com
>>>>
>>>> "Zonder hoop kun je niet leven
>>>> Zonder leven is er geen hoop
>>>> Het eeuwige dilemma
>>>> Zeker als je hoop moet vernietigen om te kunnen overleven!"
>>>>
>>>> De lerende Mens
>>>>
>>>> _______________________________________________
>>>> 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
>>>>
>>> Yes, I have done each of those tasks, and the test option reports
>>> everything looks okay.
>>> jay@mythbox:/usr/share/mythtv/metadata$ ./Television/tmdb3tv.py -t
>>> Everything appears in order.
>>> jay@mythbox:/usr/share/mythtv/metadata$ ./Television/tvmaze.py -t
>>> Everything appears in order.
>>> jay@mythbox:/usr/share/mythtv/metadata$ ./Movie/tmdb3.py -t
>>> Everything appears in order.
>>> jay@mythbox:/usr/share/mythtv/metadata$
>>> Jay
>>> _______________________________________________
>>> 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
>> I just now went back to the frontend and tried to select the new
>> metadata sources again.  The new Movie and new Television choices now
>> show up (yeah).  I selected the new tmdb V3 sources for both Movies
>> and Television (tvmaze still does not pass it's tests due to some kind
>> of TLS certificate issue).  I will restart the frontend and backend.
>> How do I test that this works from within MythTV?
>> Jay
>> _______________________________________________
>> 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
> I am oh so close, but not quite there yet.
> I next ran into the query.isnumeric() issue, which I corrected by
> changing to isdigit() as suggested elsewhere in this thread.  However,
> lookups are still failing.  If I run:
> /usr/share/mythtv/metadata/Television/tmdb3tv.py -l en -a US -M Monk
> the script returns valid XML text, which contains an inetref value of
> 1695.  But when I then run:
> /usr/share/mythtv/metadata/Television/tmdb3tv.py -l en -a US -N 1695
> I get an error (ERROR: Episode not found: ['1695']
> What am I missing here?
> Jay
>
> _______________________________________________
> 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
I re-ran the query for -N 1695 with the --debug option. This generates
quite a bit of what looks like valid data (looks like JSON text). The
data ends with " u'season_number: 1}" and then the "ERROR: Episode not
found: ['1695']" message. The exit code is 9 (echo $?).
Jay
_______________________________________________
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: Important: Changes to Metadata lookup in March 2021 [ In reply to ]
On 2/27/21 6:37 PM, Hika van den Hoven wrote:
> Hoi Jay,
>
> Sunday, February 28, 2021, 3:08:06 AM, you wrote:
>
>> On 2/27/21 5:22 PM, Jay Foster wrote:
>>> On 2/27/21 5:15 PM, Jay Foster wrote:
>>>> On 2/27/21 4:53 PM, Hika van den Hoven wrote:
>>>>> Hoi Jay,
>>>>>
>>>>> Sunday, February 28, 2021, 1:27:20 AM, you wrote:
>>>>>
>>>>>> On 2/27/21 4:11 PM, Jay Foster wrote:
>>>>>>> On 2/27/21 1:37 PM, John Finlay via mythtv-users wrote:
>>>>>>>> On 2/27/2021 1:18 PM, Jay Foster wrote:
>>>>>>>>> On 2/26/21 6:18 AM, Peter Bennett wrote:
>>>>>>>>>>
>>>>>>>>>> On 2/25/21 4:22 PM, Hika van den Hoven wrote:
>>>>>>>>>>> I have tested the integration with mythtv and that works. Even
>>>>>>>>>>> beter
>>>>>>>>>>> than I had expected!
>>>>>>>>>>> I thought it possible that mythmetadatalookup would simply use the
>>>>>>>>>>> script name in the inetref, but I thought first to test what would
>>>>>>>>>>> happen if I renamed tvmaze.py to ttvdb.py and it worked. So
>>>>>>>>>>> good that
>>>>>>>>>>> the inetref was after the hit changed to reflect tvmaze.py.
>>>>>>>>>>>
>>>>>>>>>>> However, if you do not copy either tvmaze.py or tmdb3tv.py to
>>>>>>>>>>> ttvdb.py
>>>>>>>>>>> searches won't work, it will always come up with a tmdb3.py
>>>>>>>>>>> reference.
>>>>>>>>>>>
>>>>>>>>>>> So choose which of the two you want and copy (or simlink) that
>>>>>>>>>>> one to
>>>>>>>>>>> ttvdb.py.
>>>>>>>>>>
>>>>>>>>>> Hi Hika
>>>>>>>>>>
>>>>>>>>>> Can you explain this. I don't understand.
>>>>>>>>>>
>>>>>>>>>> All you need to do is go into mythfrontend -> setup -> Artwork and
>>>>>>>>>> Data Sources -> Television Metadata Source
>>>>>>>>>>
>>>>>>>>>> Change there to whichever script you want and it will use that
>>>>>>>>>> script for shows that do not have the inetref filled in.
>>>>>>>>>>
>>>>>>>>>> If you link one of the other script names to ttvdb.py then those
>>>>>>>>>> recording rules and recorded shows that have ttvdb.py_nnnnn in the
>>>>>>>>>> inetref will lookup the wrong show because the nnnnn is different
>>>>>>>>>> for each of the sources.
>>>>>>>>>>
>>>>>>>>>> Maybe this works differently in 0.27. Does 0.27 have the Artwork
>>>>>>>>>> and
>>>>>>>>>> Data Sources entry?
>>>>>>>>>>
>>>>>>>>>> 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
>>>>>>>>>
>>>>>>>>> This is not working for me with 0.28.  I go to mythfrontend -> setup
>>>>>>>>> -> Artwork and Data Source -> Television, but there is only one
>>>>>>>>> choice there (TheTVDB.com).  This is the name when using the
>>>>>>>>> previous
>>>>>>>>> tvdb.py script.  Is it also the correct name for the new tvdb3tv.py
>>>>>>>>> script? And why do I not see tvmaze as a choice? I tried restarting
>>>>>>>>> the backend and frontend, but makes no difference.
>>>>>>>>>
>>>>>>>>
>>>>>>>> Did you copy tmdb3tv.py to the
>>>>>>>> "/usr/share/mythtv/metadata/Television"
>>>>>>>> driectory? On 0.29 the mythtv frontend seems to scan the contents of
>>>>>>>> the directory to populate the Artwork and Data Sources choices.
>>>>>>>>
>>>>>>>> John
>>>>>>>> _______________________________________________
>>>>>>>> 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
>>>>>>>
>>>>>>> Yes I have.
>>>>>>> jay@mythbox:/usr/share/mythtv/metadata$ ls -l Television/
>>>>>>> total 188
>>>>>>> -rwxrwxr-x 1 jay  jay    5555 Feb 26 11:25 tmdb3tv.py
>>>>>>> -rwxr-xr-x 1 root root 133392 Aug 26  2018 ttvdb.py
>>>>>>> -rw-r--r-- 1 root root    248 Jan 26  2018 tvdb_test.conf
>>>>>>> -rwxrwxr-x 1 jay  jay   21512 Feb 27 12:59 tvmaze.py
>>>>>>> -rw-rw-r-- 1 jay  jay   17220 Feb 26 11:25 tvmaze_tests.txt
>>>>>>> jay@mythbox:/usr/share/mythtv/metadata$
>>>>>>>
>>>>>>>   From the frontend, when I go to Artwork and Data Sources, I see a
>>>>>>> brief
>>>>>>> popup stating that MythTV is scanning sources, but the Television
>>>>>>> selection box has only one choice filled in (the existing ttvdb.py).
>>>>>>> Jay
>>>>>
>>>>>> When I compare the previous tmdb3 directory with the new tmdb3
>>>>>> directory
>>>>>> (in /usr/lib/python2.7/dist-packages/MythTV), I notice that the new
>>>>>> tvdb3 directory is missing the lookup.py script.  Is that needed?
>>>>>> Where
>>>>>> do I get it for the new version?
>>>>>> Jay
>>>>>
>>>>> Have you installed the 31 bindings in python3 or have you updated the
>>>>> python2 bindings from your mythtv version?
>>>>> And have you correspondingly adapted the first line of the grabber
>>>>> files under /usr/share/mythtv/metadata/Television and Movie to point
>>>>> to the right python version?
>>>>>
>>>>> What is the response to:
>>>>> tvmaze.py -t
>>>>> tmdb3tv.py -t
>>>>> tmdb3.py -t
>>>>>
>>>>> If either of the grabber file does not respond with:
>>>>> "Everything appears in order."
>>>>> it probably will not be seen as a valid option and won't show in the
>>>>> selection list.
>>>>>
>>>>> Tot mails,
>>>>>    Hika                            mailto:hikavdh@gmail.com
>>>>>
>>>>>
>>>>>
>>>> Yes, I have done each of those tasks, and the test option reports
>>>> everything looks okay.
>>>> jay@mythbox:/usr/share/mythtv/metadata$ ./Television/tmdb3tv.py -t
>>>> Everything appears in order.
>>>> jay@mythbox:/usr/share/mythtv/metadata$ ./Television/tvmaze.py -t
>>>> Everything appears in order.
>>>> jay@mythbox:/usr/share/mythtv/metadata$ ./Movie/tmdb3.py -t
>>>> Everything appears in order.
>>>> jay@mythbox:/usr/share/mythtv/metadata$
>>>> Jay
>>>> _______________________________________________
>>>> 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
>>> I just now went back to the frontend and tried to select the new
>>> metadata sources again.  The new Movie and new Television choices now
>>> show up (yeah).  I selected the new tmdb V3 sources for both Movies and
>>> Television (tvmaze still does not pass it's tests due to some kind of
>>> TLS certificate issue).  I will restart the frontend and backend.
>>> How do I test that this works from within MythTV?
>>> Jay
>>> _______________________________________________
>> I am oh so close, but not quite there yet.
>> I next ran into the query.isnumeric() issue, which I corrected by
>> changing to isdigit() as suggested elsewhere in this thread. However,
>> lookups are still failing. If I run:
>> /usr/share/mythtv/metadata/Television/tmdb3tv.py -l en -a US -M Monk
>> the script returns valid XML text, which contains an inetref value of
>> 1695. But when I then run:
>> /usr/share/mythtv/metadata/Television/tmdb3tv.py -l en -a US -N 1695
>> I get an error (ERROR: Episode not found: ['1695']
>> What am I missing here?
>> Jay
>
> You need to add an episode title. It is on the next line in Peters
> mail. I at first missed that too! ;-)
> /usr/share/mythtv/metadata/Television/tmdb3tv.py -l en -a US -N 1695
> "Mr. Monk and the Psychic"
>
>
> Tot mails,
> Hika mailto:hikavdh@gmail.com
>
> "Zonder hoop kun je niet leven
> Zonder leven is er geen hoop
> Het eeuwige dilemma
> Zeker als je hoop moet vernietigen om te kunnen overleven!"
>
> De lerende Mens
>
> _______________________________________________
> 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
>
Thanks, that was it. Oddly, the first query (-M Monk) returned the
inetref of 1695, but I could not find the episode title string in the
output, so I do not know where the "Mr. Monk and the Psychic" comes from.

I still do not think this is working from within MythTV, though.
Jay
_______________________________________________
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: Important: Changes to Metadata lookup in March 2021 [ In reply to ]
On 2/27/21 5:40 PM, Hika van den Hoven wrote:
> Hoi Jay,
>
> Sunday, February 28, 2021, 2:22:15 AM, you wrote:
>
>> On 2/27/21 5:15 PM, Jay Foster wrote:
>
>> I just now went back to the frontend and tried to select the new
>> metadata sources again. The new Movie and new Television choices now
>> show up (yeah). I selected the new tmdb V3 sources for both Movies and
>> Television (tvmaze still does not pass it's tests due to some kind of
>> TLS certificate issue). I will restart the frontend and backend.
>> How do I test that this works from within MythTV?
>> Jay
>
> If you want to find the correct inetref for the new grabber go to the
> schedule as there you can initiate a search:
> m > Recording Options > Edit Recording Schedule
> goto Metadata Options and remove there the old inetref.
> Click on Perform Query
> If you are satisfied, save the adapted schedule. All new recordings
> will get the new inetref. To adapt old recording, write down the new
> inetref and go:
> m > Recording Options > Change Recording Metadata
> adapt the inetref there and run the lookup job:
> m > Job Options > Begin Metadata Lookup
>
>
> Tot mails,
> Hika mailto:hikavdh@gmail.com
>
> "Zonder hoop kun je niet leven
> Zonder leven is er geen hoop
> Het eeuwige dilemma
> Zeker als je hoop moet vernietigen om te kunnen overleven!"
>
> De lerende Mens
>
> _______________________________________________
> 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
>
I went to Watch Recordings and selected my recorded show. Then pressed
'e' which brought up a menu with Metadata Option. Selecting that
allowed me to change the inetref number, select Done, then select Save.
However selecting 'm' and and Job Options -> Begin Metadata Lookup seems
to do nothing. Looking at the Backend Status (using mythweb), no job is
even started. I would at least expect it to start, even if it then failed.
Jay
_______________________________________________
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: Important: Changes to Metadata lookup in March 2021 [ In reply to ]
Hoi Jay,

Sunday, February 28, 2021, 3:54:54 AM, you wrote:

> On 2/27/21 5:40 PM, Hika van den Hoven wrote:
>> Hoi Jay,
>>
>> Sunday, February 28, 2021, 2:22:15 AM, you wrote:
>>
>>> On 2/27/21 5:15 PM, Jay Foster wrote:
>>
>>> I just now went back to the frontend and tried to select the new
>>> metadata sources again. The new Movie and new Television choices now
>>> show up (yeah). I selected the new tmdb V3 sources for both Movies and
>>> Television (tvmaze still does not pass it's tests due to some kind of
>>> TLS certificate issue). I will restart the frontend and backend.
>>> How do I test that this works from within MythTV?
>>> Jay
>>
>> If you want to find the correct inetref for the new grabber go to the
>> schedule as there you can initiate a search:
>> m > Recording Options > Edit Recording Schedule
>> goto Metadata Options and remove there the old inetref.
>> Click on Perform Query
>> If you are satisfied, save the adapted schedule. All new recordings
>> will get the new inetref. To adapt old recording, write down the new
>> inetref and go:
>> m > Recording Options > Change Recording Metadata
>> adapt the inetref there and run the lookup job:
>> m > Job Options > Begin Metadata Lookup
>>
>>
>> Tot mails,
>> Hika mailto:hikavdh@gmail.com
>>
>>
> I went to Watch Recordings and selected my recorded show. Then pressed
> 'e' which brought up a menu with Metadata Option. Selecting that
> allowed me to change the inetref number, select Done, then select Save.
> However selecting 'm' and and Job Options -> Begin Metadata Lookup seems
> to do nothing. Looking at the Backend Status (using mythweb), no job is
> even started. I would at least expect it to start, even if it then failed.
> Jay
> _______________________________________________


Have you upgraded both back- and frontend? Or are they on the same
machine.

The e key is editing the rule and does not change the settings for the
current show. See above how to do that.

Tot mails,
Hika mailto:hikavdh@gmail.com

"Zonder hoop kun je niet leven
Zonder leven is er geen hoop
Het eeuwige dilemma
Zeker als je hoop moet vernietigen om te kunnen overleven!"

De lerende Mens

_______________________________________________
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: Important: Changes to Metadata lookup in March 2021 [ In reply to ]
On Sat, 27 Feb 2021 18:26:53 -0800, you wrote:

>No joy here. I updated to a recent ca-certificates package, but the
>issue persists. I can access the https://tvmaze.com website using
>firefox with no problem and view the site certificate which has a common
>name of tvmaze.com. However, for some reason, the tvmaze.py script is
>trying to use tvlive.tvmaze.info instead, which does not match.
>Jay

Firefox uses its own internal certificate store, not the system wide
one.
_______________________________________________
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: Important: Changes to Metadata lookup in March 2021 [ In reply to ]
On 2/28/21 3:13 AM, Stephen Worthington wrote:
> On Sat, 27 Feb 2021 18:26:53 -0800, you wrote:
>
>> No joy here. I updated to a recent ca-certificates package, but the
>> issue persists. I can access the https://tvmaze.com website using
>> firefox with no problem and view the site certificate which has a common
>> name of tvmaze.com. However, for some reason, the tvmaze.py script is
>> trying to use tvlive.tvmaze.info instead, which does not match.
>> Jay

For the certificate errors with tvmaze, I suggest go into endpoints.py
and change all the "https://something" entries to "http://something"

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
Re: Important: Changes to Metadata lookup in March 2021 [ In reply to ]
On 2/28/21 12:13 AM, Stephen Worthington wrote:
> On Sat, 27 Feb 2021 18:26:53 -0800, you wrote:
>
>> No joy here. I updated to a recent ca-certificates package, but the
>> issue persists. I can access the https://tvmaze.com website using
>> firefox with no problem and view the site certificate which has a common
>> name of tvmaze.com. However, for some reason, the tvmaze.py script is
>> trying to use tvlive.tvmaze.info instead, which does not match.
>> Jay
> Firefox uses its own internal certificate store, not the system wide
> one.
> _______________________________________________
> 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

I'm not so sure this is a CA certificate issue.  Smells more like a
wrong URL (hostname) issue. I can use "wget https://api.tvmaze.com",
which works just fine.  I think this is an HTTPS SNI issue where the
incorrect hostname is not being presented to the server resulting in the
certificate CN mismatch (urllib3 issue).

jay@mythbox:~$ /usr/share/mythtv/metadata/Television/tvmaze.py -l en -a
US -M Monk
/usr/local/lib/python2.7/dist-packages/urllib3/util/ssl_.py:339:
SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject
Name Indication) extension to TLS is not available on this platform.
This may cause the server to present an incorrect TLS certificate, which
can cause validation failures. You can upgrade to a newer version of
Python to solve this. For more information, see
https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  SNIMissingWarning
/usr/local/lib/python2.7/dist-packages/urllib3/util/ssl_.py:137:
InsecurePlatformWarning: A true SSLContext object is not available. This
prevents urllib3 from configuring SSL appropriately and may cause
certain SSL connections to fail. You can upgrade to a newer version of
Python to solve this. For more information, see
https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecurePlatformWarning
ERROR: <class 'requests.exceptions.SSLError'> :
HTTPSConnectionPool(host='api.tvmaze.com', port=443): Max retries
exceeded with url: /search/shows?q=Monk (Caused by
SSLError(CertificateError("hostname 'api.tvmaze.com' doesn't match
'tvlive.tvmaze.info'",),))
jay@mythbox:~$

Back in September, 2017, I previously updated the metadata bindings to
support the TVDB API v2 (https://www.mythtv.org/wiki/TheTVDB_API_v2). As
part of this, I updated/installed the following packages from Ubuntu
xenial (16.04):

python-future_0.15.2-1_all.deb
python-requests-cache_0.4.10-1_all.deb
python-requests_2.9.1-3_all.deb
python-urllib3_1.13.1-2_all.deb (this package actually installs version
1.22).

Are these versions adequate for the new tvmaze bindings?  I am
suspicious of something wrong with urllib3 or requests.  I also have two
versions of urllib3 installed (one in /usr/lib and one in
/usr/local/lib).  The one in /usr/local/lib was installed for the TVDB
API v2 issue and is the one being used by tvmaze.py (somehow).

I upgraded these packages (in /usr/local/lib) using "pip install
--upgrade <package>" for urllib3, chardet, requests, requests-cache,
python-dateutil, and future.  Each was successful, yet I get the same
warnings and error with tvmaze.py.  Has anyone gotten tvmaze.py to work
with 0.28 or older?  This is on Ubuntu trusty (14.04).

Jay
_______________________________________________
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: Important: Changes to Metadata lookup in March 2021 [ In reply to ]
On 2/28/21 11:19 AM, Jay Foster wrote:
> On 2/28/21 12:13 AM, Stephen Worthington wrote:
>> On Sat, 27 Feb 2021 18:26:53 -0800, you wrote:
>>
>>> No joy here.  I updated to a recent ca-certificates package, but the
>>> issue persists.  I can access the https://tvmaze.com website using
>>> firefox with no problem and view the site certificate which has a common
>>> name of tvmaze.com.  However, for some reason, the tvmaze.py script is
>>> trying to use tvlive.tvmaze.info instead, which does not match.
>>> Jay
>> Firefox uses its own internal certificate store, not the system wide
>> one.
>> _______________________________________________
>> 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
>
> I'm not so sure this is a CA certificate issue.  Smells more like a
> wrong URL (hostname) issue. I can use "wget https://api.tvmaze.com",
> which works just fine.  I think this is an HTTPS SNI issue where the
> incorrect hostname is not being presented to the server resulting in the
> certificate CN mismatch (urllib3 issue).
>
> jay@mythbox:~$ /usr/share/mythtv/metadata/Television/tvmaze.py -l en -a
> US -M Monk
> /usr/local/lib/python2.7/dist-packages/urllib3/util/ssl_.py:339:
> SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject
> Name Indication) extension to TLS is not available on this platform.
> This may cause the server to present an incorrect TLS certificate, which
> can cause validation failures. You can upgrade to a newer version of
> Python to solve this. For more information, see
> https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
>   SNIMissingWarning
> /usr/local/lib/python2.7/dist-packages/urllib3/util/ssl_.py:137:
> InsecurePlatformWarning: A true SSLContext object is not available. This
> prevents urllib3 from configuring SSL appropriately and may cause
> certain SSL connections to fail. You can upgrade to a newer version of
> Python to solve this. For more information, see
> https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
>   InsecurePlatformWarning
> ERROR: <class 'requests.exceptions.SSLError'> :
> HTTPSConnectionPool(host='api.tvmaze.com', port=443): Max retries
> exceeded with url: /search/shows?q=Monk (Caused by
> SSLError(CertificateError("hostname 'api.tvmaze.com' doesn't match
> 'tvlive.tvmaze.info'",),))
> jay@mythbox:~$
>
> Back in September, 2017, I previously updated the metadata bindings to
> support the TVDB API v2 (https://www.mythtv.org/wiki/TheTVDB_API_v2). As
> part of this, I updated/installed the following packages from Ubuntu
> xenial (16.04):
>
> python-future_0.15.2-1_all.deb
> python-requests-cache_0.4.10-1_all.deb
> python-requests_2.9.1-3_all.deb
> python-urllib3_1.13.1-2_all.deb (this package actually installs version
> 1.22).
>
> Are these versions adequate for the new tvmaze bindings?  I am
> suspicious of something wrong with urllib3 or requests.  I also have two
> versions of urllib3 installed (one in /usr/lib and one in
> /usr/local/lib).  The one in /usr/local/lib was installed for the TVDB
> API v2 issue and is the one being used by tvmaze.py (somehow).
>
> I upgraded these packages (in /usr/local/lib) using "pip install
> --upgrade <package>" for urllib3, chardet, requests, requests-cache,
> python-dateutil, and future.  Each was successful, yet I get the same
> warnings and error with tvmaze.py.  Has anyone gotten tvmaze.py to work
> with 0.28 or older?  This is on Ubuntu trusty (14.04).
>
> Jay
> _______________________________________________
> 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
I resolved this issue. Turns out I need a newer version of Python2.7.
Trusty only provided version 2.7.6. I was able to upgrade to version
2.7.12 using the following commands:

sudo add-apt-repository ppa:fkrull/deadsnakes-python2.7
sudo apt-get update
sudo apt-get install python2.7

The Python ssl package is built into Python since version 2.6 something
or other, so the only way to get a newer version is to upgrade Python
itself. Luckily, 2.7.12 is new enough.

Jay
_______________________________________________
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: Important: Changes to Metadata lookup in March 2021 [ In reply to ]
Jay:
> I resolved this issue. Turns out I need a newer version of Python2.7.
> Trusty only provided version 2.7.6. I was able to upgrade to version
> 2.7.12 using the following commands:
>
> sudo add-apt-repository ppa:fkrull/deadsnakes-python2.7
> sudo apt-get update
> sudo apt-get install python2.7
>
> The Python ssl package is built into Python since version 2.6 something
> or other, so the only way to get a newer version is to upgrade Python
> itself. Luckily, 2.7.12 is new enough.

I’m going to stick my head out and try to make a suggestion based on
something Roland suggested in my sub-thread. I’m using Ubuntu 18.04 and
Python 2.7.17. Anyway, paraphrasing what Roland said, Ubuntu
pre-installs but not in the active python environment. While upgrading
my system said the dateutil module was installed but the MythTV metadata
wasn’t able to find it (gave an error message).

What worked for me is this (and yes, some beginner level notes):


*Manually install: *

*1. **At Python site download the actual file **(tar.gz)**. [.*D/L to own
subdir ==> Downloads/Python or something to make easier to work with
later*].*

*2. **Extract the file [*within the special subdir OK*].*///Double
click, extract button at upper left./

*3. cd into the first/main level of the extract – verify setup.py is in
there.*

*4**a**. **Open Terminal – pull a first dir level file into Terminal to
obtain path; trim and put ‘cd’ in front – now in that extract.*

*4b. **Now the */sudo python2 ./setup.py install/*(next step).*

Hope that helps

Barry
Re: Important: Changes to Metadata lookup in March 2021 [ In reply to ]
Hoi Barry,

Monday, March 1, 2021, 2:51:44 AM, you wrote:




> Jay:
>
>
> I resolved this issue. Turns out I need a newer version of Python2.7.
> Trusty only provided version 2.7.6. I was able to upgrade to version
> 2.7.12 using the following commands:

> sudo add-apt-repository ppa:fkrull/deadsnakes-python2.7
> sudo apt-get update
> sudo apt-get install python2.7

> The Python ssl package is built into Python since version 2.6 something
> or other, so the only way to get a newer version is to upgrade Python
> itself. Luckily, 2.7.12 is new enough.
>
>
>
> I’m going to stick my head out and try to make a suggestion
> based on something Roland suggested in my sub-thread. I’m
> using Ubuntu 18.04 and Python 2.7.17. Anyway, paraphrasing
> what Roland said, Ubuntu pre-installs but not in the active
> python environment. While upgrading my system said the
> dateutil module was installed but the MythTV metadata wasn’t
> able to find it (gave an error message).
>
> What worked for me is this (and yes, some beginner level notes):
>

>
>
> Manually install:
>
> 1. At Python site download the
> actual file (tar.gz). [.D/L to own subdir ==>
> Downloads/Python or something to make easier to work with later].
>
> 2. Extract the file [within
> the special subdir OK]. Double click, extract button at upper left.
>
> 3. cd into the first/main level of the extract –
> verify setup.py is in there.
>
> 4a. Open Terminal – pull a first dir level file
> into Terminal to obtain path; trim and
> put ‘cd’ in front – now in that extract.
>
> 4b. Now the sudo python2 ./setup.py install (next step).
>
> Hope that helps
>
> Barry
>
>


I think the issue here is that somewhere last year officially python2
is deprecated.
Obviously some package builders have taken this as not even checking
at installing a python module on whether the specific system still has
python2. They cannot check on if it is still used, but they should
install on every python variant supported by the package that is
present on the system.
So in general installing python2 modules through a package should be
deemed unreliable. You have to use the methode described above.

Long live the capitalistic thinking that says to replace things on
economic expenditure, not on physical.


Tot mails,
Hika mailto:hikavdh@gmail.com

"Zonder hoop kun je niet leven
Zonder leven is er geen hoop
Het eeuwige dilemma
Zeker als je hoop moet vernietigen om te kunnen overleven!"

De lerende Mens

_______________________________________________
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