-
Notifications
You must be signed in to change notification settings - Fork 1
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
Watch Later button addition #13
Comments
Hey @loldudester, as far as I know the project is only maintained by @patrickmaher without further development. Other than that, what exactly do you mean be "add the 'add to Watch Later' button"? Do you mean on the "RECENTLY ADDED" page? You just need to add the button with a new API-call to add the video (by UUID) to the list when the videos are retrieved, for example:
So yes, it should be possible :) Also, I think there is an even easier way: The UUID of each episode/show/channel is already in the HTML as data-attributes (how nice).
This way you could just add a little script that reads the data-episode-id value and adds the button. |
@loldudester, I am sorry to say that I don't have time to add any new features at the moment. I am still committed to maintaining the Recently Added page if/when it breaks. Your feature request is a good one and it is something that I wanted to add. In fact I did look into this in the past and figured out it is possible much in the way that @Countryen has proposed. I just didn't have time to build a reliable UI to handle this. If someone wants to go ahead and add this feature please feel free to do so. I'll provide some information on what I wanted from the UI for this feature. I wanted a button that has reliable feedback. The button should update to indicate that the item was added to the watch later list only if the server responds that it has successfully adds the item to the list. If the item is already in the watch later list that should be indicated on the Recently Added page and their should be an option to remove it from the list (again confirming success). Identifying which videos are already in the watch later list requires some planning. We don't want to hit the API server over and over again checking for each video. As @Countryen pointed out, I put data-attributes for each episode in the HTML which could help to mark videos that are already in the watch later list. I'll leave this issue open in case someone wants to tackle it. |
Should not be a problem as the API-call to retrieve the "my watchlist" gives back the complete list. https://lists.roosterteeth.com/api/v2/my/playlists/watch_later/items/
This list could be cached in localstorage and (manually/automatically) refreshed or retrieved on page-load (shouldn't take long). @patrickmaher How would you like the caching to look like or would you prefer to load the complete list on page-load, maybe only cached for the active session (until the window is closed)? |
I know this hasn't seen an update in a while but I figure, don't ask don't get.
Would it be at all possible with how the RT site works to add the "add to Watch Later" button that is found on the built-in site pages?
The text was updated successfully, but these errors were encountered: