Posts: 164
Joined: Oct 2013
Reputation:
11
2015-07-16, 21:05
(This post was last modified: 2015-07-17, 01:48 by Sleuteltje.)
Whenever I watch a movie or tv episode in my Kodi Library it automatically gets marked as watched when i've finished the movie or episode. But when I make a .strm & .nfo file (in this case for something from youtube) it gets added to the library fine as if it was a real movie/tv show. But when i finish watching it, it doesn't get marked as watched.
Why is this and how can i fix this?
EDIT: I should mention, I can mark them as watched with the contextmenu (C on keyboard) and then they get marked as watched fine. With normal files however that gets done normally, but in the case of a .strm file I have to do it manually.
Posts: 31,445
Joined: Jan 2011
2015-07-17, 21:04
(This post was last modified: 2015-07-17, 21:04 by Ned Scott.)
In Kodi .strm files are more like playlists, and as such they don't have "length". The automatic marking as watched uses a percentage of how much of the video was played, but Kodi doesn't treat .strm files like that.
Posts: 164
Joined: Oct 2013
Reputation:
11
Thanks. Will supplying the duration in the .nfo help?
And I've seen addons that have a "to library" function which uses .strm files and they get marked as watched when I have viewed them. Do the addons do some work of their own to make this happen?
Posts: 31,445
Joined: Jan 2011
I'm honestly not sure, for either question.
Posts: 291
Joined: Aug 2015
Reputation:
1
+1 for me
I do the exact same thing and would love to have Kodi keep track of what has been watched. I catalog a ton of content from Netflix (mostly kids movies and tv shows) and its hard to keep track of what has been watched and not and it is too much of a hassle to pull out the keyboard to mark the show as watched
Posts: 291
Joined: Aug 2015
Reputation:
1
The PlayOn Browser Addon is responsible for playing the videos so your code should work.
You are correct, Kodi is handling the STRM files natively. Many have requested this (over the past 4 years) but it I has yet to receive any coding attention. I am assuming that it shouldn't be that difficult since yourself (and others) have the functionality built in.
Currently the PlayOn Browser Addon doesn't support native metadata scraping which is why I use my library to scrape the details into the Kodi Library
Ultimately I am after native Kodi support for watched status however I am open to using PlayOn Browser Addon in the future if they add Metadata scraping.
Posts: 31,445
Joined: Jan 2011
I'm not a dev, so I could be wrong about this, but this is how I understand it: On a fundamental level, STRM files are playlists and not single videos. Having an add-on trigger a marked status in the database, for a specific set of STRM files, is very different than having Kodi see STRM files as a single video (without impacting other playlist behavior, etc) and allowing it to hook into the automatic watch trigger.
Posts: 291
Joined: Aug 2015
Reputation:
1
2015-09-18, 19:52
(This post was last modified: 2015-09-18, 19:57 by skarragallagher.)
Hi Ned, Thanks for your reply
I do see your point regarding STRM files as being a playlist. Currently the MyLibrary script creates one STRM file per item. Also many other addons are using STRM files as a single use type of file.
What I am suggesting is that, Perhaps Kodi Devs can add an option to settings that will allow STRM files to work with Automatic Watched Status. I understand it might not be applicable to every setup, thus having an option would be ideal. STRM files would probably need to have some extra logic that said:
If file = strm and setting (allow_strm_watched_status) is true
then mark as watched if the following conditions are met
(applicable conditions)
I don't think that making STRM files be recognized as videos so the automatic watched status trigger will work on these is the answer. Adding additional logic to handle STRM files different for automatic watched status seems to be less impactful
I am not a developer by any means however I don't think it would be so difficult to add this type of functionality and I think it would positively impact many users
Posts: 7,133
Joined: May 2011
Reputation:
381
IMO any type of "strm" watch flagging should take place at the plugin level, if it's a feature the plugin developer wants to add.
Posts: 291
Joined: Aug 2015
Reputation:
1
2015-09-18, 21:19
(This post was last modified: 2015-09-18, 21:19 by skarragallagher.)
Hi Lunatixz,
I think I understand exactly what I STRM file is and I do realize that the current method that Kodi uses to determine watched status is by the percentage of the video that has been watched. This doesn't work well STRM file because it doesn't include the total time, etc. My understanding of the process has little to do with the relevance of my request.
Currently I am not using any Addons for playback of STRM files. It is handled natively (thus the request).
What I am asking for is an option to make STRM watched status work natively. You are correct that I am not a developer nor am I trying to minimize the level of effort that needed to accomplish this. This may get picked up and get some interest, this may not. All I can do is ask.
I have reached out to the developer of the PlayOn Browser addon to see if they are interested in developing this route as well as Sleuteltje has been gracious enough to offer the code he used to accomplish this.
Question: Why would be opposed to this "feature" as an native option?