Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refresh needed #47

Open
CollinChaffin opened this issue Mar 4, 2018 · 4 comments
Open

Refresh needed #47

CollinChaffin opened this issue Mar 4, 2018 · 4 comments

Comments

@CollinChaffin
Copy link

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
Copy link
Author

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
Copy link
Author

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.

@kolsys
Copy link
Owner

kolsys commented Mar 18, 2018

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.

@CollinChaffin
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants