Strange behaviour looking up for metadata

Have a MythTV related problem? Ask for help from other MythTV users here.

Moderator: Forum Moderators

enrico123
Junior
Posts: 34
Joined: Mon Sep 22, 2014 1:36 pm
Switzerland

Strange behaviour looking up for metadata

Post by enrico123 » Wed Nov 18, 2020 5:07 pm

Hi!

I'm using MythTV 31.0 with Xubuntu 18.04 and I'm having sometimes a strange behaviour looking up for metadata.

MythTV Version : v31.0+fixes.202010122044.eb3c84de5f~ubuntu18.04.1

The most of the times the metadata is looked up automatically and I'm getting the coverart files correctly.

Other times I'm having one of these 2 problems:

1) My MythTV is configured in german language.
The inetref value for the recording was found automatically (I could check it inside the mythconverg DB) and looking at the themoviedb.org site I could also find the coverart in the right language, but strangely the loaded coverart was then in another language than german or english e.g. in one of the following: hungarian, russian, italian, hebrew etc.
This is very strange, because looking at the themoviedb.org I was able to find out the coverart for the movies in the right language.
Why?

2) The second kind of problems, is mainly happening looking up for coverarts for series.
Although the inetref value is valid and looking at themoviedb.org the right coverart is found and also in the right language, at the end no coverart is loaded.
I could check the valid inetref into the DB and from the Myth Frontend selecting the movie/serie and pressing M I could check that the inetref value was existing, but pressing again M to start the lookup, no coverart was loaded... Why?

Many thanks for any help!

Cheers
Enrico

User avatar
dnalorernst
Developer
Posts: 51
Joined: Mon Feb 17, 2020 8:03 pm
Austria

Re: Strange behaviour looking up for metadata

Post by dnalorernst » Wed Nov 18, 2020 9:35 pm

Some questions to your setup:
  • Are you using a different frontend and backend installation?
  • Please post the default locale of your backend and/or frontend

    Code: Select all

    locale
  • Is your locale available on the system (de_CH.utf8)?

    Code: Select all

    locale -a
  • What locale does MythTV use?
    Check backend and/or frontend for a log entry like "Setting QT default locale to de_CH" or similar
  • What Theme you are using?
  • What EPG you are using? OTA via EIT or via a dedicated XMLTV grabber?
  • You say, that metadata is imported automatically:
    Is it done by the option "retrieve metadata after recording" option in the recording rule?
  • Are both grabbers set in the mythtv-setup of the backend and/or configuration in the frontend?
    metadata for movies: "TheMovieDB.org V3"
    metadata for TV: "TheTVDB.com"
  • Check the log file in "/var/log/mythtv/mythmetadatalookup.log" for "Running Grabber: /usr/share/mythtv/metadata/......."
    Are both grabbers called?
    Can you find some logs for your mentioned scanario (1) or (2)?
  • Check the log file in "/var/log/mythtv/mythfrontend.log" for "Running Grabber: /usr/share/mythtv/metadata/.......",
    can you find some logs for your mentioned scanario (1) or (2)?
Regards,
Roland

enrico123
Junior
Posts: 34
Joined: Mon Sep 22, 2014 1:36 pm
Switzerland

Re: Strange behaviour looking up for metadata

Post by enrico123 » Thu Nov 19, 2020 5:15 pm

Thanks Roland for your answer!
Are you using a different frontend and backend installation?
No. frontend and backend are running on the same host: newmyth
Please post the default locale of your backend and/or frontend

Code: Select all

mythbuntu@newmyth:~$ locale
LANG=en_US.UTF-8
LANGUAGE=en_US
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC=de_CH.UTF-8
LC_TIME=de_CH.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=de_CH.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=de_CH.UTF-8
LC_NAME=de_CH.UTF-8
LC_ADDRESS=de_CH.UTF-8
LC_TELEPHONE=de_CH.UTF-8
LC_MEASUREMENT=de_CH.UTF-8
LC_IDENTIFICATION=de_CH.UTF-8
LC_ALL=
Is your locale available on the system (de_CH.utf8)?
Yes.

Code: Select all

mythbuntu@newmyth:~$ locale -a
C
C.UTF-8
de_CH.utf8
en_AG
en_AG.utf8
en_AU.utf8
en_BW.utf8
en_CA.utf8
en_DK.utf8
en_GB.utf8
en_HK.utf8
en_IE.utf8
en_IL
en_IL.utf8
en_IN
en_IN.utf8
en_NG
en_NG.utf8
en_NZ.utf8
en_PH.utf8
en_SG.utf8
en_US.utf8
en_ZA.utf8
en_ZM
en_ZM.utf8
en_ZW.utf8
POSIX
What locale does MythTV use?
Check backend and/or frontend for a log entry like "Setting QT default locale to de_CH" or similar
de_CH

Code: Select all

Nov 18 17:31:08 newmyth mythfrontend.real: mythfrontend[23119]: N CoreContext mythcorecontext.cpp:1810 (InitLocale) Setting QT default locale to de_CH
Nov 18 17:31:08 newmyth mythfrontend.real: mythfrontend[23119]: I CoreContext mythcorecontext.cpp:1843 (SaveLocaleDefaults) Current locale de_CH

Code: Select all

Nov 17 11:25:36 newmyth mythbackend: mythbackend[1147]: N CoreContext mythcorecontext.cpp:1810 (InitLocale) Setting QT default locale to de_CH
Nov 17 11:25:36 newmyth mythbackend: mythbackend[1147]: I CoreContext mythcorecontext.cpp:1843 (SaveLocaleDefaults) Current locale de_CH
What Theme you are using?
Seems to be Mythbuntu-classic

Code: Select all

Nov 19 15:52:30 newmyth mythfrontend.real: mythfrontend[31743]: N CoreContext main.cpp:1225 (RunMenu) Found mainmenu.xml for theme 'Mythbuntu-classic'
What EPG you are using? OTA via EIT or via a dedicated XMLTV grabber?
I'm using tv_grab_ch_search fixed to solve a small problem after a change in the search.ch webpage.

Code: Select all

mythbuntu@newmyth:~$ ll /usr/bin/tv_grab_ch_search*
-rwxr-xr-x 1 root root 19581 Aug 25 09:22 /usr/bin/tv_grab_ch_search*
-rwxr-xr-x 1 root root 19581 Aug 25 09:22 /usr/bin/tv_grab_ch_search.fix-bhaak*
-rwxr-xr-x 1 root root 19468 Okt 28  2019 /usr/bin/tv_grab_ch_search.fix-markus-keller*
-rwxr-xr-x 1 root root 19033 Nov 30  2017 /usr/bin/tv_grab_ch_search.orig*
You say, that metadata is imported automatically:
Is it done by the option "retrieve metadata after recording" option in the recording rule?
Where can I find the recording rule and the option?
I haven't found it neither in the backend nor in the frontend configuration...
Are both grabbers set in the mythtv-setup of the backend and/or configuration in the frontend?
metadata for movies: "TheMovieDB.org V3"
metadata for TV: "TheTVDB.com"
Do you mean in mythbackend -> Video Sources the setting
Listing Grabber: Switzerland (tv,search.ch) (xmltv) ?

I could find in the frontend Setup under Artwork and Metadata Source this:

Movie Metadata Source: TheMovieDB.org V3
Television Metadata So...: TheTVDB.com

But no such settings in the backend...
Check the log file in "/var/log/mythtv/mythmetadatalookup.log" for "Running Grabber: /usr/share/mythtv/metadata/......."
Are both grabbers called?
Can you find some logs for your mentioned scanario (1) or (2)?
Scenario 1:
Movie Don Jon (2013) 3sat Wednesday June 17th 2020, getting a coverart in hebrew also if looking up under themoviedb.org a german version of it is displayed...
Going inside frontend, selecting the movie and pressing M, then checking the recording options, the inetref is: tmdb3.py_138697.
After that pressing M again and starting the matadata recognizing, at the end the same hebrew coverart is delivered...

Here the log of the action:

Code: Select all

Nov 19 17:14:29 newmyth mythmetadatalookup: mythmetadatalookup[2839]: N CoreContext mythcorecontext.cpp:1810 (InitLocale) Setting QT default locale to de_CH
Nov 19 17:14:29 newmyth mythmetadatalookup: mythmetadatalookup[2839]: I CoreContext mythcorecontext.cpp:1843 (SaveLocaleDefaults) Current locale de_CH
Nov 19 17:14:29 newmyth mythmetadatalookup: mythmetadatalookup[2839]: N CoreContext mythlocale.cpp:122 (LoadDefaultsFromXML) Reading locale defaults from /usr/share/mythtv//locales/de_ch.xml
Nov 19 17:14:29 newmyth mythmetadatalookup: mythmetadatalookup[2839]: I CoreContext platforms/mythpowerdbus.cpp:531 (AcquireLock) PowerDBus: Failed to delay sleep,shutdown: Permission denied
Nov 19 17:14:29 newmyth mythmetadatalookup: mythmetadatalookup[2839]: I CoreContext platforms/mythpowerdbus.cpp:360 (DeviceAdded) PowerDBus: Added UPower.Device '/org/freedesktop/UPower/devices/ups_hiddev0'
Nov 19 17:14:29 newmyth mythmetadatalookup: mythmetadatalookup[2839]: I CoreContext mythpower.cpp:374 (PowerLevelChanged) Power: Unknown power source
Nov 19 17:14:29 newmyth mythmetadatalookup: mythmetadatalookup[2839]: I CoreContext mythpower.cpp:131 (Init) Power: Supported actions: None
Nov 19 17:14:29 newmyth mythmetadatalookup: mythmetadatalookup[2839]: I CoreContext mythtranslation.cpp:64 (load) Loading de translation for module mythfrontend
Nov 19 17:14:29 newmyth mythmetadatalookup: mythmetadatalookup[2839]: I CoreContext main.cpp:113 (main) Testing grabbers and metadata sites for functionality...
Nov 19 17:14:29 newmyth mythmetadatalookup: mythmetadatalookup[2839]: I SystemManager mythsystemunix.cpp:262 (run) Starting process manager
Nov 19 17:14:29 newmyth mythmetadatalookup: mythmetadatalookup[2839]: I SystemSignalManager mythsystemunix.cpp:488 (run) Starting process signal handler
Nov 19 17:14:29 newmyth mythmetadatalookup: mythmetadatalookup[2839]: I SystemIOHandlerR mythsystemunix.cpp:83 (run) Starting IO manager (read)
Nov 19 17:14:29 newmyth mythmetadatalookup: mythmetadatalookup[2839]: I SystemIOHandlerW mythsystemunix.cpp:83 (run) Starting IO manager (write)
Nov 19 17:14:31 newmyth mythmetadatalookup: mythmetadatalookup[2839]: I CoreContext main.cpp:120 (main) All grabbers tested and working.  Continuing...
Nov 19 17:14:31 newmyth mythmetadatalookup: mythmetadatalookup[2839]: I CoreContext mythcorecontext.cpp:471 (ConnectCommandSocket) MythCoreContext::ConnectCommandSocket(): Connecting to backend server: 192.168.1.9:6543 (try 1 of 1)
Nov 19 17:14:31 newmyth mythmetadatalookup: mythmetadatalookup[2839]: I CoreContext mythcorecontext.cpp:1694 (CheckProtoVersion) MythCoreContext::CheckProtoVersion(): Using protocol version 91 BuzzOff
Nov 19 17:14:31 newmyth mythmetadatalookup: mythmetadatalookup[2839]: I MetadataDownload metadatagrabber.cpp:425 (RunGrabber) Running Grabber: /usr/share/mythtv/metadata/Movie/tmdb3.py -l de -a CH -D 138697
Nov 19 17:14:32 newmyth mythmetadatalookup: mythmetadatalookup[2839]: I MetadataDownload metadatacommon.cpp:1142 (ParseMetadataItem) Result Found, Season 0 Episode 0
Nov 19 17:14:32 newmyth mythmetadatalookup: mythmetadatalookup[2839]: I MetadataDownload metadatadownload.cpp:220 (run) Returning Metadata Results: Don Jon 0 0
Nov 19 17:14:34 newmyth mythmetadatalookup: mythmetadatalookup[2839]: N CoreContext main.cpp:170 (main) MythMetadataLookup run complete.
Nov 19 17:14:34 newmyth mythmetadatalookup: mythmetadatalookup[2839]: I CoreContext platforms/mythpowerdbus.cpp:72 (~MythPowerDBus) PowerDBus: Closing interfaces
Nov 19 17:14:34 newmyth mythmetadatalookup: mythmetadatalookup[2839]: I CoreContext mythcontext.cpp:1659 (~MythContext) Waiting for threads to exit.
Nov 19 17:14:36 newmyth mythmetadatalookup: mythmetadatalookup[2839]: I CoreContext mythcontext.cpp:1665 (~MythContext) Exiting
Scenario 2:
TV Serie "Ein Fall für zwei - Glamourgirl" ZDF July 31st 2020, season 36, episode 4, getting no coverart. Looking up under thetvdb.com a german version of it is displayed...
Going inside frontend, selecting the movie and pressing M, then setting the recording options, the inetref is set to: ttvdb.py_89901.
After that pressing M again and starting the matadata recognizing, at the end no coverart is delivered. Inside the frontend a background image of "Ein Fall für zwei" is displayed, but no coverart.

Here the log of the action:

Code: Select all

