YouTubeTV.bundle icon indicating copy to clipboard operation
YouTubeTV.bundle copied to clipboard

Refresh needed

Open CollinChaffin opened this issue 7 years ago • 4 comments

This plugin does still work, however it does nothing apparently to EVER refresh it's view and re-retrieve the lists. Once you pull down one of your playlists like "watch later", forget adding anything with a PC and hoping it will show up. In fact, I honestly think the only way to get it to re-read the list is a full client restart. Add even a manual refresh menu item that even does a blanket wipe of it's caches of ALL objects would make this my #1 used Plex channel!

CollinChaffin avatar Mar 04 '18 18:03 CollinChaffin

EDIT: Nope. Wow not even a full client restart makes this channel re-read a playlist once cached. So I guess I'll start digging into the code to figure out when (if ever) it will actually consider the playlist feed stale and re-fetch it.

CollinChaffin avatar Mar 04 '18 18:03 CollinChaffin

Update 03-04-2018_01:31PM:

Fix

Navigate to your "AppData\Local\Plex Media Server\Plug-ins\YouTubeTV.bundle\Contents\Code" folder and edit "init.py".

Change line 93 from this:

    HTTP.CacheTime = CACHE_1HOUR

To this:

    HTTP.CacheTime = 0
    HTTP.ClearCache()

And simply relaunch the channel and now you will have a fully dynamic youtube channel that you can literally on a pc add a video to your "watch later" playlist and now all that's needed is a simple page back and forth (next page) and INSTANTLY your newly added video will be in the list on Plex.

Hope this helps somebody else. You can certainly tune down the cache to 5 min etc. if you wish but I very often while I work have plex open and if directed to an online Youtube vid like the ability to very quickly bring it up on the TV screen in the room to allow continued multitasking without having to have a video running on my desktop.

CollinChaffin avatar Mar 04 '18 19:03 CollinChaffin

Your patch does not affecting API calls and incorrect. If you you need realtime update of your playlist you need change line 1063. But you must understand that every youtube api call has cost and its limited for free using. I can't set zero time caching for everybody.

kolsys avatar Mar 18 '18 00:03 kolsys

It is correct. Try it to verify. The added videos will now appear INSTANTLY with the line changes above and no other changes including the one you referred to. I simply want videos added to the list to appear without having to wait A FULL HOUR which is the way you have it now and is just ridiculous I too am a dev and the youtube API isn't going to be overrun by this small of a RSS change for "watch later" videos.

CollinChaffin avatar Apr 28 '18 02:04 CollinChaffin