API call question

New to Plex and I was wondering if itis possible to use any of the API calls to retrieve all videos in a specific library that has been fully watched and output them to a text file?

Nope, you’ll have to walk the medias one by one, and lookup viewcount

walk the medias?
Not sure I understand…
I currently have a script that finds the filenames of all videos within a specific directory and looks at each of them within another media program (SageTV) to find their watched status and if it is in a watched status moves it to an archive directory. This keeps the temp directory (NotWatched) clean for my wife to see only the videos she hasn’t yet watched. There is no way to accomplish this with Plex?

I mean that you should query the library in small chunks, to get the list of medias, one by one, in order to do this.

But when said, you do know that ExportTools can generate what you want out of the box, right?
And if not, then look in my signature

/T

I installed ExportTools but it does not give me the only 2 important columns I need.
Filename and Watched Status.
Is this tool configurable to add these?
If so, Can the export tools function be called or scheduled to have it run automatically?

If talking about videos, then the filename is a column named “Part File” in level 5
Watched status is for the owner only, since otherwise I would have to do a login as every user defined on the system, for each item, and do not wanna do that (Time costly), and is named “View Count” on level 2

Checkout github.com/ukdtom/ExportTools.bundle/wiki/Movie-Export-Level as well as the code and the rest of the Wiki

/T

Thanks. I found the Part File and increased the Max Lines length to show it all.
The view count does not exist since I am trying to do this for TV episodes.
I went through the wiki page and see that it is not an available column for TV Series…
Is there a reason this field was done for Movies but not TV episodes?

@brianparow@gmail.com said:
Is there a reason this field was done for Movies but not TV episodes?

Because I forgot it :smiley:

github.com/ukdtom/ExportTools.bundle/issues/29

/T