More Mangling of TV Show NFO Files

Created by: mgonzales71

What TMM version are you using?

Snapshot 3.0 11/30/2018 01:35

release, pre-release, nightly, or directly from GitHub/branch?

snapshot 3.0

What is the actual behaviour?

when reading nfo files (with app set to NOT clean nfo files it mangles them anyway

What is the expected behaviour?

not to mangle unknown tags, etc - but to leave them as is.

Steps to reproduce:

Here is an NFO file PRE TMM:

<?xml version='1.0' encoding='UTF-8' standalone='yes'?>
<tvshow>
    <id>289574</id>
    <state>2</state>
    <title>The Late Show with Stephen Colbert</title>
    <showtitle></showtitle>
    <mpaa>TV-PG</mpaa>
    <plot>Stephen Colbert took over as host, executive producer and writer of THE LATE SHOW on Tuesday, Sept. 8, 2015. The comedy-variety-talk show is broadcast five nights a week from the Ed Sullivan theater in New York.</plot>
    <imdbid>tt3697842</imdbid>
    <tmdbid/>
    <status>Continuing</status>
    <runtime>45</runtime>
    <rating>7.4</rating>
    <userrating>0</userrating>
    <votes>8278</votes>
    <year>2015</year>
    <premiered>2015-09-08</premiered>
    <studio>CBS</studio>
    <genre>Comedy / Talk-Show / Talk-Show</genre>
    <genre>Talk-Show</genre>
    <language>en</language>
    <episodeactorsource>imdb</episodeactorsource>
    <tvshowactorsource>tvdb</tvshowactorsource>
    <sortorder>default</sortorder>
    <scrapefrom>tvdb</scrapefrom>
    <top250>0</top250>
    <episode>653</episode>
    <outline>Stephen Colbert took over as host, executive producer and writer of THE LATE SHOW on Tuesday, Sept. 8, 2015. The comedy-variety-talk show is broadcast five nights a week from the Ed Sullivan theater in New York.</outline>
    <tvdbid>289574</tvdbid>
    <episodeguide>
        <url>https://thetvdb.com/api/A0BB9A0F6762942B/series/289574/all/en.zip</url>
    </episodeguide>
    <tag>variety show</tag>
    <tag>interview</tag>
    <tag>social commentary</tag>
    <tag>new york city</tag>
    <tag>stand up comedy</tag>
    <actor>
        <name>Stephen Colbert</name>
        <role>Host</role>
        <thumb>https://thetvdb.com/banners/actors/341329.jpg</thumb>
    </actor>
    <actor>
        <name>Jon Batiste</name>
        <role>Bandleader</role>
        <thumb>https://thetvdb.com/banners/actors/448476.jpg</thumb>
    </actor>
</tvshow>

Here is the same NFO file after TMM gets a hold of it ** this is after choosing Read Data from NFO file

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!--created on 2018-11-29 18:34:48 - tinyMediaManager 3.0-SNAPSHOT-->
<tvshow>
  <title>The Late Show with Stephen Colbert</title>
  <showtitle>The Late Show with Stephen Colbert</showtitle>
  <year>2015</year>
  <rating>7.4</rating>
  <votes>8278</votes>
  <outline/>
  <plot>Stephen Colbert took over as host, executive producer and writer of THE LATE SHOW on Tuesday, Sept. 8, 2015. The comedy-variety-talk show is broadcast five nights a week from the Ed Sullivan theater in New York.</plot>
  <tagline/>
  <runtime>45</runtime>
  <fanart/>
  <mpaa/>
  <episodeguide>
    <url>https://thetvdb.com/api/A0BB9A0F6762942B/series/289574/all/en.zip</url>
  </episodeguide>
  <id>289574</id>
  <imdbid/>
  <ids>
    <tvdb>289574</tvdb>
  </ids>
  <premiered>2015-09-08</premiered>
  <status>Continuing</status>
  <watched>false</watched>
  <playcount/>
  <genre>Comedy / Talk-Show / Talk-Show</genre>
  <genre>Talk show</genre>
  <studio>CBS</studio>
  <tag>variety show</tag>
  <tag>interview</tag>
  <tag>social commentary</tag>
  <tag>new york city</tag>
  <tag>stand up comedy</tag>
  <actor>
    <name>Stephen Colbert</name>
    <role>Host</role>
    <thumb>https://thetvdb.com/banners/actors/341329.jpg</thumb>
    <profile/>
  </actor>
  <actor>
    <name>Jon Batiste</name>
    <role>Bandleader</role>
    <thumb>https://thetvdb.com/banners/actors/448476.jpg</thumb>
    <profile/>
  </actor>
  <trailer/>
  <state>2</state>
  <imdbid>tt3697842</imdbid>
  <language>en</language>
  <episodeactorsource>imdb</episodeactorsource>
  <tvshowactorsource>tvdb</tvshowactorsource>
  <sortorder>default</sortorder>
  <scrapefrom>tvdb</scrapefrom>
  <tvdbid>289574</tvdbid>
</tvshow>

If I think choose to scrape the tv show *(title only)

2018-11-29_19-20-15

2018-11-29_19-17-30

I get new nfo file that now looks like this:


<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!--created on 2018-11-29 19:17:56 - tinyMediaManager 3.0-SNAPSHOT-->
<tvshow>
  <title>The Late Show with Stephen Colbert</title>
  <showtitle>The Late Show with Stephen Colbert</showtitle>
  <year>2015</year>
  <rating>7.4</rating>
  <votes>8278</votes>
  <outline/>
  <plot>Stephen Colbert took over as host, executive producer and writer of THE LATE SHOW on Tuesday, Sept. 8, 2015. The comedy-variety-talk show is broadcast five nights a week from the Ed Sullivan theater in New York.</plot>
  <tagline/>
  <runtime>45</runtime>
  <fanart/>
  <mpaa/>
  <episodeguide>
    <url>https://thetvdb.com/api/A0BB9A0F6762942B/series/289574/all/en.zip</url>
  </episodeguide>
  <id>289574</id>
  <imdbid>tt3697842</imdbid>
  <ids>
    <tvdb>289574</tvdb>
    <imdb>tt3697842</imdb>
    <zap2it>EP01906276</zap2it>
    <tmdb>63770</tmdb>
    <trakt>93737</trakt>
  </ids>
  <premiered>2015-09-08</premiered>
  <status>Continuing</status>
  <watched>false</watched>
  <playcount/>
  <genre>Comedy / Talk-Show / Talk-Show</genre>
  <genre>Talk show</genre>
  <studio>CBS</studio>
  <tag>variety show</tag>
  <tag>interview</tag>
  <tag>social commentary</tag>
  <tag>new york city</tag>
  <tag>stand up comedy</tag>
  <actor>
    <name>Stephen Colbert</name>
    <role>Host</role>
    <thumb>https://thetvdb.com/banners/actors/341329.jpg</thumb>
    <profile/>
  </actor>
  <actor>
    <name>Jon Batiste</name>
    <role>Bandleader</role>
    <thumb>https://thetvdb.com/banners/actors/448476.jpg</thumb>
    <profile/>
  </actor>
  <trailer/>
  <imdbid>tt3697842</imdbid>
  <imdbid>tt3697842</imdbid>
  <imdbid/>
  <state>2</state>
  <imdbid>tt3697842</imdbid>
  <language>en</language>
  <episodeactorsource>imdb</episodeactorsource>
  <tvshowactorsource>tvdb</tvshowactorsource>
  <sortorder>default</sortorder>
  <scrapefrom>tvdb</scrapefrom>
  <tvdbid>289574</tvdbid>
</tvshow>

Notice 4 entries now for at lines 52, 53, 54 and 56 (3 dups at lines 52,53 and 56 and one empty/unbalanced at 54) empty / unbalanced trailer, outline, fanart, mpaa, and playcount

Additional Have you attached the Logfile from the day it happened? Your Operating system? (win/mac/linux? version?)

Windows 10 Pro x64