Nov 19 17:44:34 newmyth mythmetadatalookup: mythmetadatalookup[3355]: N CoreContext mythcorecontext.cpp:1810 (InitLocale) Setting QT default locale to de_CH
Nov 19 17:44:34 newmyth mythmetadatalookup: mythmetadatalookup[3355]: I CoreContext mythcorecontext.cpp:1843 (SaveLocaleDefaults) Current locale de_CH
Nov 19 17:44:34 newmyth mythmetadatalookup: mythmetadatalookup[3355]: N CoreContext mythlocale.cpp:122 (LoadDefaultsFromXML) Reading locale defaults from /usr/share/mythtv//locales/de_ch.xml
Nov 19 17:44:34 newmyth mythmetadatalookup: mythmetadatalookup[3355]: I CoreContext platforms/mythpowerdbus.cpp:531 (AcquireLock) PowerDBus: Failed to delay sleep,shutdown: Permission denied
Nov 19 17:44:34 newmyth mythmetadatalookup: mythmetadatalookup[3355]: I CoreContext platforms/mythpowerdbus.cpp:360 (DeviceAdded) PowerDBus: Added UPower.Device '/org/freedesktop/UPower/devices/ups_hiddev0'
Nov 19 17:44:34 newmyth mythmetadatalookup: mythmetadatalookup[3355]: I CoreContext mythpower.cpp:374 (PowerLevelChanged) Power: Unknown power source
Nov 19 17:44:34 newmyth mythmetadatalookup: mythmetadatalookup[3355]: I CoreContext mythpower.cpp:131 (Init) Power: Supported actions: None
Nov 19 17:44:34 newmyth mythmetadatalookup: mythmetadatalookup[3355]: I CoreContext mythtranslation.cpp:64 (load) Loading de translation for module mythfrontend
Nov 19 17:44:34 newmyth mythmetadatalookup: mythmetadatalookup[3355]: I CoreContext main.cpp:113 (main) Testing grabbers and metadata sites for functionality...
Nov 19 17:44:34 newmyth mythmetadatalookup: mythmetadatalookup[3355]: I SystemManager mythsystemunix.cpp:262 (run) Starting process manager
Nov 19 17:44:34 newmyth mythmetadatalookup: mythmetadatalookup[3355]: I SystemSignalManager mythsystemunix.cpp:488 (run) Starting process signal handler
Nov 19 17:44:34 newmyth mythmetadatalookup: mythmetadatalookup[3355]: I SystemIOHandlerR mythsystemunix.cpp:83 (run) Starting IO manager (read)
Nov 19 17:44:34 newmyth mythmetadatalookup: mythmetadatalookup[3355]: I SystemIOHandlerW mythsystemunix.cpp:83 (run) Starting IO manager (write)
Nov 19 17:44:36 newmyth mythmetadatalookup: mythmetadatalookup[3355]: I CoreContext main.cpp:120 (main) All grabbers tested and working.  Continuing...
Nov 19 17:44:36 newmyth mythmetadatalookup: mythmetadatalookup[3355]: I CoreContext mythcorecontext.cpp:471 (ConnectCommandSocket) MythCoreContext::ConnectCommandSocket(): Connecting to backend server: 192.168.1.9:6543 (try 1 of 1)
Nov 19 17:44:36 newmyth mythmetadatalookup: mythmetadatalookup[3355]: I CoreContext mythcorecontext.cpp:1694 (CheckProtoVersion) MythCoreContext::CheckProtoVersion(): Using protocol version 91 BuzzOff
Nov 19 17:44:36 newmyth mythmetadatalookup: mythmetadatalookup[3355]: I MetadataDownload metadatagrabber.cpp:425 (RunGrabber) Running Grabber: /usr/share/mythtv/metadata/Television/ttvdb.py -l de -a CH -N 89901 Glamourgirl
Nov 19 17:44:42 newmyth mythmetadatalookup: mythmetadatalookup[3355]: I MetadataDownload metadatacommon.cpp:1142 (ParseMetadataItem) Result Found, Season 36 Episode 4
Nov 19 17:44:42 newmyth mythmetadatalookup: mythmetadatalookup[3355]: I MetadataDownload metadatadownload.cpp:220 (run) Returning Metadata Results: Ein Fall für zwei 36 4
Nov 19 17:44:45 newmyth mythmetadatalookup: mythmetadatalookup[3355]: N CoreContext main.cpp:170 (main) MythMetadataLookup run complete.
Nov 19 17:44:45 newmyth mythmetadatalookup: mythmetadatalookup[3355]: I CoreContext platforms/mythpowerdbus.cpp:72 (~MythPowerDBus) PowerDBus: Closing interfaces
Nov 19 17:44:45 newmyth mythmetadatalookup: mythmetadatalookup[3355]: I CoreContext mythcontext.cpp:1659 (~MythContext) Waiting for threads to exit.
Nov 19 17:44:47 newmyth mythmetadatalookup: mythmetadatalookup[3355]: I CoreContext mythcontext.cpp:1665 (~MythContext) Exiting
Check the log file in "/var/log/mythtv/mythfrontend.log" for "Running Grabber: /usr/share/mythtv/metadata/.......",
can you find some logs for your mentioned scanario (1) or (2)?
I cannot find anything inside /var/log/mythtv/mythfrontend.log for the actions above performed inside the frontend manually, but there is something logged inside backend.log during the automatical recording actions for successfully performed metadata lookups:

Code: Select all

Nov 10 00:08:03 newmyth mythbackend: mythbackend[1186]: I MetadataDownload metadatagrabber.cpp:453 (RunGrabber) Running Grabber: /usr/share/mythtv/metadata/Movie/tmdb3.py -l de -a 
CH -M Das ist erst der Anfang
Nov 10 00:08:04 newmyth mythbackend: mythbackend[1186]: I MetadataDownload metadatacommon.cpp:1202 (ParseMetadataItem) Result Found, Season 0 Episode 0
Nov 10 00:08:05 newmyth mythbackend: mythbackend[1186]: I MetadataDownload metadatagrabber.cpp:453 (RunGrabber) Running Grabber: /usr/share/mythtv/metadata/Television/ttvdb.py -l d
e -a CH -M Das ist erst der Anfang
Nov 10 00:08:06 newmyth mythbackend: mythbackend[1186]: I MetadataDownload metadatadownload.cpp:176 (run) Returning Metadata Results: Das ist erst der Anfang 0 0
Cheers,
Enrico

User avatar
dnalorernst
Developer
Posts: 51
Joined: Mon Feb 17, 2020 8:03 pm
Austria

Re: Strange behaviour looking up for metadata

Post by dnalorernst » Fri Nov 20, 2020 8:30 pm

Thank you for your detailed response.
I got enough information to start on investigating your issues.
Please give me some time to look into.

Just one question regarding the xmltv grabber:
Does the grabber provide references to the tmdb3-id or tvdb-id (Inet-Ref)?
And if so, does it include also references to the coverart? ( I agree, it would be too easy...)
To answer this question, you can either look into the temporary xml file the grabber provides,
or schedule a new recording and de-select the job option "Post processing: Automatically Look Up Metadata" for that recording.
(in german: "Nachberabeitung: Metadaten automatisch aktualisieren").
After the recording was done, you can check for existence of an
reference ID (Inet-Ref) with "M -> Recording Options -> Change Recording Metadata".

Roland

enrico123
Junior
Posts: 34
Joined: Mon Sep 22, 2014 1:36 pm
Switzerland

Re: Strange behaviour looking up for metadata

Post by enrico123 » Sat Nov 21, 2020 4:11 pm

Thanks for looking into the issue!
Just one question regarding the xmltv grabber:
Does the grabber provide references to the tmdb3-id or tvdb-id (Inet-Ref)?
And if so, does it include also references to the coverart? ( I agree, it would be too easy...)
I think you are referring to the /usr/bin/tv_grab_ch_search xmltv grabber.
In this case it's not containing any reference to tmdb3-id or tvdb-id (Inet-Ref) nor referencing the coverart.
It's only grabbing metadata (if any exist) like description, production year, category, production info, production country, cast etc. but no coverart.
To answer this question, you can either look into the temporary xml file the grabber provides,
Where is located such a temporary xml file and how is its filename?
or schedule a new recording and de-select the job option "Post processing: Automatically Look Up Metadata" for that recording.
(in german: "Nachberabeitung: Metadaten automatisch aktualisieren").
After the recording was done, you can check for existence of an
reference ID (Inet-Ref) with "M -> Recording Options -> Change Recording Metadata".
I have scheduled a new recording and de-selected the job option "Post processing: Automatically Look Up Metadata" for that recording.
After the recording was done, checking for existence of a reference ID, the inetref is empty.

User avatar
dnalorernst
Developer
Posts: 51
Joined: Mon Feb 17, 2020 8:03 pm
Austria

Re: Strange behaviour looking up for metadata

Post by dnalorernst » Sun Nov 22, 2020 11:00 am

Thank you for your feedback, these are somehow good news as well:
MythTV selects the right InetRef upon calling it's internal LookUp for the metadata of the recording,
because the InetRef is not provided by the xmltv-grabber itself.

Looking at scenario (1), I could no reproduce your issue for wrong coverart related to the recording "Don Jon",
I got the correct coverart, with german text.
This might be related to the changes I pushed to fixes/31 in October, 11th,
but could also be a glitch in the tmdb response.

But I have one observation:
MythTV does not update the artwork(s) for recordings once it is in the database.
Even pressing on the selected recording "M --> Job Options --> Begin Metadata Lookup",
it does not update the artwork, once an entry is already in the database.
There are reasons for this behaviour, but in this case, these reasons won't help us.

I kindly ask you to do the following steps (for scenario 1, wrong coverart, "Don Jon"):
  • Backup your database, see https://www.mythtv.org/wiki/Database_Backup_and_Restore
  • Clear the cache for tmdb3 for the user running the myth-backend:
    $ sudo -u mythtv rm /home/mythtv/.mythtv/cache/pytmdb3.cache
  • Within mythfrontend, look at the chanid and startimeutc by selecting "I' on the recording in question (i.e. "Don Jon")
    You should see something like "Recorded File Name: <chanid>_<starttimeutc>.ts"
    Execute the attached script with the options "--chanid <your-chanid>" and "--starttimeutc <your starttimeutc>":
    Run 'python3 del_artwork.py -- chanid <your-chanid> --starttimeutc <your starttimeutc>'.
    Note: This script deletes the references to the coverarts in the MythTV datatbase.
  • After that, you need to refresh the current view of the frontend:
    Go back to "Media Library --> Watch Recordings" and select the recoring ("Don Jon") again.
    There should be no covarart assigned to this recording.
  • Then press "M --> Job Options --> Begin Metadata Lookup" to retrieve the metadata again.
    After a while, the correct coverart that belongs to your language (german) should be displayed.
    Please post the logs from /var/log/mythtv/mythmetadatalookup, too.
    Does this result in correct coverart for that movie?
Note: This script is only a 'proof of concept' to show that I am on the right way.

Reminder: Please do a backup of your database beforehand!

Thank you for taking time to improve MythTV!

Regards,
Roland
Attachments
del_artwork.zip
(891 Bytes) Downloaded 6 times

enrico123
Junior
Posts: 34
Joined: Mon Sep 22, 2014 1:36 pm
Switzerland

Re: Strange behaviour looking up for metadata

Post by enrico123 » Sun Nov 22, 2020 3:22 pm

I've executed your suggested steps:
  • Clear the cache for tmdb3 for the user running the myth-backend:
    $ sudo -u mythtv rm /home/mythtv/.mythtv/cache/pytmdb3.cache
  • Within mythfrontend, look at the chanid and startimeutc by selecting "I' on the recording in question (i.e. "Don Jon")
    You should see something like "Recorded File Name: <chanid>_<starttimeutc>.ts"
    Execute the attached script with the options "--chanid <your-chanid>" and "--starttimeutc <your starttimeutc>":
    Run 'python3 del_artwork.py -- chanid <your-chanid> --starttimeutc <your starttimeutc>'.
    Note: This script deletes the references to the coverarts in the MythTV datatbase.
  • After that, you need to refresh the current view of the frontend:
    Go back to "Media Library --> Watch Recordings" and select the recoring ("Don Jon") again.
    There should be no covarart assigned to this recording.
  • Then press "M --> Job Options --> Begin Metadata Lookup" to retrieve the metadata again.
    After a while, the correct coverart that belongs to your language (german) should be displayed.
    Please post the logs from /var/log/mythtv/mythmetadatalookup, too.
    Does this result in correct coverart for that movie?
After executing your script on the movie, the coverart was deleted, but then regenerating the metadata, the same coverart in hebrew instead of the german one was reloaded :(

Here is the log:

Code: Select all

Nov 22 16:01:56 newmyth mythmetadatalookup: mythmetadatalookup[31839]: N CoreContext mythcorecontext.cpp:1810 (InitLocale) Setting QT default locale to de_CH
Nov 22 16:01:56 newmyth mythmetadatalookup: mythmetadatalookup[31839]: I CoreContext mythcorecontext.cpp:1843 (SaveLocaleDefaults) Current locale de_CH
Nov 22 16:01:56 newmyth mythmetadatalookup: mythmetadatalookup[31839]: N CoreContext mythlocale.cpp:122 (LoadDefaultsFromXML) Reading locale defaults from /usr/share/mythtv//locales/de_ch.xml
Nov 22 16:01:56 newmyth mythmetadatalookup: mythmetadatalookup[31839]: I CoreContext platforms/mythpowerdbus.cpp:531 (AcquireLock) PowerDBus: Failed to delay sleep,shutdown: Permission denied
Nov 22 16:01:56 newmyth mythmetadatalookup: mythmetadatalookup[31839]: I CoreContext platforms/mythpowerdbus.cpp:360 (DeviceAdded) PowerDBus: Added UPower.Device '/org/freedesktop/UPower/devices/ups_hiddev0'
Nov 22 16:01:56 newmyth mythmetadatalookup: mythmetadatalookup[31839]: I CoreContext mythpower.cpp:374 (PowerLevelChanged) Power: Unknown power source
Nov 22 16:01:56 newmyth mythmetadatalookup: mythmetadatalookup[31839]: I CoreContext mythpower.cpp:131 (Init) Power: Supported actions: None
Nov 22 16:01:56 newmyth mythmetadatalookup: mythmetadatalookup[31839]: I CoreContext mythtranslation.cpp:64 (load) Loading de translation for module mythfrontend
Nov 22 16:01:56 newmyth mythmetadatalookup: mythmetadatalookup[31839]: I CoreContext main.cpp:113 (main) Testing grabbers and metadata sites for functionality...
Nov 22 16:01:56 newmyth mythmetadatalookup: mythmetadatalookup[31839]: I SystemManager mythsystemunix.cpp:262 (run) Starting process manager
Nov 22 16:01:56 newmyth mythmetadatalookup: mythmetadatalookup[31839]: I SystemSignalManager mythsystemunix.cpp:488 (run) Starting process signal handler
Nov 22 16:01:56 newmyth mythmetadatalookup: mythmetadatalookup[31839]: I SystemIOHandlerW mythsystemunix.cpp:83 (run) Starting IO manager (write)
Nov 22 16:01:56 newmyth mythmetadatalookup: mythmetadatalookup[31839]: I SystemIOHandlerR mythsystemunix.cpp:83 (run) Starting IO manager (read)
Nov 22 16:01:57 newmyth mythmetadatalookup: mythmetadatalookup[31839]: I CoreContext main.cpp:120 (main) All grabbers tested and working.  Continuing...
Nov 22 16:01:58 newmyth mythmetadatalookup: mythmetadatalookup[31839]: I CoreContext mythcorecontext.cpp:471 (ConnectCommandSocket) MythCoreContext::ConnectCommandSocket(): Connecting to backend server: 192.168.1.9:6543 (try 1 of 1)
Nov 22 16:01:58 newmyth mythmetadatalookup: mythmetadatalookup[31839]: I CoreContext mythcorecontext.cpp:1694 (CheckProtoVersion) MythCoreContext::CheckProtoVersion(): Using protocol version 91 BuzzOff
Nov 22 16:01:58 newmyth mythmetadatalookup: mythmetadatalookup[31839]: I MetadataDownload metadatagrabber.cpp:425 (RunGrabber) Running Grabber: /usr/share/mythtv/metadata/Movie/tmdb3.py -l de -a CH -D 138697
Nov 22 16:01:59 newmyth mythmetadatalookup: mythmetadatalookup[31839]: I MetadataDownload metadatacommon.cpp:1142 (ParseMetadataItem) Result Found, Season 0 Episode 0
Nov 22 16:01:59 newmyth mythmetadatalookup: mythmetadatalookup[31839]: I MetadataDownload metadatadownload.cpp:220 (run) Returning Metadata Results: Don Jon 0 0
Nov 22 16:02:01 newmyth mythmetadatalookup: mythmetadatalookup[31839]: N CoreContext main.cpp:170 (main) MythMetadataLookup run complete.
Nov 22 16:02:01 newmyth mythmetadatalookup: mythmetadatalookup[31839]: I CoreContext platforms/mythpowerdbus.cpp:72 (~MythPowerDBus) PowerDBus: Closing interfaces
Nov 22 16:02:01 newmyth mythmetadatalookup: mythmetadatalookup[31839]: I CoreContext mythcontext.cpp:1659 (~MythContext) Waiting for threads to exit.
Nov 22 16:02:03 newmyth mythmetadatalookup: mythmetadatalookup[31839]: I CoreContext mythcontext.cpp:1665 (~MythContext) Exiting
Executing from the command line the command found in the log
$ /usr/share/mythtv/metadata/Movie/tmdb3.py -l de -a CH -D 138697
i'm getting the following xml output:

Code: Select all

mythbuntu@newmyth:~/tmp$ /usr/share/mythtv/metadata/Movie/tmdb3.py -l de -a CH -D 138697
<?xml version='1.0' encoding='UTF-8'?>
<metadata>
  <item>
    <title>Don Jon</title>
    <tagline>Was Frauen wollen und Männer brauchen.</tagline>
    <description>Jon Martello macht seinem Spitznamen ‘Don Juan’ alle Ehre. Er ist ein typischer Playboy, der mit allen Mitteln der Verführung versucht, so viele Frauen wie möglich ins Bett zu kriegen und gleichzeitig seine Sucht nach Internet-Pornos zu stillen. Seine Glückssträhne bei Frauen endet allerdings, als er die hübsche Barbra kennenlernt. Bei ihr stößt er das erste Mal auf Widerstand. Barbra sucht nämlich keineswegs nur einen One-Night-Stand, sondern die große Liebe. Trotzdem gibt Jon nicht auf und verdrängt die offensichtlichen Unterschiede zwischen ihm und Barbra. Jons Leben nimmt eine weitere Wendung, als er Esther begegnet. Denn Esther versteht ihn und sein Verhalten und blickt hinter die Fassade.</description>
    <inetref>138697</inetref>
    <releasedate>2013-10-04</releasedate>
    <userrating>6.000000</userrating>
    <popularity>14.162</popularity>
    <budget>3000000</budget>
    <year>2013</year>
    <runtime>90</runtime>
    <certifications>
      <certification locale="RU" name="16+"/>
      <certification locale="SE" name="15"/>
      <certification locale="DK" name="15"/>
      <certification locale="PT" name="M12"/>
      <certification locale="HK" name="III"/>
      <certification locale="BR" name="16"/>
      <certification locale="AU" name="MA15+"/>
      <certification locale="KR" name="청소년 관람불가"/>
      <certification locale="NO" name="15"/>
      <certification locale="FR" name="12"/>
      <certification locale="US" name="R"/>
      <certification locale="DE" name="16"/>
      <certification locale="SK" name="15"/>
      <certification locale="GB" name="18"/>
      <certification locale="NL" name="16"/>
    </certifications>
    <categories>
      <category name="Liebesfilm"/>
      <category name="Komödie"/>
      <category name="Drama"/>
    </categories>
    <countries>
      <country name="United States of America"/>
    </countries>
    <studios>
      <studio name="Ram Bergman Productions"/>
      <studio name="HitRecord Films"/>
      <studio name="Voltage Pictures"/>
    </studios>
    <people>
      <person name="Joseph Gordon-Levitt" character="Jon Martello, Jr." department="Actors" job="Actor" url="http://www.themoviedb.org/people/24045" thumb="http://image.tmdb.org/t/p/original/1NOFo2LQXUQwpTnA249AV1ro4v2.jpg"/>
      <person name="Scarlett Johansson" character="Barbara Sugarman" department="Actors" job="Actor" url="http://www.themoviedb.org/people/1245" thumb="http://image.tmdb.org/t/p/original/3JTEc2tGUact9c0WktvpeJ9pajn.jpg"/>
      <person name="Julianne Moore" character="Esther" department="Actors" job="Actor" url="http://www.themoviedb.org/people/1231" thumb="http://image.tmdb.org/t/p/original/7G0Y2igys4ZIqz0WeR6wvAneKtn.jpg"/>
      <person name="Tony Danza" character="Jon Martello, Sr." department="Actors" job="Actor" url="http://www.themoviedb.org/people/18298" thumb="http://image.tmdb.org/t/p/original/9dTcKYiZV6pHUGNxx6auoBaHFqT.jpg"/>
      <person name="Glenne Headly" character="Angela Martello" department="Actors" job="Actor" url="http://www.themoviedb.org/people/21104" thumb="http://image.tmdb.org/t/p/original/v1uqgxYG3grfF7s7sky8B9oufzP.jpg"/>
      <person name="Brie Larson" character="Monica Martello" department="Actors" job="Actor" url="http://www.themoviedb.org/people/60073" thumb="http://image.tmdb.org/t/p/original/ajL2BnTVftx9VtjNQceKC1qIqSb.jpg"/>
      <person name="Lindsey Broad" character="Lauren" department="Actors" job="Actor" url="http://www.themoviedb.org/people/208307" thumb="http://image.tmdb.org/t/p/original/lmpDz3cy5Gejs4aD8j46PZrSRU.jpg"/>
      <person name="Rob Brown" character="Bobby" department="Actors" job="Actor" url="http://www.themoviedb.org/people/10689" thumb="http://image.tmdb.org/t/p/original/jVevsp9OsdImQ8YxNjdG3KLYket.jpg"/>
      <person name="Jeremy Luke" character="Danny" department="Actors" job="Actor" url="http://www.themoviedb.org/people/112879"/>
      <person name="Paul Ben-Victor" character="Priest" department="Actors" job="Actor" url="http://www.themoviedb.org/people/85142" thumb="http://image.tmdb.org/t/p/original/qhxGWVppbnwF4YuzQQtIym5z99E.jpg"/>
      <person name="Italia Ricci" character="Gina" department="Actors" job="Actor" url="http://www.themoviedb.org/people/212429" thumb="http://image.tmdb.org/t/p/original/sLQAYErTlb9DiiLlXmUH7me47vK.jpg"/>
      <person name="Amanda Perez" character="Lisa" department="Actors" job="Actor" url="http://www.themoviedb.org/people/1124795"/>
      <person name="Sarah Dumont" character="Sequins" department="Actors" job="Actor" url="http://www.themoviedb.org/people/1223438" thumb="http://image.tmdb.org/t/p/original/lW6Qxv5OYfHxdwy7UIalIjpdL07.jpg"/>
      <person name="Sloane Avery" character="Patricia" department="Actors" job="Actor" url="http://www.themoviedb.org/people/1223439"/>
      <person name="Loanne Bishop" character="Barbara's Mom" department="Actors" job="Actor" url="http://www.themoviedb.org/people/149699"/>
      <person name="Arin Babaian" character="Bartender" department="Actors" job="Actor" url="http://www.themoviedb.org/people/1355837"/>
      <person name="Arielle Reitsma" character="Pink" department="Actors" job="Actor" url="http://www.themoviedb.org/people/1355838"/>
      <person name="Rizwan Manji" character="Teacher" department="Actors" job="Actor" url="http://www.themoviedb.org/people/1223718" thumb="http://image.tmdb.org/t/p/original/mBsLE1sDCWZXR9PWV8xptTpxkQc.jpg"/>
      <person name="Eva Mah" character="Waitress" department="Actors" job="Actor" url="http://www.themoviedb.org/people/1355839"/>
      <person name="Nina Agdal" character="Supermodel in Commercial" department="Actors" job="Actor" url="http://www.themoviedb.org/people/1355840" thumb="http://image.tmdb.org/t/p/original/j42GpHOgb6tlQRliHGHAgVYA0y6.jpg"/>
      <person name="Jason Burnham" character="Promoter" department="Actors" job="Actor" url="http://www.themoviedb.org/people/1355841"/>
      <person name="Johnny Ferrara" character="Other Driver" department="Actors" job="Actor" url="http://www.themoviedb.org/people/1355842"/>
      <person name="Tiffany Pulvino" character="Hostess" department="Actors" job="Actor" url="http://www.themoviedb.org/people/239974" thumb="http://image.tmdb.org/t/p/original/yEJct0AJnKqdSkU8vp0Ts7cGYG0.jpg"/>
      <person name="Olia Voronkova" character="Russian Voices" department="Actors" job="Actor" url="http://www.themoviedb.org/people/1355844"/>
      <person name="Sonni Brown" character="Woman in Car" department="Actors" job="Actor" url="http://www.themoviedb.org/people/1355845"/>
      <person name="Antoinette Kalaj" character="Feefee" department="Actors" job="Actor" url="http://www.themoviedb.org/people/1346327" thumb="http://image.tmdb.org/t/p/original/miBvizhGTzGvh2wKZ2Dl5tbSsXq.jpg"/>
      <person name="Arayna Eison" character="Beebee" department="Actors" job="Actor" url="http://www.themoviedb.org/people/1355846" thumb="http://image.tmdb.org/t/p/original/v2hpAJ1nXZN63CVs3v8DpezKIAJ.jpg"/>
      <person name="Becky O'Donohue" character="Deedee" department="Actors" job="Actor" url="http://www.themoviedb.org/people/446351"/>
      <person name="Elena Kim" character="Purple" department="Actors" job="Actor" url="http://www.themoviedb.org/people/1355847"/>
      <person name="Tanya Mityushina" character="White Shorts" department="Actors" job="Actor" url="http://www.themoviedb.org/people/1355848" thumb="http://image.tmdb.org/t/p/original/irA9TjxBYFCuA8XikmtgK214JmG.jpg"/>
      <person name="Craig Marks" character="Church Parishioner" department="Actors" job="Actor" url="http://www.themoviedb.org/people/1355849"/>
      <person name="Anne Hathaway" character="Emily Lombardo" department="Actors" job="Actor" url="http://www.themoviedb.org/people/1813" thumb="http://image.tmdb.org/t/p/original/tLelKoPNiyJCSEtQTz1FGv4TLGc.jpg"/>
      <person name="Channing Tatum" character="Conner Verreaux" department="Actors" job="Actor" url="http://www.themoviedb.org/people/38673" thumb="http://image.tmdb.org/t/p/original/bhTmp6FA8fOQnGlNk75tdmj2bpu.jpg"/>
      <person name="Meagan Good" character="Hollywood Actress #2" department="Actors" job="Actor" url="http://www.themoviedb.org/people/22122" thumb="http://image.tmdb.org/t/p/original/iwSNBQKKDhEbtNe8I4ROYoYmWqE.jpg"/>
      <person name="Cuba Gooding Jr." character="Hollywood Actor #2" department="Actors" job="Actor" url="http://www.themoviedb.org/people/9777" thumb="http://image.tmdb.org/t/p/original/2JguzbpOXoTGzSmLbWFlulKyyAe.jpg"/>
      <person name="Alexis Texas" character="Porn Actress (uncredited)" department="Actors" job="Actor" url="http://www.themoviedb.org/people/124972" thumb="http://image.tmdb.org/t/p/original/9NKxgYQILdsR3td6agq9yBImZxK.jpg"/>
      <person name="Sunny Lane" character="Porn Actress (uncredited)" department="Actors" job="Actor" url="http://www.themoviedb.org/people/74250" thumb="http://image.tmdb.org/t/p/original/hqj0Lv0QjZX7PDZenO8EraDDRNY.jpg"/>
      <person name="Devon" character="Porn Actress (uncredited)" department="Actors" job="Actor" url="http://www.themoviedb.org/people/124136" thumb="http://image.tmdb.org/t/p/original/ijErAfeqwz2zVyR8CDEfTJJICFk.jpg"/>
      <person name="Cheyne Collins" character="Porn Actor (uncredited)" department="Actors" job="Actor" url="http://www.themoviedb.org/people/41990"/>
      <person name="Kayden Kross" character="Porn Actress (uncredited)" department="Actors" job="Actor" url="http://www.themoviedb.org/people/132388" thumb="http://image.tmdb.org/t/p/original/aEiTvQwxzhWd9cnwguzFK6WIJBb.jpg"/>
      <person name="Jenny Hendrix" character="Porn Actress (uncredited)" department="Actors" job="Actor" url="http://www.themoviedb.org/people/125611" thumb="http://image.tmdb.org/t/p/original/1KKqWIE1CnLQDVVzZhJKr4Aj03E.jpg"/>
      <person name="Damien Michaels" character="Porn Actor (uncredited)" department="Actors" job="Actor" url="http://www.themoviedb.org/people/1274860"/>
      <person name="Tori Black" character="Porn Actress (uncredited)" department="Actors" job="Actor" url="http://www.themoviedb.org/people/132381" thumb="http://image.tmdb.org/t/p/original/e6MPif3YjBVKWgTFxOmNQRX8b8.jpg"/>
      <person name="Manuel Ferrara" character="Porn Actor (uncredited)" department="Actors" job="Actor" url="http://www.themoviedb.org/people/55680" thumb="http://image.tmdb.org/t/p/original/2nHXTVSNdY7Npr8oePXjMzfsycT.jpg"/>
      <person name="Mia Malkova" character="Porn Actress (uncredited)" department="Actors" job="Actor" url="http://www.themoviedb.org/people/1197172" thumb="http://image.tmdb.org/t/p/original/4klK1oy78QF8H5ItQYna537nixM.jpg"/>
      <person name="Jynx Maze" character="Porn Actress (uncredited)" department="Actors" job="Actor" url="http://www.themoviedb.org/people/232271" thumb="http://image.tmdb.org/t/p/original/wTSzroMYblm4vz0Ec3sgRrIS9br.jpg"/>
      <person name="Dani Daniels" character="Porn Actress (uncredited)" department="Actors" job="Actor" url="http://www.themoviedb.org/people/577492" thumb="http://image.tmdb.org/t/p/original/qD6VqAkxxy8mZkpTommx1pMIxj7.jpg"/>
      <person name="Isis Taylor" character="Porn Actress (uncredited)" department="Actors" job="Actor" url="http://www.themoviedb.org/people/136791" thumb="http://image.tmdb.org/t/p/original/u8a7JJr8oKQ6BmOC38ErFY87L0B.jpg"/>
      <person name="Bree Olson" character="Porn Actress (uncredited)" department="Actors" job="Actor" url="http://www.themoviedb.org/people/132398" thumb="http://image.tmdb.org/t/p/original/rnkLCR1zsmEbtYnpQdI1jUuJFBp.jpg"/>
      <person name="Aletta Ocean" character="Porn Actress (uncredited)" department="Actors" job="Actor" url="http://www.themoviedb.org/people/135659" thumb="http://image.tmdb.org/t/p/original/rqxZjTfLeRMzwQ3IJQXza95YIP7.jpg"/>
      <person name="Stoya" character="Porn Actress (uncredited)" department="Actors" job="Actor" url="http://www.themoviedb.org/people/88229" thumb="http://image.tmdb.org/t/p/original/1I3639DxJ2rBicMftCdRCaCmnxL.jpg"/>
      <person name="Mark Ashley" character="Porn Actor (uncredited)" department="Actors" job="Actor" url="http://www.themoviedb.org/people/55682" thumb="http://image.tmdb.org/t/p/original/tYf5Wnv2sHwIok1DmsNL2QjQXKP.jpg"/>
      <person name="Misty Stone" character="Porn Actress (uncredited)" department="Actors" job="Actor" url="http://www.themoviedb.org/people/138185" thumb="http://image.tmdb.org/t/p/original/3vBQ6l1AYxdHgmsfYIasLRsQa7l.jpg"/>
      <person name="Borislav Iliev" character="Three Finger (uncredited)" department="Actors" job="Actor" url="http://www.themoviedb.org/people/1167321" thumb="http://image.tmdb.org/t/p/original/c2cs8FkwM2CC4tcnCWaIGkSpvba.jpg"/>
      <person name="Louise Cliffe" character="(archive footage)" department="Actors" job="Actor" url="http://www.themoviedb.org/people/147893" thumb="http://image.tmdb.org/t/p/original/6o1uwzAYupbQBrYtCPXD6tJInMn.jpg"/>
      <person name="Mary Vernieu" job="Casting" department="Production" url="http://www.themoviedb.org/people/5914"/>
      <person name="Emily Blunt" job="Thanks" department="Crew" url="http://www.themoviedb.org/people/5081" thumb="http://image.tmdb.org/t/p/original/jqlqq3knztTnty5rcMg5evqZRCa.jpg"/>
      <person name="John Hartigan" job="Special Effects Coordinator" department="Crew" url="http://www.themoviedb.org/people/16498"/>
      <person name="Joseph Gordon-Levitt" job="Director" department="Directing" url="http://www.themoviedb.org/people/24045" thumb="http://image.tmdb.org/t/p/original/1NOFo2LQXUQwpTnA249AV1ro4v2.jpg"/>
      <person name="Joseph Gordon-Levitt" job="Writer" department="Writing" url="http://www.themoviedb.org/people/24045" thumb="http://image.tmdb.org/t/p/original/1NOFo2LQXUQwpTnA249AV1ro4v2.jpg"/>
      <person name="Venus Kanani" job="Casting" department="Production" url="http://www.themoviedb.org/people/39123"/>
      <person name="Thomas Kloss" job="Director of Photography" department="Camera" url="http://www.themoviedb.org/people/46081" thumb="http://image.tmdb.org/t/p/original/mRglaeR5JrM3pQXXDwJjg7GjqYo.jpg"/>
      <person name="Ryan Kavanaugh" job="Executive Producer" department="Production" url="http://www.themoviedb.org/people/54419"/>
      <person name="Tucker Tooley" job="Executive Producer" department="Production" url="http://www.themoviedb.org/people/54873"/>
      <person name="Ram Bergman" job="Producer" department="Production" url="http://www.themoviedb.org/people/60047" thumb="http://image.tmdb.org/t/p/original/1CYolCdsMlyuw6fnbmcHxOvXphv.jpg"/>
      <person name="Nathan Johnson" job="Original Music Composer" department="Sound" url="http://www.themoviedb.org/people/69077" thumb="http://image.tmdb.org/t/p/original/oXO5FSZ8ZEbFDdPzrjFHNcs4Ic6.jpg"/>
      <person name="Meghan C. Rogers" job="Production Design" department="Art" url="http://www.themoviedb.org/people/111052"/>
      <person name="Gary Rizzo" job="Sound Re-Recording Mixer" department="Sound" url="http://www.themoviedb.org/people/138618" thumb="http://image.tmdb.org/t/p/original/7FI3p2EeofGru26XD8bNpCjNLt1.jpg"/>
      <person name="Cindy Coburn" job="Set Decoration" department="Art" url="http://www.themoviedb.org/people/960565" thumb="http://image.tmdb.org/t/p/original/vykbf6Wos2T9McL2XEMvBDe704n.jpg"/>
      <person name="Leah Katznelson" job="Costume Design" department="Costume &amp; Make-Up" url="http://www.themoviedb.org/people/971528"/>
      <person name="Bruce Wayne Gillies" job="Line Producer" department="Production" url="http://www.themoviedb.org/people/990955"/>
      <person name="Lauren Zuckerman" job="Editor" department="Editing" url="http://www.themoviedb.org/people/1001368"/>
      <person name="Nicolas Chartier" job="Executive Producer" department="Production" url="http://www.themoviedb.org/people/1031200" thumb="http://image.tmdb.org/t/p/original/59ptYCph60CtAtLmWuC9dASHhsp.jpg"/>
      <person name="Elizabeth Cummings" job="Art Direction" department="Art" url="http://www.themoviedb.org/people/1279522"/>
      <person name="Luisa Abel" job="Makeup Department Head" department="Costume &amp; Make-Up" url="http://www.themoviedb.org/people/1322015"/>
      <person name="Renetta G. Amador" job="Script Supervisor" department="Directing" url="http://www.themoviedb.org/people/1344842"/>
      <person name="David Chrastka" job="Supervising Sound Editor" department="Sound" url="http://www.themoviedb.org/people/1388865"/>
      <person name="Pawel Wdowczak" job="Sound mixer" department="Sound" url="http://www.themoviedb.org/people/1410954"/>
      <person name="Dale Myrand" job="Camera Operator" department="Camera" url="http://www.themoviedb.org/people/1412204"/>
      <person name="Tony Villaflor" job="Sound Re-Recording Mixer" department="Sound" url="http://www.themoviedb.org/people/1414179"/>
      <person name="Daniel C. McFadden" job="Still Photographer" department="Camera" url="http://www.themoviedb.org/people/1420326"/>
      <person name="Vern Nobles" job="Camera Operator" department="Camera" url="http://www.themoviedb.org/people/1425827"/>
      <person name="Vern Nobles" job="Steadicam Operator" department="Camera" url="http://www.themoviedb.org/people/1425827"/>
      <person name="Trish Almeida" job="Hair Department Head" department="Costume &amp; Make-Up" url="http://www.themoviedb.org/people/1452614"/>
      <person name="John Houlihan" job="Music Supervisor" department="Sound" url="http://www.themoviedb.org/people/1471726" thumb="http://image.tmdb.org/t/p/original/jjSe0UrQQ4V4I4viYxSi23jCPS5.jpg"/>
      <person name="Nikos Karamigios" job="Associate Producer" department="Production" url="http://www.themoviedb.org/people/1501240"/>
      <person name="Drew DeAscentis" job="Music Editor" department="Sound" url="http://www.themoviedb.org/people/1529430"/>
      <person name="Diane Ward" job="Production Coordinator" department="Production" url="http://www.themoviedb.org/people/1565099"/>
      <person name="Kristen Ochs" job="Assistant Costume Designer" department="Costume &amp; Make-Up" url="http://www.themoviedb.org/people/1565101"/>
      <person name="Jason Andrew" job="Key Grip" department="Camera" url="http://www.themoviedb.org/people/1608891"/>
      <person name="Peter Wulff" job="Location Manager" department="Production" url="http://www.themoviedb.org/people/1701606"/>
    </people>
    <images>
      <image type="fanart" url="http://image.tmdb.org/t/p/original/4QBI1pdjr2hH1fgC8NqwZZnWNso.jpg" thumb="http://image.tmdb.org/t/p/w300/4QBI1pdjr2hH1fgC8NqwZZnWNso.jpg" height="2160" width="3840"/>
      <image type="fanart" url="http://image.tmdb.org/t/p/original/tHdzyULwhpTRRfORhI1hoWA3iij.jpg" thumb="http://image.tmdb.org/t/p/w300/tHdzyULwhpTRRfORhI1hoWA3iij.jpg" height="1683" width="2992"/>
      <image type="fanart" url="http://image.tmdb.org/t/p/original/4oIsyUCzG5KwtAQRuDZKtreoLnY.jpg" thumb="http://image.tmdb.org/t/p/w300/4oIsyUCzG5KwtAQRuDZKtreoLnY.jpg" height="2160" width="3840"/>
      <image type="fanart" url="http://image.tmdb.org/t/p/original/9CMpfZzmhNxCFtNfTVqat3LtPfe.jpg" thumb="http://image.tmdb.org/t/p/w300/9CMpfZzmhNxCFtNfTVqat3LtPfe.jpg" height="2160" width="3840"/>
      <image type="fanart" url="http://image.tmdb.org/t/p/original/xygmuz3tLpfjeErPQF9enM8LRNY.jpg" thumb="http://image.tmdb.org/t/p/w300/xygmuz3tLpfjeErPQF9enM8LRNY.jpg" height="2160" width="3840"/>
      <image type="fanart" url="http://image.tmdb.org/t/p/original/o8YkMrigqDJzsfLokII3FREDSXz.jpg" thumb="http://image.tmdb.org/t/p/w300/o8YkMrigqDJzsfLokII3FREDSXz.jpg" height="2160" width="3840"/>
      <image type="fanart" url="http://image.tmdb.org/t/p/original/5BtwSiTBhmws5ZEsnZjBIdE6PL1.jpg" thumb="http://image.tmdb.org/t/p/w300/5BtwSiTBhmws5ZEsnZjBIdE6PL1.jpg" height="2160" width="3840"/>
      <image type="fanart" url="http://image.tmdb.org/t/p/original/3QVpSCK5MzyvyU6ltKdCvHCfXux.jpg" thumb="http://image.tmdb.org/t/p/w300/3QVpSCK5MzyvyU6ltKdCvHCfXux.jpg" height="1620" width="2880"/>
      <image type="fanart" url="http://image.tmdb.org/t/p/original/nekZnvTf9nGAS4DhQvDOzJM1rOD.jpg" thumb="http://image.tmdb.org/t/p/w300/nekZnvTf9nGAS4DhQvDOzJM1rOD.jpg" height="1683" width="2992"/>
      <image type="fanart" url="http://image.tmdb.org/t/p/original/3gmHmPqKzfeYCqfmJ3GW3ggO4LE.jpg" thumb="http://image.tmdb.org/t/p/w300/3gmHmPqKzfeYCqfmJ3GW3ggO4LE.jpg" height="2160" width="3840"/>
      <image type="fanart" url="http://image.tmdb.org/t/p/original/gd076dA9zF49wnu7VLt4ywkdkn0.jpg" thumb="http://image.tmdb.org/t/p/w300/gd076dA9zF49wnu7VLt4ywkdkn0.jpg" height="2160" width="3840"/>
      <image type="fanart" url="http://image.tmdb.org/t/p/original/76ZVrZM3Ecovq4tIXqF4kQFrLp0.jpg" thumb="http://image.tmdb.org/t/p/w300/76ZVrZM3Ecovq4tIXqF4kQFrLp0.jpg" height="2160" width="3840"/>
      <image type="fanart" url="http://image.tmdb.org/t/p/original/2bKG7jAGrbKcBfETXcuOJ2emMX7.jpg" thumb="http://image.tmdb.org/t/p/w300/2bKG7jAGrbKcBfETXcuOJ2emMX7.jpg" height="2160" width="3840"/>
      <image type="fanart" url="http://image.tmdb.org/t/p/original/xOjqsxchX1yq7ukoN9SHUHtI2fr.jpg" thumb="http://image.tmdb.org/t/p/w300/xOjqsxchX1yq7ukoN9SHUHtI2fr.jpg" height="2160" width="3840"/>
      <image type="fanart" url="http://image.tmdb.org/t/p/original/n1rZoSn3SGdk5pKcrXJLMKAobHn.jpg" thumb="http://image.tmdb.org/t/p/w300/n1rZoSn3SGdk5pKcrXJLMKAobHn.jpg" height="2160" width="3840"/>
      <image type="fanart" url="http://image.tmdb.org/t/p/original/npNBY20T3xxywgycsAI2EtzvkGk.jpg" thumb="http://image.tmdb.org/t/p/w300/npNBY20T3xxywgycsAI2EtzvkGk.jpg" height="2160" width="3840"/>
      <image type="fanart" url="http://image.tmdb.org/t/p/original/atei6rOULnbG9OPw856duNJn2qp.jpg" thumb="http://image.tmdb.org/t/p/w300/atei6rOULnbG9OPw856duNJn2qp.jpg" height="2160" width="3840"/>
      <image type="fanart" url="http://image.tmdb.org/t/p/original/rHNOKUWZ0whJdJenONqTDb9o79e.jpg" thumb="http://image.tmdb.org/t/p/w300/rHNOKUWZ0whJdJenONqTDb9o79e.jpg" height="2160" width="3840"/>
      <image type="fanart" url="http://image.tmdb.org/t/p/original/q2cdKR2CJ97JSqFlaf30ix9YK7l.jpg" thumb="http://image.tmdb.org/t/p/w300/q2cdKR2CJ97JSqFlaf30ix9YK7l.jpg" height="2160" width="3840"/>
      <image type="fanart" url="http://image.tmdb.org/t/p/original/waAURZ6ETQR06BJqiueTCztgAAz.jpg" thumb="http://image.tmdb.org/t/p/w300/waAURZ6ETQR06BJqiueTCztgAAz.jpg" height="1080" width="1920"/>
      <image type="fanart" url="http://image.tmdb.org/t/p/original/rx6xraKRSHKR9a4FMoO82R9gjEP.jpg" thumb="http://image.tmdb.org/t/p/w300/rx6xraKRSHKR9a4FMoO82R9gjEP.jpg" height="1080" width="1920"/>
      <image type="coverart" url="http://image.tmdb.org/t/p/original/csNpbK6JpUHoRcByTBI1A9b4Yug.jpg" thumb="http://image.tmdb.org/t/p/w92/csNpbK6JpUHoRcByTBI1A9b4Yug.jpg" height="1500" width="1000"/>
      <image type="coverart" url="http://image.tmdb.org/t/p/original/vIf3AI9mpOpW9zmD7Ua1F7gfizq.jpg" thumb="http://image.tmdb.org/t/p/w92/vIf3AI9mpOpW9zmD7Ua1F7gfizq.jpg" height="1500" width="1000"/>
      <image type="coverart" url="http://image.tmdb.org/t/p/original/buugbXhbNSqwcc8ny6Ik1pNmkRC.jpg" thumb="http://image.tmdb.org/t/p/w92/buugbXhbNSqwcc8ny6Ik1pNmkRC.jpg" height="1500" width="1000"/>
      <image type="coverart" url="http://image.tmdb.org/t/p/original/ni156mhL5xsWlv7ha3dTfi6ZS28.jpg" thumb="http://image.tmdb.org/t/p/w92/ni156mhL5xsWlv7ha3dTfi6ZS28.jpg" height="2100" width="1400"/>
      <image type="coverart" url="http://image.tmdb.org/t/p/original/uh8bwvgGXeUKzdL4oSul9zxyTcd.jpg" thumb="http://image.tmdb.org/t/p/w92/uh8bwvgGXeUKzdL4oSul9zxyTcd.jpg" height="3000" width="2000"/>
      <image type="coverart" url="http://image.tmdb.org/t/p/original/asp3YRMj24YV5x0QChTvkFIChu9.jpg" thumb="http://image.tmdb.org/t/p/w92/asp3YRMj24YV5x0QChTvkFIChu9.jpg" height="1500" width="1000"/>
      <image type="coverart" url="http://image.tmdb.org/t/p/original/4dttvJwD6ay2JXbz2V3BmYkHJrn.jpg" thumb="http://image.tmdb.org/t/p/w92/4dttvJwD6ay2JXbz2V3BmYkHJrn.jpg" height="1440" width="960"/>
      <image type="coverart" url="http://image.tmdb.org/t/p/original/5pkzBNodPmULGLc2auEtqzkh5CU.jpg" thumb="http://image.tmdb.org/t/p/w92/5pkzBNodPmULGLc2auEtqzkh5CU.jpg" height="1500" width="1000"/>
      <image type="coverart" url="http://image.tmdb.org/t/p/original/d2R4G0Ju6AxUY2Uapul5sm0EZeU.jpg" thumb="http://image.tmdb.org/t/p/w92/d2R4G0Ju6AxUY2Uapul5sm0EZeU.jpg" height="1500" width="1000"/>
      <image type="coverart" url="http://image.tmdb.org/t/p/original/lhoS18XH4oD4TPSDDIsUWk5Sb92.jpg" thumb="http://image.tmdb.org/t/p/w92/lhoS18XH4oD4TPSDDIsUWk5Sb92.jpg" height="1500" width="1000"/>
      <image type="coverart" url="http://image.tmdb.org/t/p/original/sl3M89mMMQl6QVGJzjfMT74G02X.jpg" thumb="http://image.tmdb.org/t/p/w92/sl3M89mMMQl6QVGJzjfMT74G02X.jpg" height="3000" width="2000"/>
      <image type="coverart" url="http://image.tmdb.org/t/p/original/3BR2iKSWNGsBTcNgcDaqdjSumWB.jpg" thumb="http://image.tmdb.org/t/p/w92/3BR2iKSWNGsBTcNgcDaqdjSumWB.jpg" height="1153" width="800"/>
      <image type="coverart" url="http://image.tmdb.org/t/p/original/6Kbuco9DO0o0ohZM0RXN3Ohzyer.jpg" thumb="http://image.tmdb.org/t/p/w92/6Kbuco9DO0o0ohZM0RXN3Ohzyer.jpg" height="1289" width="900"/>
      <image type="coverart" url="http://image.tmdb.org/t/p/original/8gnu5MqsKDpl60OUp0qUBwlg1ZH.jpg" thumb="http://image.tmdb.org/t/p/w92/8gnu5MqsKDpl60OUp0qUBwlg1ZH.jpg" height="1446" width="1000"/>
      <image type="coverart" url="http://image.tmdb.org/t/p/original/2a95n3j0I6YVJnh4J6W0gIaFyEr.jpg" thumb="http://image.tmdb.org/t/p/w92/2a95n3j0I6YVJnh4J6W0gIaFyEr.jpg" height="1185" width="800"/>
      <image type="coverart" url="http://image.tmdb.org/t/p/original/4OSTvQIYEHSRqgiR80aeo7I4Cei.jpg" thumb="http://image.tmdb.org/t/p/w92/4OSTvQIYEHSRqgiR80aeo7I4Cei.jpg" height="1500" width="1061"/>
      <image type="coverart" url="http://image.tmdb.org/t/p/original/58AixNqZooSr2vuDV1IHBQVfhEa.jpg" thumb="http://image.tmdb.org/t/p/w92/58AixNqZooSr2vuDV1IHBQVfhEa.jpg" height="1000" width="710"/>
      <image type="coverart" url="http://image.tmdb.org/t/p/original/nyN9Aq9y84YzPhMH4UyyUs7nyoQ.jpg" thumb="http://image.tmdb.org/t/p/w92/nyN9Aq9y84YzPhMH4UyyUs7nyoQ.jpg" height="750" width="535"/>
      <image type="coverart" url="http://image.tmdb.org/t/p/original/zfeQzX0D6aFpcX95RDvCEMYagJ0.jpg" thumb="http://image.tmdb.org/t/p/w92/zfeQzX0D6aFpcX95RDvCEMYagJ0.jpg" height="750" width="534"/>
      <image type="coverart" url="http://image.tmdb.org/t/p/original/zyUorEtKuAseZfx8favx5ViMCVM.jpg" thumb="http://image.tmdb.org/t/p/w92/zyUorEtKuAseZfx8favx5ViMCVM.jpg" height="1000" width="674"/>
      <image type="coverart" url="http://image.tmdb.org/t/p/original/hHFMp6XY3Sr8ncx7plkqjmetapJ.jpg" thumb="http://image.tmdb.org/t/p/w92/hHFMp6XY3Sr8ncx7plkqjmetapJ.jpg" height="1182" width="800"/>
      <image type="coverart" url="http://image.tmdb.org/t/p/original/u2u6ACxl0Jg5u6iS68j239MKEQ5.jpg" thumb="http://image.tmdb.org/t/p/w92/u2u6ACxl0Jg5u6iS68j239MKEQ5.jpg" height="2100" width="1400"/>
      <image type="coverart" url="http://image.tmdb.org/t/p/original/6PoVB3r83SdYiFuWcLxMedah0c6.jpg" thumb="http://image.tmdb.org/t/p/w92/6PoVB3r83SdYiFuWcLxMedah0c6.jpg" height="2100" width="1400"/>
      <image type="coverart" url="http://image.tmdb.org/t/p/original/msXSFrwexusVkUbglC8vRIFU0O2.jpg" thumb="http://image.tmdb.org/t/p/w92/msXSFrwexusVkUbglC8vRIFU0O2.jpg" height="750" width="500"/>
      <image type="coverart" url="http://image.tmdb.org/t/p/original/8mRVniT9yEjTUH2nbta3vWD8tKa.jpg" thumb="http://image.tmdb.org/t/p/w92/8mRVniT9yEjTUH2nbta3vWD8tKa.jpg" height="1440" width="996"/>
      <image type="coverart" url="http://image.tmdb.org/t/p/original/gXMspQNFGjU3zAuA6BozQVnEn7I.jpg" thumb="http://image.tmdb.org/t/p/w92/gXMspQNFGjU3zAuA6BozQVnEn7I.jpg" height="3000" width="2000"/>
      <image type="coverart" url="http://image.tmdb.org/t/p/original/26vipyLq4oM84rM7zCZqR4LQ4sV.jpg" thumb="http://image.tmdb.org/t/p/w92/26vipyLq4oM84rM7zCZqR4LQ4sV.jpg" height="1500" width="1000"/>
    </images>
  </item>
</metadata>
Looking at the first two "coverart" elements I can see that the url of the first one delivers the german coverart and the url of the second one delivers the hebrew coverart. it seems that for some reason mythtv skips the first result and use the second one!
Why?

Code: Select all

      <image type="coverart" url="http://image.tmdb.org/t/p/original/csNpbK6JpUHoRcByTBI1A9b4Yug.jpg" thumb="http://image.tmdb.org/t/p/w92/csNpbK6JpUHoRcByTBI1A9b4Yug.jpg" height="1500" width="1000"/>
      <image type="coverart" url="http://image.tmdb.org/t/p/original/vIf3AI9mpOpW9zmD7Ua1F7gfizq.jpg" thumb="http://image.tmdb.org/t/p/w92/vIf3AI9mpOpW9zmD7Ua1F7gfizq.jpg" height="1500" width="1000"/>

User avatar
dnalorernst
Developer
Posts: 51
Joined: Mon Feb 17, 2020 8:03 pm
Austria

Re: Strange behaviour looking up for metadata

Post by dnalorernst » Sun Nov 22, 2020 6:16 pm

Thank you for your detailed answer.
That's really strange, I got the same results when running the above metadata script.
Now, I have to look into how MythTV behaves with different locales like "de-DE", "de-CH" and "de-AT".
Please, give me some time to look into.

enrico123
Junior
Posts: 34
Joined: Mon Sep 22, 2014 1:36 pm
Switzerland

Re: Strange behaviour looking up for metadata

Post by enrico123 » Mon Nov 23, 2020 4:51 pm

Thank you for looking at the issue of scenario 1.
Take your time :)

