home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
My TVSeries
Stop TV Series from updating Ratings
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="ltfearme" data-source="post: 1131112" data-attributes="member: 52219"><p>Yes thats correct @conguero, the trakt plugin only updates user ratings from trakt.tv.</p><p></p><p>The TVSeries plugin will update all fields unless filtered out, have a look in OnlineParse for UpdateSeries and you will notice some code:</p><p>[code]</p><p> // find the corresponding series in our list</p><p> foreach (DBSeries localSeries in SeriesList) {</p><p> if (localSeries[DBSeries.cID] == updatedSeries[DBSeries.cID]) {</p><p> m_worker.ReportProgress(0, new ParsingProgress(ParsingAction.UpdateSeries, updatedSeries[DBOnlineSeries.cPrettyName], ++nIndex, SeriesList.Count, updatedSeries, null));</p><p> // go over all the fields, (and update only those which haven't been modified by the user - will do that later)</p><p> foreach (String key in updatedSeries.FieldNames) {</p><p> switch (key) {</p><p> // do not overwrite current series local settings with the one from the online series (baaaad design??)</p><p> case DBSeries.cParsedName: // this field shouldn't be required here since updatedSeries is an Onlineseries and not a localseries??</p><p> case DBOnlineSeries.cHasLocalFiles:</p><p> case DBOnlineSeries.cHasLocalFilesTemp:</p><p> case DBOnlineSeries.cEpisodesUnWatched:</p><p> case DBOnlineSeries.cEpisodeCount:</p><p> case DBOnlineSeries.cIsFavourite:</p><p> case DBOnlineSeries.cChosenEpisodeOrder:</p><p> case DBOnlineSeries.cEpisodeSortOrder:</p><p> case DBOnlineSeries.cBannerFileNames: // banners get handled differently (later on)</p><p> case DBOnlineSeries.cPosterFileNames:</p><p> case DBOnlineSeries.cCurrentBannerFileName:</p><p> case DBOnlineSeries.cCurrentPosterFileName:</p><p> case DBOnlineSeries.cMyRating:</p><p> case DBOnlineSeries.cViewTags:</p><p> case DBOnlineSeries.cHasNewEpisodes: //gets cleared and updated at end of scan</p><p> case DBOnlineSeries.cTraktIgnore:</p><p> case DBOnlineSeries.cOriginalName:</p><p> break;</p><p> case DBOnlineSeries.cEpisodeOrders:</p><p> if (bUpdateNewSeries)</p><p> goto default;</p><p> break;</p><p> default:</p><p> if (!key.EndsWith(DBTable.cUserEditPostFix))</p><p> {</p><p> localSeries.AddColumn(key, new DBField(DBField.cTypeString));</p><p> localSeries[key] = updatedSeries[key].ToString().RemapHighOrderChars();</p><p> }</p><p> break;</p><p> }</p><p> }</p><p></p><p> // diff. order options</p><p> if (bUpdateNewSeries)</p><p> SetEpisodeOrderForSeries(localSeries);</p><p></p><p> // data import completed; set to 2 (data up to date)</p><p> localSeries[DBOnlineSeries.cOnlineDataImported] = 2;</p><p></p><p> if (localSeries[DBOnlineSeries.cHasLocalFilesTemp])</p><p> localSeries[DBOnlineSeries.cHasLocalFiles] = 1;</p><p> </p><p> localSeries.Commit();</p><p> </p><p> // UPDATE CACHE to fix getting the series named as the parsed name instead of the online pretty name!</p><p> if(bUpdateNewSeries) cache.addChangeSeries(localSeries);</p><p> }</p><p> }</p><p> }</p><p>[/code]</p><p></p><p>The switch explicitly filters out the fields that should not be updated or set's it in the default. So if you dont want something set you need to add the field in there. There is something similar for Episodes.</p><p></p><p>I think there might be more than one place this is done, you can search for one of the fields e.g. cMyRating and see what turns up.</p></blockquote><p></p>
[QUOTE="ltfearme, post: 1131112, member: 52219"] Yes thats correct @conguero, the trakt plugin only updates user ratings from trakt.tv. The TVSeries plugin will update all fields unless filtered out, have a look in OnlineParse for UpdateSeries and you will notice some code: [code] // find the corresponding series in our list foreach (DBSeries localSeries in SeriesList) { if (localSeries[DBSeries.cID] == updatedSeries[DBSeries.cID]) { m_worker.ReportProgress(0, new ParsingProgress(ParsingAction.UpdateSeries, updatedSeries[DBOnlineSeries.cPrettyName], ++nIndex, SeriesList.Count, updatedSeries, null)); // go over all the fields, (and update only those which haven't been modified by the user - will do that later) foreach (String key in updatedSeries.FieldNames) { switch (key) { // do not overwrite current series local settings with the one from the online series (baaaad design??) case DBSeries.cParsedName: // this field shouldn't be required here since updatedSeries is an Onlineseries and not a localseries?? case DBOnlineSeries.cHasLocalFiles: case DBOnlineSeries.cHasLocalFilesTemp: case DBOnlineSeries.cEpisodesUnWatched: case DBOnlineSeries.cEpisodeCount: case DBOnlineSeries.cIsFavourite: case DBOnlineSeries.cChosenEpisodeOrder: case DBOnlineSeries.cEpisodeSortOrder: case DBOnlineSeries.cBannerFileNames: // banners get handled differently (later on) case DBOnlineSeries.cPosterFileNames: case DBOnlineSeries.cCurrentBannerFileName: case DBOnlineSeries.cCurrentPosterFileName: case DBOnlineSeries.cMyRating: case DBOnlineSeries.cViewTags: case DBOnlineSeries.cHasNewEpisodes: //gets cleared and updated at end of scan case DBOnlineSeries.cTraktIgnore: case DBOnlineSeries.cOriginalName: break; case DBOnlineSeries.cEpisodeOrders: if (bUpdateNewSeries) goto default; break; default: if (!key.EndsWith(DBTable.cUserEditPostFix)) { localSeries.AddColumn(key, new DBField(DBField.cTypeString)); localSeries[key] = updatedSeries[key].ToString().RemapHighOrderChars(); } break; } } // diff. order options if (bUpdateNewSeries) SetEpisodeOrderForSeries(localSeries); // data import completed; set to 2 (data up to date) localSeries[DBOnlineSeries.cOnlineDataImported] = 2; if (localSeries[DBOnlineSeries.cHasLocalFilesTemp]) localSeries[DBOnlineSeries.cHasLocalFiles] = 1; localSeries.Commit(); // UPDATE CACHE to fix getting the series named as the parsed name instead of the online pretty name! if(bUpdateNewSeries) cache.addChangeSeries(localSeries); } } } [/code] The switch explicitly filters out the fields that should not be updated or set's it in the default. So if you dont want something set you need to add the field in there. There is something similar for Episodes. I think there might be more than one place this is done, you can search for one of the fields e.g. cMyRating and see what turns up. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
My TVSeries
Stop TV Series from updating Ratings
Contact us
RSS
Top
Bottom