Jump to content


Photo

EPG update via CLI

EPG CLI

Best Answer Jdiesel , 25 January 2019 - 06:03 PM

You could try something like this

curl -X POST "http://localhost:8096/emby/ScheduledTasks/Running/taskID?api_key=key" -H "accept: */*" -d ""

Where the "taskID" is the task id for the Refresh Guide scheduled task and the "key" is your api key

Go to the full post


  • Please log in to reply
6 replies to this topic

#1 death_hawk OFFLINE  

death_hawk

    Newbie

  • Members
  • 7 posts
  • Local time: 11:58 PM

Posted 25 January 2019 - 05:42 PM

Is there a way to force an EPG update via command line?  

 

I'm currently doing a workaround right now where I'm externally downloading an XML file and would optimally like to script in a way for emby to refresh the EPG.  



#2 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 138256 posts
  • Local time: 07:58 PM

Posted 25 January 2019 - 05:51 PM

Hi, no, but you can do this in the web interface. Why not just do that?



#3 death_hawk OFFLINE  

death_hawk

    Newbie

  • Members
  • 7 posts
  • Local time: 11:58 PM

Posted 25 January 2019 - 06:03 PM

Web interface requires me to do work. 
I'd rather just automate it.  



#4 Jdiesel OFFLINE  

Jdiesel

    Advanced Member

  • Members
  • 2682 posts
  • Local time: 05:58 PM
  • LocationRegina, SK

Posted 25 January 2019 - 06:03 PM   Best Answer

You could try something like this

curl -X POST "http://localhost:8096/emby/ScheduledTasks/Running/taskID?api_key=key" -H "accept: */*" -d ""

Where the "taskID" is the task id for the Refresh Guide scheduled task and the "key" is your api key


  • death_hawk likes this

#5 death_hawk OFFLINE  

death_hawk

    Newbie

  • Members
  • 7 posts
  • Local time: 11:58 PM

Posted 25 January 2019 - 06:05 PM

That seems like it would work.  I'll test it. 

Thanks



#6 Jdiesel OFFLINE  

Jdiesel

    Advanced Member

  • Members
  • 2682 posts
  • Local time: 05:58 PM
  • LocationRegina, SK

Posted 25 January 2019 - 06:07 PM

You can use Chrome's debug console to easily figure out the task ID to Refresh the Guide



#7 death_hawk OFFLINE  

death_hawk

    Newbie

  • Members
  • 7 posts
  • Local time: 11:58 PM

Posted 25 January 2019 - 06:15 PM

I found it by just copying the URL out of "Scheduled Tasks" 

 

 

That worked perfectly.  

 

Thanks @Jdiesel







Also tagged with one or more of these keywords: EPG, CLI

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users