A few considerations about scenario 2:

I have given a look at the logs for similar cases and tried to execute from the command line the commands found in the log, e.g.

Kommissarin Lund - The Killing season 3 episode 10

Code: Select all

Nov 23 16:24:03 newmyth mythmetadatalookup: mythmetadatalookup[10609]: I MetadataDownload metadatagrabber.cpp:425 (RunGrabber) Running Grabber: /usr/share/mythtv/metadata/Television/ttvdb.py -l de -a CH -N 79689 10
Nov 23 16:24:06 newmyth mythmetadatalookup: mythmetadatalookup[10609]: I MetadataDownload metadatagrabber.cpp:425 (RunGrabber) Running Grabber: /usr/share/mythtv/metadata/Television/ttvdb.py -l de -a CH -D 79689 3 10
Nov 23 16:24:08 newmyth mythmetadatalookup: mythmetadatalookup[10609]: I MetadataDownload metadatacommon.cpp:1142 (ParseMetadataItem) Result Found, Season 3 Episode 10
Nov 23 16:24:08 newmyth mythmetadatalookup: mythmetadatalookup[10609]: I MetadataDownload metadatagrabber.cpp:425 (RunGrabber) Running Grabber: /usr/share/mythtv/metadata/Television/ttvdb.py -l de -a CH -D 79689
Nov 23 16:24:21 newmyth mythmetadatalookup: mythmetadatalookup[10609]: I MetadataDownload metadatadownload.cpp:220 (run) Returning Metadata Results: The Killing 3 10
In this case 3 commands are executed:

