[solved] Mixed artist pictures (1 Viewer)

ajs

Development Group
  • Team MediaPortal
  • February 29, 2008
    15,749
    10,727
    Kyiv
    Home Country
    Ukraine Ukraine
    I run this select on my DB and see problem not in Case, i try to fix this problem another way ...
     

    horned_reaper

    Test Group
  • Team MediaPortal
  • January 7, 2011
    1,233
    461
    Munich
    Home Country
    Germany Germany
    Thanks for your engagement!

    To my understanding the SQL queries only duplicates where one record is from local source and the another one is from local source. Duplicates where both records are from local source are not found.
     

    horned_reaper

    Test Group
  • Team MediaPortal
  • January 7, 2011
    1,233
    461
    Munich
    Home Country
    Germany Germany
    But there are several such records in my FH database! :)

    CategorySubCategoryFullPathMBIDSourcePath
    MusicFanartMusicFanartManualC:\ProgramData\Team MediaPortal\MediaPortal\Thumbs\Skin FanArt\Scraper\music\Boney M. (7278).jpgC:\ProgramData\Team MediaPortal\MediaPortal\Thumbs\Skin FanArt\Scraper\music\Boney M. (7278).jpg
    MusicFanartMusicFanartScrapedC:\ProgramData\Team MediaPortal\MediaPortal\Thumbs\Skin FanArt\Scraper\Music\Boney M. (7278).jpgC:\ProgramData\Team MediaPortal\MediaPortal\Thumbs\Skin FanArt\Scraper\Music\Boney M. (7278).jpg
     

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    15,749
    10,727
    Kyiv
    Home Country
    Ukraine Ukraine
    But there are several such records in my FH database!
    Mystery, tried to make a change. I went through the phone to the home server, then to the test computer, made changes and here is the test result. I am not sure how this works and whether it works at all. It is very inconvenient to do something from work, on my home computer.
     

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    15,749
    10,727
    Kyiv
    Home Country
    Ukraine Ukraine
    Duplicates where both records are from local source are not found.
    Maybe this help:
    SQL:
    SELECT FullPath, COUNT(Provider) FROM Image WHERE Provider = 'Local' GROUP BY UPPER(FullPath) HAVING COUNT(UPPER(FullPath)) > 1 ORDER BY FullPath;
     

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    15,749
    10,727
    Kyiv
    Home Country
    Ukraine Ukraine
    Will it do a database clean-up and/or prevent new duplicate entries?
    Some cleanups when updating the database are added. But maybe not all.
     

    horned_reaper

    Test Group
  • Team MediaPortal
  • January 7, 2011
    1,233
    461
    Munich
    Home Country
    Germany Germany
    Maybe this help:
    SQL:
    SELECT FullPath, COUNT(Provider) FROM Image WHERE Provider = 'Local' GROUP BY UPPER(FullPath) HAVING COUNT(UPPER(FullPath)) > 1 ORDER BY FullPath;

    With this query the duplicate local source records are shown.
    Is it possible to change the query to delete them?
     

    Users who are viewing this thread

    Top Bottom