Jump to content

Mark watched acting weird


David Patt

Recommended Posts

David Patt

Hello , really new at Emby. I start setup my server and so far i enjoy it. But something about marking watched is weird. Now i have three libraries. ANIME , MOVIES,  TV SERIES. In TV SERIES when i watch episode number at corner get down and put check mark at episode. No at Season card or at Tv show card. It only show number when i have unwatched episodes.  When i have unwatched movie in MOVIE section it have nothing at card, but when i watch it put check mark on it. 

Problem arise in my ANIME library when i have mixed content. Watched series have nothing as same as unwatched movies. Unwatched series have number unwatched episodes and watched movies check mark. See pictures for better understantment.

It is normal or i screw something up ?

Thank you for answers and suggestions.

1.jpg

2.jpg

Link to comment
Share on other sites

artstar

If I'm following your question correctly, it seems very similar to my issue.

In my case, I watch a TV series, the episode is marked as watched and then it disappears from my list (this is in Kodi), so I can't go back to play it again. When I take a look at the Library in Emby's web GUI, I see that the season and episode numbers have been erased.

It doesn't seem to be consistent though. I need to observe the logs at the conclusion of each episode to see what's actually going on but for now, what I'm doing is once the metadata is all set, I lock the entire collection to prevent the metadata from being updated. That seems to lock in the season and episode numbers for now, until this is flagged as a bug, which I believe it is but need to investigate the logs.

Link to comment
Share on other sites

Hi, are you thinking they're not marked correctly, or are you just asking about the way it is presented?

Link to comment
Share on other sites

David Patt

I think it is not marked correctly.  MOVIES appear without checkmark when unwatched and get checkmark when watched. TV SERIES have number in corner if any episode is unwatched and when it is all watched it is without checkmark and it is clear like MOVIE unwatched but in reality it is watched (if i visit tv series all episodes and seasons are checkmarked) 

I see this problem in web app , Emby Theater for desktop and in Android TV app.

In photo  1  below you can see Zipang has 8 unwatched episodes , Zombie Land Saga (TV SERIES ) is watched and marked correctly , MOVIE ZUTTO is marked correctly as watched.

In photo 2  I leave library and come back immediately Zipang has 8 episodes unwatched , Zombie Land Saga has now clear picture even everything is still watched , MOVIE Zutto is still marked correctly

1.jpg

2.jpg

Link to comment
Share on other sites

Happy2Play

There have been several topics on this but it is the matter of Movies have a visual indicator of Watched, where TV has no indicator for watched, but only shows a indicator of unwatched.

So from TV no indicator means you have watched all episodes.  So the question comes back to would a watched indicator create confusion of thinking there are still unwatched episodes if a visual indicator was always on TV Shows?

But photo 1 above is a glitch/bug/refresh issue as there should be no indicators for all watched TV as you can reproduce the indicator remaining by toggling the Watched indicator at folder level until page refresh. You can see the same at Series level, the seasons show a watch indicator until page refresh (not new as I know I have reported this before). @Luke

 

Edited by Happy2Play
  • Thanks 1
Link to comment
Share on other sites

David Patt

Thank you for answer. Now i know it is intentional. 

I have been confused as i mix TV SERIES and MOVIES together in my ANIME library and i see that temporary check mark on TV SERIES. 

But after i use CoverArt plugin to distinquish between TV SERIES and MOVIES i think it is ok and i can live with that.

But thank you for clarifying on the matter.

 
Link to comment
Share on other sites

artstar

Makes sense for marking the entire season, or not marking it, after they're all watched. Thanks for the explanation on that.

In my case, however, I find that the check mark for any watched episodes also disappears along with the season and episode numbers in the metadata of each individual episode.

So if I wanted to watch that same episode again within minutes or much later in the year, the episode metadata is not there any longer and so it disappears from my list in Kodi, despite setting the filter to display all episodes, not just the unwatched. They only come back once a metadata refresh is performed to restore the season and episode numbers. That's why I find myself having to lock all the metadata for new additions as they arrive, to avoid this. This definitely was not an issue in previous versions (currently running 4.4.3.0).

What I'll do is start extracting logs as episodes are marked as watched and see what happens, why the season and episode numbers are erased in the metadata for that individual episode.

Link to comment
Share on other sites

17 hours ago, artstar said:

Makes sense for marking the entire season, or not marking it, after they're all watched. Thanks for the explanation on that.

In my case, however, I find that the check mark for any watched episodes also disappears along with the season and episode numbers in the metadata of each individual episode.