/usr/share/mythtv/metadata/Television/ttvdb.py -l de -a CH -N 79689 10
/usr/share/mythtv/metadata/Television/ttvdb.py -l de -a CH -D 79689 3 10
/usr/share/mythtv/metadata/Television/ttvdb.py -l de -a CH -D 79689

Executed on the command line the first one returns nothing.

Executed on the command line the second one returns this xml text where a coverart element is included:

Code: Select all

mythbuntu@newmyth:~/tmp$ /usr/share/mythtv/metadata/Television/ttvdb.py -l de -a CH -D 79689 3 10
<?xml version='1.0' encoding='UTF-8'?>
<metadata>
  <item>
    <title>Kommissarin Lund</title>
    <subtitle>Das Verbrechen III - Teil 10</subtitle>
    <description>Sarah und Borch versuchen den Täter mit allem Geschick dazu zu bewegen, den Aufenthaltsort von Emilie zu nennen. Der Täter bestätigt, dass sie noch lebt. Er ist nun bereit, mit ihnen, Robert Zeuthen und Niels Reinhardt am Wahltag nach Norwegen zu fahren, um ihnen das Versteck von Emilie preiszugeben: einen Container, in dem die Luft langsam knapp wird. Doch als sie vor Ort eintreffen, fehlt von Emilie jede Spur. Es kommt zum Showdown zwischen dem Täter, Robert, Niels und Borch, bei dem der Täter erschossen wird. Mit letzter Kraft gibt er Emilies Aufenthaltsort bekannt.</description>
    <season>3</season>
    <episode>10</episode>
    <certifications>
      <certification locale="us" name="TV-14"/>
    </certifications>
    <categories>
      <category type="genre" name="Crime"/>
      <category type="genre" name="Drama"/>
      <category type="genre" name="Suspense"/>
      <category type="genre" name="Thriller"/>
    </categories>
    <studios>
      <studio name="DR1"/>
    </studios>
    <runtime>60</runtime>
    <inetref>79689</inetref>
    <collectionref>79689</collectionref>
    <imdb/>
    <language>de</language>
    <year>2012</year>
    <releasedate>2012-11-25</releasedate>
    <people>
      <person job="Actor" name="Anders W. Berthelsen" character="Robert Zeuthen" url="http://thetvdb.com/banners/actors/326729.jpg" thumb="http://thetvdb.com/banners/actors/326729.jpg"/>
      <person job="Actor" name="Sofie Gråbøl" character="Sarah Lund" url="http://thetvdb.com/banners/actors/71947.jpg" thumb="http://thetvdb.com/banners/actors/71947.jpg"/>
      <person job="Actor" name="Stine Prætorius" character="Louise Raben" url="http://thetvdb.com/banners/actors/326743.jpg" thumb="http://thetvdb.com/banners/actors/326743.jpg"/>
      <person job="Actor" name="Ken Vedsegaard" character="Jens Peter Raben" url="http://thetvdb.com/banners/actors/326734.jpg" thumb="http://thetvdb.com/banners/actors/326734.jpg"/>
      <person job="Actor" name="Marie Askehave" character="Rie Skovgaard" url="http://thetvdb.com/banners/actors/71952.jpg" thumb="http://thetvdb.com/banners/actors/71952.jpg"/>
      <person job="Actor" name="Olaf Heine Johannessen" character="Kristian Kamper" url="http://thetvdb.com/banners/actors/326739.jpg" thumb="http://thetvdb.com/banners/actors/326739.jpg"/>
      <person job="Actor" name="Charlotte Guldberg" character="Karina Munk Jørgensen" url="http://thetvdb.com/banners/actors/326730.jpg" thumb="http://thetvdb.com/banners/actors/326730.jpg"/>
      <person job="Actor" name="Lars Mikkelsen" character="Troels Hartmann" url="http://thetvdb.com/banners/actors/71948.jpg" thumb="http://thetvdb.com/banners/actors/71948.jpg"/>
      <person job="Actor" name="Trine Pallesen" character="Karen Nebel" url="http://thetvdb.com/banners/actors/326744.jpg" thumb="http://thetvdb.com/banners/actors/326744.jpg"/>
      <person job="Actor" name="Mikael Birkkjær" character="Ulrik Strange" url="http://thetvdb.com/banners/actors/326735.jpg" thumb="http://thetvdb.com/banners/actors/326735.jpg"/>
      <person job="Actor" name="Bent Mejding" character="Poul Bremer" url="http://thetvdb.com/banners/actors/71953.jpg" thumb="http://thetvdb.com/banners/actors/71953.jpg"/>
      <person job="Actor" name="Preben Kristensen" character="Carsten Plough" url="http://thetvdb.com/banners/actors/326740.jpg" thumb="http://thetvdb.com/banners/actors/326740.jpg"/>
      <person job="Actor" name="Flemming Enevold" character="Torsten Jarnvig" url="http://thetvdb.com/banners/actors/326731.jpg" thumb="http://thetvdb.com/banners/actors/326731.jpg"/>
      <person job="Actor" name="Bjarke Henriksen" character="Theis Birk Larsen" url="http://thetvdb.com/banners/actors/71949.jpg" thumb="http://thetvdb.com/banners/actors/71949.jpg"/>
      <person job="Actor" name="Morten Suurballe" character="Lennart Brix" url="http://thetvdb.com/banners/actors/326736.jpg" thumb="http://thetvdb.com/banners/actors/326736.jpg"/>
      <person job="Actor" name="Nicolaj Kopernikus" character="Vagn" url="http://thetvdb.com/banners/actors/71954.jpg" thumb="http://thetvdb.com/banners/actors/71954.jpg"/>
      <person job="Actor" name="Sigurd Holmen Le Dous" character="Asbjørn Juncker" url="http://thetvdb.com/banners/actors/326741.jpg" thumb="http://thetvdb.com/banners/actors/326741.jpg"/>
      <person job="Actor" name="Helle Fagralid" character="Maja Zeuthen" url="http://thetvdb.com/banners/actors/326732.jpg" thumb="http://thetvdb.com/banners/actors/326732.jpg"/>
      <person job="Actor" name="Ann Eleonora Jørgensen" character="Pernille Birk Larsen" url="http://thetvdb.com/banners/actors/71950.jpg" thumb="http://thetvdb.com/banners/actors/71950.jpg"/>
      <person job="Actor" name="Nicolas Bro" character="Thomas Buch" url="http://thetvdb.com/banners/actors/326737.jpg" thumb="http://thetvdb.com/banners/actors/326737.jpg"/>
      <person job="Actor" name="Michael Moritzen" character="Morten Weber" url="http://thetvdb.com/banners/actors/71955.jpg" thumb="http://thetvdb.com/banners/actors/71955.jpg"/>
      <person job="Actor" name="Stig Hoffmeyer" character="Niels Reinholdt" url="http://thetvdb.com/banners/actors/326742.jpg" thumb="http://thetvdb.com/banners/actors/326742.jpg"/>
      <person job="Actor" name="Jonatan Spang" character="Kristoffer Kamper" url="http://thetvdb.com/banners/actors/326733.jpg" thumb="http://thetvdb.com/banners/actors/326733.jpg"/>
      <person job="Actor" name="Søren Malling" character="Jan Meyer" url="http://thetvdb.com/banners/actors/71951.jpg" thumb="http://thetvdb.com/banners/actors/71951.jpg"/>
      <person job="Actor" name="Nikolaj Lie Kaas" character="Mathias Borch" url="http://thetvdb.com/banners/actors/326738.jpg" thumb="http://thetvdb.com/banners/actors/326738.jpg"/>
      <person job="Director" name="Hans Fabian Wullenweber"/>
      <person job="Author" name="Michael W. Horsten"/>
      <person job="Author" name="Søren Sveistrup"/>
    </people>
    <images>
      <image type="screenshot" url="http://thetvdb.com/banners/episodes/79689/4440411.jpg" thumb="http://thetvdb.com/banners/_cache/episodes/79689/4440411.jpg"/>
      <image type="coverart" url="http://www.thetvdb.com/banners/seasons/79689-3-5.jpg" thumb="http://www.thetvdb.com/banners/seasons/79689-3-5_t.jpg" width="680" height="1000"/>
      <image type="fanart" url="http://www.thetvdb.com/banners/fanart/original/79689-2.jpg" thumb="http://www.thetvdb.com/banners/fanart/original/79689-2_t.jpg" width="1920" height="1080"/>
      <image type="fanart" url="http://www.thetvdb.com/banners/fanart/original/79689-5.jpg" thumb="http://www.thetvdb.com/banners/fanart/original/79689-5_t.jpg" width="1920" height="1080"/>
      <image type="fanart" url="http://www.thetvdb.com/banners/fanart/original/79689-4.jpg" thumb="http://www.thetvdb.com/banners/fanart/original/79689-4_t.jpg" width="1920" height="1080"/>
    </images>
  </item>
</metadata>
Executed on the command line the third one returns an huge plain text with info.

An other case is this:

Ein Fall für zwei - Glamourgirl season 26 episode 4

Code: Select all

Nov 23 16:37:08 newmyth mythmetadatalookup: mythmetadatalookup[10901]: I CoreContext mythcorecontext.cpp:471 (ConnectCommandSocket) MythCoreContext::ConnectCommandSocket(): Connecting to backend server: 192.168.1.9:6543 (try 1 of 1)
Nov 23 16:37:08 newmyth mythmetadatalookup: mythmetadatalookup[10901]: I CoreContext mythcorecontext.cpp:1694 (CheckProtoVersion) MythCoreContext::CheckProtoVersion(): Using protocol version 91 BuzzOff
Nov 23 16:37:08 newmyth mythmetadatalookup: mythmetadatalookup[10901]: I MetadataDownload metadatagrabber.cpp:425 (RunGrabber) Running Grabber: /usr/share/mythtv/metadata/Television/ttvdb.py -l de -a CH -N 89901 Glamourgirl
Nov 23 16:37:14 newmyth mythmetadatalookup: mythmetadatalookup[10901]: I MetadataDownload metadatacommon.cpp:1142 (ParseMetadataItem) Result Found, Season 36 Episode 4
Nov 23 16:37:14 newmyth mythmetadatalookup: mythmetadatalookup[10901]: I MetadataDownload metadatadownload.cpp:220 (run) Returning Metadata Results: Ein Fall für zwei 36 4
In this case only one command is executed (differently from the case of "Kommissarin Lund" above):

/usr/share/mythtv/metadata/Television/ttvdb.py -l de -a CH -N 89901 Glamourgirl

Executed on the command line the command returns this xml text where a coverart element is NOT included:

Code: Select all

mythbuntu@newmyth:~/tmp$ /usr/share/mythtv/metadata/Television/ttvdb.py -l de -a CH -N 89901 Glamourgirl
<?xml version='1.0' encoding='UTF-8'?>
<metadata>
  <item>
    <title>Ein Fall für zwei</title>
    <subtitle>Glamourgirl</subtitle>
    <description>Das attraktive It-Girl Geraldine Fink wird beschuldigt, ihren Manager Markus Kleinert erstochen zu haben. Benni gelingt es, seine Mandantin vor der U-Haft zu bewahren. Während er die Verteidigung übernimmt, darf Leo als Personenschützer für die Prominente einspringen. Keine leichte Aufgabe, denn Geraldine hat den Ernst der Lage nicht verstanden und hält sich an keine Absprache. Benni sieht sich mit Doris Eisner konfrontiert, der Agentin und Managerin von Geraldine. Sie nimmt den Strafverteidiger nicht ernst und spricht ihm jegliche Kompetenz ab. Derweil steht Leo vor ganz anderen Problemen, denn Geraldine ist ausgerückt. Er findet sie wild tanzend in einem Club, in dem sie auch von einem jungen Mann bedroht wird. Bald stoßen Benni und Leo auf Julian Riedel, einen Start-up-Unternehmer, der eine Verbindung zu dem Mordopfer aufweist. Aber nicht nur das: Julian Riedel führt Leo zu Georg Zeitz, einem reichen Unternehmer. Bei einem Undercover-Einsatz in dessen Villa findet Leo ein Porträt von Geraldine. Was steckt dahinter? Geraldine betont, nichts mit diesen beiden Männern zu tun zu haben. Für Staatsanwältin Claudia Strauss ist Geraldine nach wie vor die einzige Tatverdächtige. Als sie Benni zu sich bittet, offenbart sie dem Strafverteidiger, dass seine Mandantin gegen die gerichtlichen Auflagen verstoßen hat und nun per Haftbefehl gesucht wird. Leo und Benni scheint die Zeit davonzulaufen. Nach und nach kommen sie jedoch hinter das tragische Schicksal von Geraldines Leben. Als sie plötzlich wieder verschwindet, überschlagen sich die Ereignisse. Die beiden Freunde können sie schließlich aufspüren. Doch Geraldine befindet sich bereits in höchster Gefahr. (Text: ZDF)</description>
    <season>36</season>
    <episode>4</episode>
    <categories>
      <category type="genre" name="Action"/>
      <category type="genre" name="Crime"/>
    </categories>
    <studios>
      <studio name="ZDF"/>
    </studios>
    <runtime>60</runtime>
    <inetref>89901</inetref>
    <collectionref>89901</collectionref>
    <imdb>0081860</imdb>
    <language>de</language>
    <year>2016</year>
    <releasedate>2016-11-11</releasedate>
    <people>
      <person job="Actor" name="Claus Theo Gärtner" character="Josef Matula" url="http://thetvdb.com/banners/actors/284856.jpg" thumb="http://thetvdb.com/banners/actors/284856.jpg"/>
      <person job="Actor" name="Günter Strack" character="Dr. Renz" url="http://thetvdb.com/banners/actors/284857.jpg" thumb="http://thetvdb.com/banners/actors/284857.jpg"/>
      <person job="Actor" name="Rainer Hunold" character="Dr. Franck" url="http://thetvdb.com/banners/actors/284863.jpg" thumb="http://thetvdb.com/banners/actors/284863.jpg"/>
      <person job="Actor" name="Mathias Hermann" character="Dr. Voss" url="http://thetvdb.com/banners/actors/284859.jpg" thumb="http://thetvdb.com/banners/actors/284859.jpg"/>
      <person job="Actor" name="Paul Frielinghaus" character="Dr. Lessing" url="http://thetvdb.com/banners/actors/284862.jpg" thumb="http://thetvdb.com/banners/actors/284862.jpg"/>
      <person job="Actor" name="Caroline Grothgar" character="Kristin Wernstedt" url="http://thetvdb.com/banners/actors/297128.jpg" thumb="http://thetvdb.com/banners/actors/297128.jpg"/>
      <person job="Actor" name="Renate Kohn" character="Helga" url="http://thetvdb.com/banners/" thumb="http://thetvdb.com/banners/"/>
      <person job="Actor" name="Antoine Monot, Jr." character="Benjamin „Benni“ Hornberg" url="http://thetvdb.com/banners/" thumb="http://thetvdb.com/banners/"/>
      <person job="Actor" name="Wanna Mues" character="Leo Oswald" url="http://thetvdb.com/banners/" thumb="http://thetvdb.com/banners/"/>
      <person job="Actor" name="Christina Hecke" character="Conni Leinfelder" url="http://thetvdb.com/banners/" thumb="http://thetvdb.com/banners/"/>
      <person job="Actor" name="Bettina Zimmermann" character="Claudia Strauss" url="http://thetvdb.com/banners/" thumb="http://thetvdb.com/banners/"/>
    </people>
    <images>
      <image type="screenshot" url="http://thetvdb.com/banners/episodes/89901/5801828.jpg" thumb="http://thetvdb.com/banners/_cache/episodes/89901/5801828.jpg"/>
      <image type="fanart" url="http://www.thetvdb.com/banners/fanart/original/89901-2.jpg" thumb="http://www.thetvdb.com/banners/fanart/original/89901-2_t.jpg" width="1920" height="1080"/>
      <image type="fanart" url="http://www.thetvdb.com/banners/fanart/original/89901-1.jpg" thumb="http://www.thetvdb.com/banners/fanart/original/89901-1_t.jpg" width="1920" height="1080"/>
      <image type="fanart" url="http://www.thetvdb.com/banners/fanart/original/89901-4.jpg" thumb="http://www.thetvdb.com/banners/fanart/original/89901-4_t.jpg" width="1920" height="1080"/>
      <image type="fanart" url="http://www.thetvdb.com/banners/fanart/original/89901-5.jpg" thumb="http://www.thetvdb.com/banners/fanart/original/89901-5_t.jpg" width="1920" height="1080"/>
      <image type="fanart" url="http://www.thetvdb.com/banners/fanart/original/89901-6.jpg" thumb="http://www.thetvdb.com/banners/fanart/original/89901-6_t.jpg" width="1920" height="1080"/>
      <image type="fanart" url="http://www.thetvdb.com/banners/fanart/original/89901-7.jpg" thumb="http://www.thetvdb.com/banners/fanart/original/89901-7_t.jpg" width="1920" height="1080"/>
      <image type="fanart" url="http://www.thetvdb.com/banners/fanart/original/89901-3.jpg" thumb="http://www.thetvdb.com/banners/fanart/original/89901-3_t.jpg" width="1920" height="1080"/>
    </images>
  </item>
</metadata>
Trying an other variant, NOT INCLUDED IN THE LOGFILE, like this, an xml text containing a coverart is generated:

/usr/share/mythtv/metadata/Television/ttvdb.py -l de -a CH -C 89901

Code: Select all

mythbuntu@newmyth:~/tmp$ /usr/share/mythtv/metadata/Television/ttvdb.py -l de -a CH -C 89901
<?xml version='1.0' encoding='UTF-8'?>
<metadata>
  <item>
    <language>de</language>
    <title>Ein Fall für zwei</title>
    <network>ZDF</network>
    <airday>Friday</airday>
    <airtime>8:15 PM</airtime>
    <description>Der Streifenbeamte Josef Matula von der Frankfurter Polizei verliebt sich nichtsahnend in die Schwester eines Hauptverdächtigen eines spektakulären Raubüberfalls. Der Staranwalt Dr. Renz sorgt schließlich dafür, daß Matula vom Dienst suspendiert wird. Matula kann schließlich seine Unschuld beweisen. Dr. Renz sieht seinen Fehler ein und bietet Matula an, für ihn als Privatdetektiv zu arbeiten. Matulas Fälle reichen von Ehebruch, Betrug, Wirtschaftskriminalität, Erpressung, Entführung bis hin zu Morddelikten. Ein ums andere Mal gerät der Privatermittler in brenzlige Situationen. Nach anfänglichen Startschwierigkeiten entwickelte sich “Ein Fall für zwei” zu einem echten Publikumsrenner und zu einer der langlebigsten Krimiserien des ZDF. Im Laufe der Jahre veränderte sich das Gesicht des Anwalts (Dr. Renz – Günter Strack; Dr. Franck – Rainer Hunold; Dr. Voss Mathias Hermann; Dr. Lessing – Paul Frielinghaus), doch die Figur des Josef Matula, Dreh- und Angelpunkt der Serie, wird von der ersten Folge an von Claus Theo Gärtner geprägt. Ab Season 32 spielen Antoine Monot Jr. und Wanja Mues das außergewöhnliche Ermittlerduo in der Neuauflage des erfolgreichen Krimiklassikers „Ein Fall für zwei“ – zwei vielseitig begabte Schauspieler, die zukünftig mit Gewitztheit, Charme und der nötigen Prise Lakonie als Anwalt und Detektiv dem Verbrechen in Frankfurt/Main auf ihre Art das Handwerk legen. Der „Fall für zwei“ ist zurück. Und bietet mit diesen beiden Protagonisten und ihrer gegensätzlichen Sichtweise auf das Leben, mit fesselnden Krimiplots und einer reizvollen Inszenierung der Mainmetropole spannende und qualitätsvolle Krimi-Unterhaltung.</description>
    <categories>
      <category type="genre" name="Action"/>
      <category type="genre" name="Crime"/>
    </categories>
    <studios>
      <studio name="ZDF"/>
    </studios>
    <runtime>60</runtime>
    <inetref>89901</inetref>
    <imdb>0081860</imdb>
    <userrating>8.1</userrating>
    <ratingcount>269</ratingcount>
    <year>1981</year>
    <releasedate>1981-09-11</releasedate>
    <lastupdated>Sun, 22 Nov 2020 18:28:47 GMT</lastupdated>
    <status>Continuing</status>
    <images>
      <image type="coverart" url="http://thetvdb.com/banners/posters/89901-2.jpg" thumb="http://thetvdb.com/banners/_cache/posters/89901-2.jpg"/>
      <image type="fanart" url="http://thetvdb.com/banners/fanart/original/89901-2.jpg" thumb="http://thetvdb.com/banners/_cache/fanart/original/89901-2.jpg"/>
      <image type="banner" url="http://thetvdb.com/banners/text/89901.jpg" thumb="http://thetvdb.com/banners/_cache/text/89901.jpg"/>
    </images>
  </item>
</metadata>
A third case is this:

Hawaii Five-0 - Beweisstücke season 10 episode 18

In this case only one command is executed (differently from the case of "Kommissarin Lund" above, but like the case "Ein Fall für zwei"):

/usr/share/mythtv/metadata/Television/ttvdb.py -l de -a CH -N 164541 Beweisstücke

Executed on the command line the command returns this xml text where a coverart element is NOT included:

Code: Select all

mythbuntu@newmyth:~/tmp$ /usr/share/mythtv/metadata/Television/ttvdb.py -l de -a CH -N 164541 Beweisstücke
<?xml version='1.0' encoding='UTF-8'?>
<metadata>
  <item>
    <title>Hawaii Five-0</title>
    <subtitle>Beweisstücke</subtitle>
    <description>Der Mord an einem Mitglied der Küstenwache führt zu einer beunruhigenden Theorie: Geben sich Piraten als Küstenwache aus um Schiffe kapern zu können? Adam hat endlich einen schlagkräftigen Beweis in der Hand um die Yakuza in die Knie zwingen zu können. Noelani hofft auf die Hilfe von Quinn, als sie vermutet, dass hinter dem vermeintlichen Herzinfarkt ihres Onkels ein Mordanschlag stecken könnte.</description>
    <season>10</season>
    <episode>18</episode>
    <certifications>
      <certification locale="us" name="TV-14"/>
    </certifications>
    <categories>
      <category type="genre" name="Crime"/>
    </categories>
    <studios>
      <studio name="CBS"/>
    </studios>
    <runtime>45</runtime>
    <inetref>164541</inetref>
    <collectionref>164541</collectionref>
    <tmsref>EP01280063</tmsref>
    <imdb/>
    <language>de</language>
    <year>2020</year>
    <releasedate>2020-02-28</releasedate>
    <people>
      <person job="Actor" name="Alex O'Loughlin" character="Steve McGarrett" url="http://thetvdb.com/banners/actors/178051.jpg" thumb="http://thetvdb.com/banners/actors/178051.jpg"/>
      <person job="Actor" name="Scott Caan" character="Danny &quot;Danno&quot; Williams" url="http://thetvdb.com/banners/actors/178081.jpg" thumb="http://thetvdb.com/banners/actors/178081.jpg"/>
      <person job="Actor" name="Daniel Dae Kim" character="Chin Ho Kelly" url="http://thetvdb.com/banners/actors/178101.jpg" thumb="http://thetvdb.com/banners/actors/178101.jpg"/>
      <person job="Actor" name="Grace Park" character="Kono Kalakaua" url="http://thetvdb.com/banners/actors/178111.jpg" thumb="http://thetvdb.com/banners/actors/178111.jpg"/>
      <person job="Actor" name="Masi Oka" character="Max Bergman" url="http://thetvdb.com/banners/actors/292055.jpg" thumb="http://thetvdb.com/banners/actors/292055.jpg"/>
      <person job="Actor" name="Taylor Wily" character="Kamekona" url="http://thetvdb.com/banners/actors/292057.jpg" thumb="http://thetvdb.com/banners/actors/292057.jpg"/>
      <person job="Actor" name="Chi McBride" character="Lou Grover" url="http://thetvdb.com/banners/actors/321794.jpg" thumb="http://thetvdb.com/banners/actors/321794.jpg"/>
      <person job="Actor" name="Jorge Garcia" character="Jerry Ortega" url="http://thetvdb.com/banners/actors/332913.jpg" thumb="http://thetvdb.com/banners/actors/332913.jpg"/>
      <person job="Actor" name="Beulah Koale" character="Junior Reigns" url="http://thetvdb.com/banners/actors/488032.jpg" thumb="http://thetvdb.com/banners/actors/488032.jpg"/>
      <person job="Actor" name="Dennis Chun" character="Duke Lukela" url="http://thetvdb.com/banners/actors/489769.jpg" thumb="http://thetvdb.com/banners/actors/489769.jpg"/>
      <person job="Actor" name="Ian Anthony Dale" character="Adam Noshimuri" url="http://thetvdb.com/banners/actors/489770.jpg" thumb="http://thetvdb.com/banners/actors/489770.jpg"/>
      <person job="Actor" name="Kimee Balmilero" character="Noelani Cunha" url="http://thetvdb.com/banners/actors/489771.jpg" thumb="http://thetvdb.com/banners/actors/489771.jpg"/>
      <person job="Actor" name="Meaghan Rath" character="Tani Rey" url="http://thetvdb.com/banners/actors/489772.jpg" thumb="http://thetvdb.com/banners/actors/489772.jpg"/>
      <person job="Guest Star" name="Donavon Frankenreiter"/>
      <person job="Guest Star" name="Roy M. Balmilero"/>
      <person job="Guest Star" name="Zachary Knighton"/>
      <person job="Director" name="Tate Donovan"/>
      <person job="Author" name="Bisanne Masoud"/>
      <person job="Author" name="Talia Gonzalez"/>
      <person job="Author" name="Zoe Robyn"/>
    </people>
    <images>
      <image type="screenshot" url="http://thetvdb.com/banners/series/164541/episodes/62107182.jpg" thumb="http://thetvdb.com/banners/_cache/series/164541/episodes/62107182.jpg"/>
      <image type="fanart" url="http://www.thetvdb.com/banners/fanart/original/164541-1.jpg" thumb="http://www.thetvdb.com/banners/fanart/original/164541-1_t.jpg" width="1920" height="1080"/>
      <image type="fanart" url="http://www.thetvdb.com/banners/fanart/original/164541-5.jpg" thumb="http://www.thetvdb.com/banners/fanart/original/164541-5_t.jpg" width="1920" height="1080"/>
      <image type="fanart" url="http://www.thetvdb.com/banners/fanart/original/164541-16.jpg" thumb="http://www.thetvdb.com/banners/fanart/original/164541-16_t.jpg" width="1920" height="1080"/>
      <image type="fanart" url="http://www.thetvdb.com/banners/fanart/original/164541-12.jpg" thumb="http://www.thetvdb.com/banners/fanart/original/164541-12_t.jpg" width="1920" height="1080"/>
      <image type="fanart" url="http://www.thetvdb.com/banners/series/164541/backgrounds/5e87b82fe5d2d.jpg" thumb="http://www.thetvdb.com/banners/series/164541/backgrounds/5e87b82fe5d2d_t.jpg" width="1920" height="1080"/>
    </images>
  </item>
</metadata>
Trying an other variant, NOT INCLUDED IN THE LOGFILE, like this, an xml text containing a coverart is generated:

/usr/share/mythtv/metadata/Television/ttvdb.py -l de -a CH -C 164541

Code: Select all

mythbuntu@newmyth:~/tmp$ /usr/share/mythtv/metadata/Television/ttvdb.py -l de -a CH -C 164541
<?xml version='1.0' encoding='UTF-8'?>
<metadata>
  <item>
    <language>de</language>
    <title>Hawaii Five-0</title>
    <network>CBS</network>
    <airday>Friday</airday>
    <airtime>9:00 PM</airtime>
    <description>Im Mittelpunkt der Serie steht der hochdekorierte ehemalige Marineoffizier Steve McGarrett, der von der Gouverneurin von Hawaii mit der Bildung einer Sondereinheit zur Bekämpfung des organisierten Verbrechens beauftragt wird. Er rekrutiert den ehemaligen Polizisten Chin Ho Kelly, der nach ungerechtfertigten Bestechungsvorwürfen die Polizei verlassen musste, den Polizisten Danny „Danno“ Williams, der seiner geschiedenen Frau und deren Tochter von New Jersey nach Hawaii gefolgt ist, und die junge Polizistin Kona „Kono“ Kalakaua, die gerade ihre Ausbildung beendet hat und die Cousine von Chin ist. Sie nennen sich Five-0 und arbeiten gemeinsam an einer Vielzahl unterschiedlicher Kriminalfälle.</description>
    <certifications>
      <certification locale="us" name="TV-14"/>
    </certifications>
    <categories>
      <category type="genre" name="Crime"/>
    </categories>
    <studios>
      <studio name="CBS"/>
    </studios>
    <runtime>45</runtime>
    <inetref>164541</inetref>
    <imdb>1600194</imdb>
    <userrating>8.1</userrating>
    <ratingcount>4954</ratingcount>
    <year>2010</year>
    <releasedate>2010-09-20</releasedate>
    <lastupdated>Sat, 14 Nov 2020 13:59:17 GMT</lastupdated>
    <status>Ended</status>
    <images>
      <image type="coverart" url="http://thetvdb.com/banners/posters/164541-1.jpg" thumb="http://thetvdb.com/banners/_cache/posters/164541-1.jpg"/>
      <image type="fanart" url="http://thetvdb.com/banners/fanart/original/164541-1.jpg" thumb="http://thetvdb.com/banners/_cache/fanart/original/164541-1.jpg"/>
      <image type="banner" url="http://thetvdb.com/banners/graphical/164541-g3.jpg" thumb="http://thetvdb.com/banners/_cache/graphical/164541-g3.jpg"/>
    </images>
  </item>
</metadata>
CONCLUSION:

It's not clear following which criteria the mythmetadatalookup program for tv series decides how many times and using which parameters ttvdb.py has to be called !!!
Sometime one time, other times three times.
The results are also different. In the first case the coverart is returned with the used commands, in the other two cases no coverart is included.

It seems the calling the variant with the -C parameter like below returns always an xml text containing the coverart.

/usr/share/mythtv/metadata/Television/ttvdb.py -l de -a CH -C <inetref>

Maybe a suggestion could be to call also this command variant inside the mythmetadatalookup program.

What do you think?

User avatar
dnalorernst
Developer
Posts: 51
Joined: Mon Feb 17, 2020 8:03 pm
Austria

Re: Strange behaviour looking up for metadata

Post by dnalorernst » Mon Nov 23, 2020 9:17 pm

Ad scenario 1, wrong coverfile:
I spoke to soon. Looking at the locale setting seems to be a red herring.
The artwork is named in a generic way, like "tmdb3.py_138697_coverart.jpg" and the file is located in the dedicated storage group.
Once the file is downloaded, it will not get updated on a second run of metadatalookup (checked in the MythTV sources).
Otherwise, you should have seen something like "Metadata Image Download: http.... -> myth://Coverart@<host>/tmdb3.py_138697_coverart.jp" in the logs.
Therefore, we need to delete the wrong coverart file as well from the storage group *and* the entry in the recordedartwork table of mythconverg.

Note:
Only when setting up a new recording rule, the frontend lets you select the artwork in an interactive manner and overwrite existing ones.
(see https://www.mythtv.org/wiki/Enhancing_R ... ata_Lookup).
There is really some functionality missing, to select a different artwork for recordings, once the recording was done and the recording rule was deleted (by the housekeeper task).

Please try the the script "del_artwork_v2.py" as described previously.
This version triggers the metadata lookup job automatically, so there no need to do this by hand.
One could use this script as a User Job as well.

Regarding to your last post (scenario 2), please explain what is already in the database, provided by the xmltv grabber:
(title), subtitle, season, episode, inetref.
Attachments
del_artwork_v2.zip
(1.18 KiB) Downloaded 6 times

enrico123
Junior
Posts: 34
Joined: Mon Sep 22, 2014 1:36 pm
Switzerland

Re: Strange behaviour looking up for metadata

Post by enrico123 » Tue Nov 24, 2020 9:23 am

Please try the the script "del_artwork_v2.py" as described previously.
This version triggers the metadata lookup job automatically, so there no need to do this by hand.
I've executed your script del_artwork_v2.py and now the coverart in the right language is displayed!
Many thanks! :)

