2017-10-07, 21:57
@pyrodex: Also...
If you run
then when playback ends, if you reached the critical "watched" percentage, then you will see the new playcount reported:
If an episode (or movie) is stopped before it has reached the critical "watched" percentage then the playcount will not be updated - the following is output when stopping playback at about 50%:
If you run
Code:
texturecache.py monitor
then when playback ends, if you reached the critical "watched" percentage, then you will see the new playcount reported:
Code:
2017-10-07 20:51:59.916479: Player.OnStop : {"item": {"type": "episode", "id": 20334}, "end": true} [The Grand Tour (2016) S01E04 (Enviro-mental)]
2017-10-07 20:52:00.295036: VideoLibrary.OnUpdate: {"item": {"type": "episode", "id": 20334}, "playcount": 1} [The Grand Tour (2016) S01E04 (Enviro-mental)]
2017-10-07 20:52:00.326056: VideoLibrary.OnUpdate: {"type": "episode", "id": 20334} [The Grand Tour (2016) S01E04 (Enviro-mental)]
If an episode (or movie) is stopped before it has reached the critical "watched" percentage then the playcount will not be updated - the following is output when stopping playback at about 50%:
Code:
2017-10-07 20:53:21.257224: Player.OnStop : {"item": {"type": "episode", "id": 20334}, "end": false} [The Grand Tour (2016) S01E04 (Enviro-mental)]
2017-10-07 20:53:21.680547: VideoLibrary.OnUpdate: {"item": {"type": "episode", "id": 20334}} [The Grand Tour (2016) S01E04 (Enviro-mental)]
2017-10-07 20:53:21.738589: VideoLibrary.OnUpdate: {"type": "episode", "id": 20334} [The Grand Tour (2016) S01E04 (Enviro-mental)]