So if I wanted to watch that same episode again within minutes or much later in the year, the episode metadata is not there any longer and so it disappears from my list in Kodi, despite setting the filter to display all episodes, not just the unwatched. They only come back once a metadata refresh is performed to restore the season and episode numbers. That's why I find myself having to lock all the metadata for new additions as they arrive, to avoid this. This definitely was not an issue in previous versions (currently running 4.4.3.0).

What I'll do is start extracting logs as episodes are marked as watched and see what happens, why the season and episode numbers are erased in the metadata for that individual episode.

Hi there, can we please look at a specific example of this? Thanks.

Link to comment
Share on other sites

artstar
3 hours ago, Luke said:

Hi there, can we please look at a specific example of this? Thanks.

Will do. I'll unlock the metadata on a series and extract logs. If you rather I report this in a separate thread, given I misunderstood the OP's issue in thinking it was similar to mine, let me know.

Link to comment
Share on other sites

artstar
On 8/7/2020 at 7:24 AM, Luke said:

Hi there, can we please look at a specific example of this? Thanks.

Will do. I'll unlock the metadata on a series and extract logs. If you rather I report this in a separate thread, given I misunderstood the OP's issue in thinking it was similar to mine, let me know.

Update:
Watched an episode on my Kodi player and it seems to run an Episode NFO on the next library scan after the episode has been played. Could this be the culprit? I'm trying to cut down on the clutter with this excerpt, so if you need more than this, please let me know and I'll happily oblige.

2020-08-08 02:53:34.139 Info SessionManager: Playback start reported by app Kodi 4.1.19 playing Requiem for a Dead Barber. Started at 1000 ms
2020-08-08 02:53:34.140 Info HttpServer: HTTP Response 204 to [redacted: KODI-BOX]. Time: 2ms. http://[redacted: embyserver]:8096/emby/Sessions/Playing
2020-08-08 02:53:34.140 Info PlaybackReporting - EventMonitorEntryPoint: _sessionManager_PlaybackStart : Entered
2020-08-08 02:53:34.140 Info PlaybackReporting - EventMonitorEntryPoint: Adding PlaybackInfo to playback_trackers : 5DAA7245B91E4259A087F0FDB698905E-3fd14cc46f514b13bd9b4a0074844f2f-95251
2020-08-08 02:53:34.140 Info PlaybackReporting - EventMonitorEntryPoint: Saving PlaybackInfo to DB
2020-08-08 02:53:34.155 Info PlaybackReporting - EventMonitorEntryPoint: Saving final duration for Item : 5DAA7245B91E4259A087F0FDB698905E-3fd14cc46f514b13bd9b4a0074844f2f-95250
2020-08-08 02:53:34.172 Info PlaybackReporting - EventMonitorEntryPoint: Removing Old Key from playback_trackers : 5DAA7245B91E4259A087F0FDB698905E-3fd14cc46f514b13bd9b4a0074844f2f-95250
2020-08-08 02:53:34.843 Info HttpServer: HTTP GET http://[redacted: embyserver]:8096/emby/Users/3fd14cc46f514b13bd9b4a0074844f2f/Items?Fields=Path%2CGenres%2CSortName%2CStudios%2CWriter%2CTaglines%2CLocalTrailerCount%2CVideo3DFormat%2COfficialRating%2CCumulativeRunTimeTicks%2CItemCounts%2CPremiereDate%2CProductionYear%2CMetascore%2CAirTime%2CDateCreated%2CPeople%2COverview%2CCommunityRating%2CStartDate%2CCriticRating%2CCriticRatingSummary%2CEtag%2CShortOverview%2CProductionLocations%2CTags%2CProviderIds%2CParentId%2CRemoteTrailers%2CSpecialEpisodeNumbers%2CStatus%2CEndDate%2CMediaSources%2CVoteCount%2CRecursiveItemCount%2CPrimaryImageAspectRatio%2CDisplayOrder%2CPresentationUniqueKey%2COriginalTitle&Ids=95251%2C88225. UserAgent: Emby-Kodi/4.1.19
2020-08-08 02:53:34.862 Info HttpServer: HTTP Response 200 to [redacted: KODI-BOX]. Time: 18ms. http://[redacted: embyserver]:8096/emby/Users/3fd14cc46f514b13bd9b4a0074844f2f/Items?Fields=Path%2CGenres%2CSortName%2CStudios%2CWriter%2CTaglines%2CLocalTrailerCount%2CVideo3DFormat%2COfficialRating%2CCumulativeRunTimeTicks%2CItemCounts%2CPremiereDate%2CProductionYear%2CMetascore%2CAirTime%2CDateCreated%2CPeople%2COverview%2CCommunityRating%2CStartDate%2CCriticRating%2CCriticRatingSummary%2CEtag%2CShortOverview%2CProductionLocations%2CTags%2CProviderIds%2CParentId%2CRemoteTrailers%2CSpecialEpisodeNumbers%2CStatus%2CEndDate%2CMediaSources%2CVoteCount%2CRecursiveItemCount%2CPrimaryImageAspectRatio%2CDisplayOrder%2CPresentationUniqueKey%2COriginalTitle&Ids=95251%2C88225
2020-08-08 02:53:38.257 Info HttpServer: HTTP POST http://[redacted: embyserver]:8096/emby/Sessions/Playing/Progress. UserAgent: Emby-Kodi/4.1.19
2020-08-08 02:53:38.258 Info HttpServer: HTTP Response 204 to [redacted: KODI-BOX]. Time: 1ms. http://[redacted: embyserver]:8096/emby/Sessions/Playing/Progress
2020-08-08 02:53:53.424 Info HttpServer: HTTP POST http://[redacted: embyserver]:8096/emby/Sessions/Playing/Progress. UserAgent: Emby-Kodi/4.1.19
2020-08-08 02:53:53.425 Info HttpServer: HTTP Response 204 to [redacted: KODI-BOX]. Time: 1ms. http://[redacted: embyserver]:8096/emby/Sessions/Playing/Progress
2020-08-08 02:54:03.597 Debug TaskManager: IntervalTrigger fired for task: Sync played status to library
2020-08-08 02:54:03.597 Debug TaskManager: Queueing task SyncPlayedStatusToLibrary
2020-08-08 02:54:03.597 Debug TaskManager: Executing Sync played status to library
2020-08-08 02:54:04.180 Debug TaskManager: Sync played status to library Completed after 0 minute(s) and 0 seconds


