danmarcoux 6 Posted May 25, 2023 Posted May 25, 2023 Is there anyway to tell (or otherwise notify) Emby to get an update M3U file? Other the GUI, that is. Every once in a while the web address of a channel in my M3U get's updated. I usually have to go in to the Emby GUI, hit Edit for the TV Source, then Save (without making any changes). It'd be nice if I could just tell Emby via an API call or something to just update the TV Source.
Luke 42077 Posted May 25, 2023 Posted May 25, 2023 HI, yes, using the Emby API you can trigger the refresh guide scheduled task to be run on demand: https://github.com/MediaBrowser/Emby/wiki
danmarcoux 6 Posted May 26, 2023 Author Posted May 26, 2023 Ah, yes, found it! I was looking under "Live TV" not "Scheduled Tasks". Thank you very much! 1
BillOatman 596 Posted May 27, 2023 Posted May 27, 2023 On 5/26/2023 at 1:39 AM, danmarcoux said: Ah, yes, found it! I was looking under "Live TV" not "Scheduled Tasks". Thank you very much! I wrote a open source command line application that will cause a refresh.
danmarcoux 6 Posted May 30, 2023 Author Posted May 30, 2023 Since I do most of scripting in Ubuntu under WSL, I was thinking about writing something in Python. For this "quick and easy" job, I just have everything hardcoded (the Scheduled Task ID for running the Refresh job, and my API Key). But I will revisit it one day in the near future and make it a bit more generic and distibutable.
danmarcoux 6 Posted May 30, 2023 Author Posted May 30, 2023 1 hour ago, danmarcoux said: Since I do most of scripting in Ubuntu under WSL, I was thinking about writing something in Python. For this "quick and easy" job, I just have everything hardcoded (the Scheduled Task ID for running the Refresh job, and my API Key). But I will revisit it one day in the near future and make it a bit more generic and distributable. Well I guess that "near future" turned out to be tonight. RefreshEmbyGuide.py --api_key API_KEY {--name HOSTNAME (or address) (default: localhost)} {--port PORTNUMBER (default: 8096)} or (if you don't like long argument names): RefreshEmbyGuide.py --a API_KEY {--n HOSTNAME (or address) (default: localhost)} {--p PORTNUMBER (default: 8096)} (requires Python 3.6+) RefreshEmbyGuide.py 1
vdrover 62 Posted April 18, 2024 Posted April 18, 2024 On 5/30/2023 at 1:04 AM, danmarcoux said: RefreshEmbyGuide.py 1.7 kB · 4 downloads Working well. TY!
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