Here is the log:

Code: Select all

Nov 24 09:47:22 newmyth mythmetadatalookup: mythmetadatalookup[19037]: I MetadataDownload metadatagrabber.cpp:425 (RunGrabber) Running Grabber: /usr/share/mythtv/metadata/Movie/tmdb3.py -l de -a CH -D 138697
Nov 24 09:47:24 newmyth mythmetadatalookup: mythmetadatalookup[19037]: I MetadataDownload metadatacommon.cpp:1142 (ParseMetadataItem) Result Found, Season 0 Episode 0
Nov 24 09:47:24 newmyth mythmetadatalookup: mythmetadatalookup[19037]: I MetadataDownload metadatadownload.cpp:220 (run) Returning Metadata Results: Don Jon 0 0
Nov 24 09:47:25 newmyth mythmetadatalookup: mythmetadatalookup[19037]: I MetadataImageDownload metadataimagedownload.cpp:238 (run) Metadata Image Download: http://image.tmdb.org/t/p/original/csNpbK6JpUHoRcByTBI1A9b4Yug.jpg -> myth://Coverart@newmyth/tmdb3.py_138697_coverart.jpg
Nov 24 09:47:27 newmyth mythmetadatalookup: mythmetadatalookup[19037]: N CoreContext main.cpp:170 (main) MythMetadataLookup run complete.
One could use this script as a User Job as well.
I think now I have to execute manually the same steps for all the movies with the coverarts in the wrong language, isn't it?

Or can I use the script as User Job and execute it automatically for all the existing movies?
How have to be passed the needed parameters in this case?
Regarding to your last post (scenario 2), please explain what is already in the database, provided by the xmltv grabber:
(title), subtitle, season, episode, inetref.
Kommissarin Lund - The Killing season 3 episode 10

Code: Select all

mysql> select title,subtitle,season,episode,inetref from recorded where title="The Killing" order by season,episode asc;
+-------------+----------+--------+---------+----------------+
| title       | subtitle | season | episode | inetref        |
+-------------+----------+--------+---------+----------------+
| The Killing | 1        |      1 |       1 | ttvdb.py_79689 |
| The Killing | 2        |      1 |       2 | ttvdb.py_79689 |
| The Killing | 3        |      1 |       3 | ttvdb.py_79689 |
| The Killing | 4        |      1 |       4 | ttvdb.py_79689 |
| The Killing | 5        |      1 |       5 | ttvdb.py_79689 |
| The Killing | 6        |      1 |       6 | ttvdb.py_79689 |
| The Killing | 7        |      1 |       7 | ttvdb.py_79689 |
| The Killing | 8        |      1 |       8 | ttvdb.py_79689 |
| The Killing | 9        |      1 |       9 | ttvdb.py_79689 |
| The Killing | 10       |      1 |      10 | ttvdb.py_79689 |
| The Killing | 11       |      1 |      11 | ttvdb.py_79689 |
| The Killing | 12       |      1 |      12 | ttvdb.py_79689 |
| The Killing | 13       |      1 |      13 | ttvdb.py_79689 |
| The Killing | 14       |      1 |      14 | ttvdb.py_79689 |
| The Killing | 15       |      1 |      15 | ttvdb.py_79689 |
| The Killing | 16       |      1 |      16 | ttvdb.py_79689 |
| The Killing | 17       |      1 |      17 | ttvdb.py_79689 |
| The Killing | 18       |      1 |      18 | ttvdb.py_79689 |
| The Killing | 19       |      1 |      19 | ttvdb.py_79689 |
| The Killing | 20       |      1 |      20 | ttvdb.py_79689 |
| The Killing | 1        |      2 |       1 | ttvdb.py_79689 |
| The Killing | 2        |      2 |       2 | ttvdb.py_79689 |
| The Killing | 3        |      2 |       3 | ttvdb.py_79689 |
| The Killing | 4        |      2 |       4 | ttvdb.py_79689 |
| The Killing | 5        |      2 |       5 | ttvdb.py_79689 |
| The Killing | 6        |      2 |       6 | ttvdb.py_79689 |
| The Killing | 7        |      2 |       7 | ttvdb.py_79689 |
| The Killing | 8        |      2 |       8 | ttvdb.py_79689 |
| The Killing | 9        |      2 |       9 | ttvdb.py_79689 |
| The Killing | 10       |      2 |      10 | ttvdb.py_79689 |
| The Killing | 1        |      3 |       1 | ttvdb.py_79689 |
| The Killing | 2        |      3 |       2 | ttvdb.py_79689 |
| The Killing | 3        |      3 |       3 | ttvdb.py_79689 |
| The Killing | 4        |      3 |       4 | ttvdb.py_79689 |
| The Killing | 5        |      3 |       5 | ttvdb.py_79689 |
| The Killing | 6        |      3 |       6 | ttvdb.py_79689 |
| The Killing | 7        |      3 |       7 | ttvdb.py_79689 |
| The Killing | 8        |      3 |       8 | ttvdb.py_79689 |
| The Killing | 9        |      3 |       9 | ttvdb.py_79689 |
| The Killing | 10       |      3 |      10 | ttvdb.py_79689 |
+-------------+----------+--------+---------+----------------+
40 rows in set (0.01 sec)
Ein Fall für zwei - Glamourgirl season 36 episode 4

Code: Select all

mysql> select title,subtitle,season,episode,inetref from recorded where title="Ein Fall für zwei" order by season,episode asc;
+--------------------+-----------------------+--------+---------+----------------+
| title              | subtitle              | season | episode | inetref        |
+--------------------+-----------------------+--------+---------+----------------+
| Ein Fall für zwei  | Glamourgirl           |     36 |       4 | ttvdb.py_89901 |
| Ein Fall für zwei  | Im Schatten der Venus |     39 |       1 | ttvdb.py_89901 |
| Ein Fall für zwei  | Freigänger            |     39 |       4 | ttvdb.py_89901 |
+--------------------+-----------------------+--------+---------+----------------+
3 rows in set (0.00 sec)
Hawaii Five-0 - Beweisstücke season 10 episode 18

Code: Select all

mysql> select title,subtitle,season,episode,inetref from recorded where title="Hawaii Five-0" order by season,episode asc;
+---------------+---------------------------+--------+---------+-----------------+
| title         | subtitle                  | season | episode | inetref         |
+---------------+---------------------------+--------+---------+-----------------+
| Hawaii Five-0 | Sex, Lügen und Video      |      2 |      13 | ttvdb.py_164541 |
| Hawaii Five-0 | Endloser Sommer           |      5 |       3 | ttvdb.py_164541 |
| Hawaii Five-0 | Bewährungsprobe           |      8 |      12 | ttvdb.py_164541 |
| Hawaii Five-0 | Vorbei ist vorbei         |      8 |      13 | ttvdb.py_164541 |
| Hawaii Five-0 | Der gigantische Kokon     |      9 |       1 | ttvdb.py_164541 |
| Hawaii Five-0 | Eine schaurige Nacht      |      9 |       5 | ttvdb.py_164541 |
| Hawaii Five-0 | Nach eigenen Regeln       |      9 |       6 | ttvdb.py_164541 |
| Hawaii Five-0 | Grosse Träume             |      9 |       7 | ttvdb.py_164541 |
| Hawaii Five-0 | Streithähne               |      9 |       8 | ttvdb.py_164541 |
| Hawaii Five-0 | Das letzte Kapitel        |      9 |       9 | ttvdb.py_164541 |
| Hawaii Five-0 | Marokko                   |      9 |      10 | ttvdb.py_164541 |
| Hawaii Five-0 | Der Anfang vom Ende       |      9 |      11 | ttvdb.py_164541 |
| Hawaii Five-0 | Ohana                     |      9 |      12 | ttvdb.py_164541 |
| Hawaii Five-0 | Die tote Meerjungfrau     |      9 |      16 | ttvdb.py_164541 |
| Hawaii Five-0 | Zerrissen                 |      9 |      17 | ttvdb.py_164541 |
| Hawaii Five-0 | Der falsche Fensterputzer |      9 |      19 | ttvdb.py_164541 |
| Hawaii Five-0 | Von Hand zu Hand          |      9 |      20 | ttvdb.py_164541 |
| Hawaii Five-0 | Katzenjammer              |      9 |      21 | ttvdb.py_164541 |
| Hawaii Five-0 | Tausend Regeln            |     10 |       4 | ttvdb.py_164541 |
| Hawaii Five-0 | Nicht zu bremsen          |     10 |       6 | ttvdb.py_164541 |
| Hawaii Five-0 | Unfreiwillig              |     10 |      15 | ttvdb.py_164541 |
| Hawaii Five-0 | Das Geständnis            |     10 |      16 | ttvdb.py_164541 |
| Hawaii Five-0 | Beweisstücke              |     10 |      18 | ttvdb.py_164541 |
+---------------+---------------------------+--------+---------+-----------------+
23 rows in set (0.01 sec)


User avatar
dnalorernst
Developer
Posts: 51
Joined: Mon Feb 17, 2020 8:03 pm
Austria

Re: Strange behaviour looking up for metadata

Post by dnalorernst » Fri Nov 27, 2020 8:26 pm

Thank your for the feedback.

For scenario (1) I recommend a User Job, that gets called manually,
by pressing "M -> Job Options -> Start UserJob x"
See https://www.mythtv.org/wiki/User_Jobs.

Running this script over all existing recordings unconditionally, could be dangerous:
One might overwrite correct artworks with incorrect ones fetched from the grabber.
I found that the TV and Movies Grabbers are not perfect and the output is unreliable sometimes.

For scenario (2), please have a look at
https://www.mythtv.org/wiki/MythTV_Univ ... ata_Format
which describes the interface to the various grabbers.

In particular, the following parameters are used by MythTV for recordings and movies,
depending on the available data:

Code: Select all

-M title
-N title subtitle
-N interef subtitle
-D inetref
-D inetref season episode
-C inetref or collectionref
The "-C" ("Collection") option returns only generic information.
In case of TV-series, this would be a description and artwork which "fits for all".
Therefore, this is the last ressource to call, if everything else is ambiguous.

This might be true for the example "The Killing - 10, season 3, episode 10":
The subtitle does not fit into the german scheme that thetvdb.com returns.
The title is an alias for "Kommissarin Lund".

There a multiple levels of artwork, especially coverarts of TV-series:
- a generic coverart of the whole TV-series
- a coverart for each season
- a coverart for each episode (that's rare)

Going through above list from bottom to top, will return the best result for a single episode.

There have been requests on the mailing list to avoid generic metadata returned by the "-C" option,
if better data is available (even in other languages).

For scenario (2), the first lookup

Code: Select all

ttvdb.py -l de -a CH -N 89901 Glamourgirl
failed to display the coverart for this specific season, but the raw data have been retrieved.
This is fixed now (see first part of the attached patch).

For scenario (2), the second lookup

Code: Select all

ttvdb.py -l de -a CH -N 164541 Beweisstücke
shows that there is no coverart for this specific season.
In that case, the coverart for the TV-series itself is now inserted.
This part of the patch is a proof of concept, and neeeds to be reviewd thoroughfully.


Please try the following:
Copy the files "ttvdb.py" and "ttvdb_test.conf" to a folder in your home directory:

Code: Select all

cp /usr/share/mythtv/metadata/Television/* .
Apply the attached patch:

Code: Select all

patch -p1 < ./ttvdb_missing_coverart.patch
Then run your tests as you did before, but use now the patched version of ttvdb.py.

And, of course, please report results.
If you find other corner cases, please post them as well.
This will extend the testing database.

Thanks,
Roland
Attachments
ttvdb_missing_coverart.patch
(1.83 KiB) Downloaded 6 times

enrico123
Junior
Posts: 34
Joined: Mon Sep 22, 2014 1:36 pm
Switzerland

Re: Strange behaviour looking up for metadata

Post by enrico123 » Sat Nov 28, 2020 3:08 pm

Thank your for the answer.
For scenario (1) I recommend a User Job, that gets called manually,
by pressing "M -> Job Options -> Start UserJob x"
See https://www.mythtv.org/wiki/User_Jobs.
Unfortunately I'm having problems running the User Job :(

I've stored the del_artwork_v2.py file in the /home/mythtv/userjobs/ directory and then I've defined the UserJob #1 and the UserJob #1 Description as following:

python3 /home/mythtv/userjobs/del_artwork_v2.py -- chanid %CHANID% --starttimeutc %STARTTIMEUTC%

Delete Artwork v2

I don't know if I had to use python3 at the beginning of the command or not.
I have tried both ways...

I have restarted mythbackend and inside mythfrontend pressed "M -> Job Options -> Start UserJob x"
I couldn't find anything in the mythtv logfiles to follow the processing.

Beside this, it seems that checking again with "M -> Job Options -> " I can see always "Stop Delete Artwork v2".
It seems that the job is newer finishing and also trying to stop it doesn't work.
Probably it's broken, because I called it once with python3 and once without it in the UserJob definition.

Also trying to reboot the server seems not to help! Inside mythfrontend pressing M the UserJob seems to be always running, but also using ps -ef I cannot find a running job...

Later to scenario(2)...

User avatar
dnalorernst
Developer
Posts: 51
Joined: Mon Feb 17, 2020 8:03 pm
Austria

Re: Strange behaviour looking up for metadata

Post by dnalorernst » Sat Nov 28, 2020 8:15 pm

If

Code: Select all

ps aux | grep del_artwork
does not return a stale call to that script,
then let the housekeer tasks of MythtTV remove that message.
Otherwise, kill that process.


The intended use of this script to run as a user job is

Code: Select all

/home/mythtv/userjobs/del_artwork_v2.py %JOBID%
To inform MythTV that this job is done,
please add the lines

Code: Select all

    if jobid:
        #  see http://www.mythtv.org/wiki/Job_Queue for useful status values
        job.update({'status': 272, 'comment': "%s" % "Update Coverart done."}) 
at the end of "def main():"

Or simply try the updated and attached v3 script.

To make this script executable with python3, simply run

Code: Select all

chmod +x ./del_artwork_v3.py
Please excuse the inconvenience,

Roland

User avatar
dnalorernst
Developer
Posts: 51
Joined: Mon Feb 17, 2020 8:03 pm
Austria

Re: Strange behaviour looking up for metadata

Post by dnalorernst » Sat Nov 28, 2020 8:45 pm

Added version 3 of the script.
Attachments
del_artwork_v3.zip
(1.28 KiB) Downloaded 8 times

Post Reply