Kodi Community Forum

Full Version: Duplicates of seemingly random TV shows
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
For some unknown reason, after a regular "Update Library", many of my TV shows (>80%) have duplicate entries for each episode. I believe this stems from an issue where my files are located at /var/media/hdd/Videos/, and there is a symbolic link from / called media/, such that:
/media/hdd/Videos/, and
/var/media/hdd/Videos
are the same path.

Here's part of my userdata/sources.xml
Code:
<video>
    <default pathversion="1"></default>
    <source>
        <name>TV</name>
        <path pathversion="1">/var/media/hdd/Videos/TV</path>
    </source>
    <source>
        <name>Film</name>
        <path pathversion="1">/var/media/hdd/Videos/Film/</path>
    </source>
</video>

I've tried "Clean Library", countless other tweaks, but I cannot seem to resolve the issue.

Whilst most TV shows are duplicated, some are correct, which only use the path /media/ (not /var/media/).

Any suggestions?

Note: I do not believe I can delete or rename the symbolic link due to the read only file system (OpenELEC)
SOLVED: Had to modify the database.

  1. Execute:
    Code:
    DELETE FROM path WHERE strPath LIKE '/var/media/hdd/Videos/TV/%';
  2. Update Video Library
  3. Clean Video Library
  4. For TV shows showing no episodes, Context Menu -> Scan for new content