2020-08-08 03:31:45.955 Debug App: EpisodeNfoProvider reports change to 95251 - /mnt/emby/TV/Married with Children/Married.With.Children.S03/Married.With.Children.S03E09.Requiem.For.A.Dead.Barber.mkv
2020-08-08 03:31:45.968 Debug App: Running EpisodeNfoProvider for /mnt/emby/TV/Married with Children/Married.With.Children.S03/Married.With.Children.S03E09.Requiem.For.A.Dead.Barber.mkv

 

Link to comment
Share on other sites

artstar
12 hours ago, Luke said:

Well what exactly happened?

Season and Episode numbers were erased from the metadata for those watched episodes. That's why I'm suspecting in those last two lines from the log I quoted (referring to "EpisodeNfoProvider") could be where the culprit lies. Is there a way to obtain deeper detail on what EpisodeNfoProvider is doing? In embyserver.txt, that is all the debug info I am seeing.

Edited by artstar
Link to comment
Share on other sites

artstar
4 hours ago, Luke said:

Does your nfo file contain these values?

There is no nfo file in these video folders to conflict with the metadata that Emby produced at the time of initially adding these files into the library.

Link to comment
Share on other sites

Happy2Play

@artstar What do you see in the Metadata Manager for the series?

test2.thumb.jpg.1755621cb39d72b873e4e93e7746caf1.jpg

If I am understanding correctly all metadata is lost when you watch a locked item in Kodi?

Link to comment
Share on other sites

artstar

@Happy2Play What I see is only the Season number and Episode number are blanked. All other metadata strangely remains intact, exactly as you've displayed it. The only way I can avoid this is to lock the metadata so that the Season and Episode numbers remain unchanged after playback.

I think for my next test, I'll also capture the logs from plugin in Kodi (Leia), in case if the plugin in Kodi is somehow having an influence on it.

Edited by artstar
Link to comment
Share on other sites

Happy2Play
5 minutes ago, artstar said:

@Happy2Play What I see is only the Season number and Episode number are blanked. All other metadata strangely remains intact, exactly as you've displayed it. The only way I can avoid this is to lock the metadata so that the Season and Episode numbers remain unchanged after playback.

I think for my next test, I'll also capture the logs from plugin in Kodi (Leia), in case if the plugin in Kodi is somehow having an influence on it somehow.

Never heard of items losing metadata within Emby like this.  Is the entire series losing metadata or just specific episodes?  Yes it would be a good test to know if this only happens when using plugin in Kodi vs only the web client.

Edited by Happy2Play
Link to comment
Share on other sites

artstar
19 minutes ago, Happy2Play said:

