Cluttered 15 Posted May 3, 2025 Posted May 3, 2025 I use gPodder to download podcasts and they are stored in "/Volumes/4TB-Data/MacTubes/<PODCASTS>". I schedule it daily and it works fine. However, (yes there's always a but), once the podcast has been played it does not get removed. gPodder is supposed to do a clean-up each time the "gpo" command runs so either that doesn't work or it doesn't recognise the file has been played (that would be my guess). Is there any way to fix this? Is there some way to query the database maybe to identify the played files in that directory and then use bash to delete them. I could use Hazel or Keyboard Maestro to then script that and run it daily. I really don't want to have to just manually remove them when I remember. Mark.
Cluttered 15 Posted May 3, 2025 Author Posted May 3, 2025 Well I suppose ideally I would like an option on a library to say 'delete items after play' or some such, or 'keep last x items' where x could be 0 which would do the same thing but be more flexible. I was just really wondering if there was some quick way I could get the information on what had been played and it's path so I could delete them via a script. But obviously the other way would be much better.
Luke 42077 Posted May 3, 2025 Posted May 3, 2025 Right, currently, you could use the api or the user interface to filter on what's played.
Cluttered 15 Posted May 3, 2025 Author Posted May 3, 2025 Yes I'd like to automate it but have no idea how to use the api. I was hoping someone might have done it before or something similar. For me they are podcasts but emby just sees it as a library of video files (mp4).
Luke 42077 Posted May 3, 2025 Posted May 3, 2025 4 minutes ago, Cluttered said: For me they are podcasts but emby just sees it as a library of video files (mp4). Correct. Api: https://github.com/MediaBrowser/Emby/wiki
Cluttered 15 Posted May 3, 2025 Author Posted May 3, 2025 Are there any examples anywhere? Never used the API. http://localhost:8096/emby/Users/Mark/Views?api_key=xxx Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx) obviously the user should be a guid not a name but no idea where I find that, let alone list a specific libraries contents and add filter criteria. I'm sure once I get started it will be fine but getting started...
Luke 42077 Posted May 3, 2025 Posted May 3, 2025 There's lots of helpful info in the api section: https://emby.media/community/index.php?/forum/47-developer-api/
Cluttered 15 Posted May 3, 2025 Author Posted May 3, 2025 Right. This works: http://localhost:8096/emby/Users/<userguid>/Views?api_key=<apikey> but this gives an error: http://localhost:8096/emby/Users/<userguid>/Items?Recursive=true&IncludeItemTypes=Movie?api_key=<apikey> Access token is invalid or expired. Can you point me in the right direction to get me going?
Cluttered 15 Posted May 3, 2025 Author Posted May 3, 2025 http://localhost:8096/emby/Users/<userguid>/Items?parentId=<parentid>&IncludeItemTypes=Video&IsPlayed=true&api_key=<apikey> Works now, thank you for your help. 1
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now