How long does it take to refresh "watch later" section? I tried to add a couple of vids, watch them later I cleared those videos and added other, but in youtube plugin it was still only old videos. It took ~1hour or so to update. Can I refresh this manualy and how?
The cache time for the YouTube plugin is set to an hour in order to avoid hammering the YouTube servers while still providing a reasonable user experience. Your scenario sounds like a bit of an edge-case that doesn't make sense to modify the plugin for everyone. If you want to modify your local copy of the plugin bundle, you can move it out of the plugins directory and create a sym-link of the bundle back into the plugins directory. Then change this line (https://github.com/plexinc-plugins/YouTube.bundle/blob/master/Contents/Code/__init__.py#L59)
HTTP.CacheTime = CACHE_1HOUR
to a value that suits your needs. Please note, that you can provide an integer as an argument but it should represent the time in seconds, ie. 1 Hour = 60*60 = 3600. Also, you need to know that the sym-link will prevent the plugin from being replaced by the official store version. That's what we want here. However, that also means that you will not automatically receive future updates. If/when you want/need to update in the future, you can just delete the symlink and allow PMS to download the store version.
I kept forgetting what needed to be adjusted every time I upgraded Plex Media Server so I went ahead and wrote a Puppet module to both install Plex Media Server on Debian and also adjust the YouTube channel cache time. The provided example will set the refresh to 10 minutes.
http://forge.puppetlabs.com/nrvale0/plexmediaserver
Sharing in case anyone else would find it useful.
Actually set it to:
HTTP.CacheTime = 0
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.