Never heard of items losing metadata within Emby like this.  Is the entire series losing metadata or just specific episodes?  Yes it would be a good test to know if this only happens when using plugin in Kodi vs only the web client.

Each episode loses those two metadata items at the conclusion of playback of the respective episode.

I'll definitely pull logs from the plugin in Kodi as well as compare to Emby's web client, and report back.

Link to comment
Share on other sites

artstar

@Happy2Play It looks like the Kodi plugin is to blame rather than the server. Playback over the web interface did not result in the data being lost but with Kodi and the Emby v4.1.19 plugin, it is creating an nfo file in the media folder, which Emby Server then picks up and that's what's killing the season and episode numbers:

From kodi.log:

2020-08-17 00:50:45.508 T:140132665947904  NOTICE: EMBY.hooks.monitor -> DEBUG:: [ xbmc: VideoLibrary.OnUpdate ] {"item": {"type": "episode", "id": 4249}, "playcount": 1}
2020-08-17 00:50:45.601 T:140133240141568  NOTICE: EMBY.hooks.monitor -> -->[ q:monitor/VideoLibrary.OnUpdate ]
2020-08-17 00:50:45.605 T:140132745201408 WARNING: SMBFile::OpenForWrite() called with overwriting enabled! - smb://USERNAME:PASSWORD@[NAS_IP]/video/TV/Married%20with%20Children/Married.With.Children.S04/Married.With.Children.S04E23.Yard.Sale.nfo
2020-08-17 00:50:45.606 T:140132665947904  NOTICE: EMBY.hooks.monitor -> DEBUG:: [ xbmc: VideoLibrary.OnUpdate ] {"type": "episode", "id": 4249}
2020-08-17 00:50:45.637 T:140133240141568  NOTICE: EMBY.objects.monitor ->  [ update/1 ] kodi_id: 4249 media: episode
2020-08-17 00:50:45.686 T:140132971706112  NOTICE: EMBY.hooks.monitor -> -->[ q:monitor/VideoLibrary.OnUpdate ]
2020-08-17 00:50:45.687 T:140132665947904  NOTICE: EMBY.objects.monitor -> [ xbmc/Player.OnStop ]
2020-08-17 00:50:45.708 T:140132665947904  NOTICE: EMBY.objects.monitor -> DEBUG:: {"end":true,"item":{"id":4249,"type":"episode"}}
2020-08-17 00:50:45.708 T:140134506817280  NOTICE: PulseAudio: Opened device Default in pcm mode with Buffersize 150 ms
2020-08-17 00:50:45.712 T:140132971706112  NOTICE: EMBY.objects.monitor -> DEBUG:: Invalid playstate update
2020-08-17 00:50:45.712 T:140132665947904  NOTICE: EMBY.hooks.player -> DEBUG:: [ played info ] {'smb://[NAS_IP]/video/TV//Married with Children/Married.With.Children.S04/Married.With.Children.S04E23.Yard.Sale.mkv': {u'PlaySessionId': u'a1568e8512834ba3aea843ec74a48383', 'Muted': False, u'SubtitleStreamIndex': -1, 'Server': <emby.client.EmbyClient object at 0x7f738f89cd50>, u'MediaSourceId': u'88306', u'AudioStreamIndex': 1, u'CurrentEpisode': None, u'ServerId': None, u'Runtime': 13889870000, u'Type': u'Episode', u'PlayMethod': u'DirectPlay', 'Volume': 100, u'LiveStreamId': None, u'SubsMapping': None, u'CurrentPosition': 1386, 'Track': True, 'Paused': False, u'DeviceId': u'5DAA7245B91E4259A087F0FDB698905E', 'File': 'smb://[NAS_IP]/video/TV//Married with Children/Married.With.Children.S04/Married.With.Children.S04E23.Yard.Sale.mkv', u'PlayOption': u'Native', u'Path': u'smb://[NAS_IP]/video/TV//Married with Children/Married.With.Children.S04/Married.With.Children.S04E23.Yard.Sale.mkv', u'Id': u'88306', u'AutoSwitched': None}}
2020-08-17 00:50:45.712 T:140132665947904  NOTICE: EMBY.hooks.player -> [ played info ] {u'PlaySessionId': u'a1568e8512834ba3aea843ec74a48383', 'Muted': False, u'SubtitleStreamIndex': -1, 'Server': <emby.client.EmbyClient object at 0x7f738f89cd50>, u'MediaSourceId': u'88306', u'AudioStreamIndex': 1, u'CurrentEpisode': None, u'ServerId': None, u'Runtime': 13889870000, u'Type': u'Episode', u'PlayMethod': u'DirectPlay', 'Volume': 100, u'LiveStreamId': None, u'SubsMapping': None, u'CurrentPosition': 1386, 'Track': True, 'Paused': False, u'DeviceId': u'5DAA7245B91E4259A087F0FDB698905E', 'File': 'smb://[NAS_IP]/video/TV//Married with Children/Married.With.Children.S04/Married.With.Children.S04E23.Yard.Sale.mkv', u'PlayOption': u'Native', u'Path': u'smb://[NAS_IP]/video/TV//Married with Children/Married.With.Children.S04/Married.With.Children.S04E23.Yard.Sale.mkv', u'Id': u'88306', u'AutoSwitched': None}
2020-08-17 00:50:45.713 T:140132665947904  NOTICE: Emby.emby.core.http -> DEBUG:: --->[ http ] {
                                                "url": "http://{emby-server}/emby/Sessions/Playing/Stopped",
                                                "verify": true,
Contents of the nfo file:

<episodedetails>
    <title>Yard Sale</title>
    <showtitle>Married... with Children</showtitle>
    <plot>After discovering Peggy's latest purchases, Al throws a yard sale to get rid of a lot of the junk, but no one is interested.</plot>
    <director>Gerry Cohen</director>
    <isuserfavorite>false</isuserfavorite>
    <ratings>
        <rating default="true" max="10" name="default">
            <value>7.6</value>
            <votes>0</votes>
        </rating>
    </ratings>
    <rating>7.6</rating>
    <votes>0</votes>
    <uniqueid type="tvdb">192671</uniqueid>
    <uniqueid type="imdb">tt0642434</uniqueid>
    <imdbid>tt0642434</imdbid>
    <tvdbid>192671</tvdbid>
    <imdb_id>tt0642434</imdb_id>
    <aired>1990-05-13</aired>
    <dateadded>2020-06-17 15:53:16</dateadded>
    <playcount>1</playcount>
    <watched>true</watched>
    <lastplayed>2020-08-17 00:50:45</lastplayed>
</episodedetails>

So I'm guessing with the lack of season and episode numbers in there, that's what's doing the damage. I'll track down the forum for seeking support on this plugin to find out how to prevent these nfo files from being created.

Link to comment
Share on other sites

  • 2 weeks later...

Hi, you mean Kodi creates the nfo? I'm pretty sure the emby for Kodi add-on all by itself will not do that.

Link to comment
Share on other sites

artstar

I don't know what else to tell you. I play it via the Emby web UI, no nfo file is created in the same folder as the media. I play it via the Kodi Leia (Ubuntu) add-on and something creates the nfo file at the time of being marked as watched after playback concludes. This is in spite of the fact that I have not ticked the option to store nfo files in the same folders as the media in each of the Library configurations.

So for now, I'm going to try running a script on my Emby (Ubuntu) server that finds and deletes the nfo files from all media folders every 15 minutes to see if that will work around this.

Edited by artstar
Link to comment
Share on other sites

Happy2Play

To me this would be a Kodi/add-on issue if it is manipulating the nfo file.

24 minutes ago, artstar said:

I play it via the Emby web UI, no nfo file is created in the same folder as the media

I am confused as playback does not create a nfo.  Can you show your Library settings for that specific library please enable show advanced settings.

Link to comment
Share on other sites

Emby will update the NFO if you enable "Save user watch data to nfo's for:" and select a username in the NFO plugin setup.

Link to comment
Share on other sites

Happy2Play
5 minutes ago, cayars said:

Emby will update the NFO if you enable "Save user watch data to nfo's for:" and select a username in the NFO plugin setup.

I guess but the displayed nfo above does not contain all the required Emby fields like episode and season.  I want to know if user has nfo writing enabled on the library.

Link to comment
Share on other sites

artstar
26 minutes ago, Happy2Play said:

To me this would be a Kodi/add-on issue if it is manipulating the nfo file.

I am confused as playback does not create a nfo.  Can you show your Library settings for that specific library please enable show advanced settings.

Sorry that my confusion is contagious. :) It certainly is pointing to something that the add-on in Kodi is doing but I couldn't find any settings in the add-on's config referring to anything about nfo creation.

At any rate, here's the setting that I have turned off in all libraries, with this screenshot being from the TV Shows library:

image.thumb.png.f836a40850af523443a10a4a5a13bf49.png

For what it's worth, I even went to the trouble of turning that Metadata saver on, saved and then switched it back off and saved again, to no avail.

If you need screenshots of the entire library config, let me know and I'll take the several screenshots of that too.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...