-
Notifications
You must be signed in to change notification settings - Fork 115
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
Resuming videos from the progress saved in YouTube #505
Comments
As far as I know this is impossible as there's no way to retrieve the progress information. Further, if you watch a youtube video in kodi, progress is not being tracked on youtube. On this note... |
Thanks for your reply! The official webapp (www.youtube.com/tv) supports both writing and reading progress information, so I assumed it might technically be possible. Real shame, because syncing both ways would be a huge improvement in usability imho! |
I was actually thinking of If it actually does allow to read/write you are very welcome to share more details! !!! THAT SAID !!!Setting the progress (which would affect history and play-count) on youtube is prohibited.
* Not word by word what they said but you get the idea and I think it's only play-count but I'm not 100% There are many valid reasons for google to hold this position (most notable one being -> no ads in kodi) Anyways, pulling progress information might still be an interesting aspect. @anxdpanic Hope you don't mind me pulling you in on this. |
@tadly I was not aware of that stance, and currently the add-on does add to history and as of this version would track play time. I will have to remove this for the next beta. |
@anxdpanic you mean it does track it on youtube or tracks it within kodi? Within kodi is fine!! |
Testing this right the heck now and I can confirm this seems to be working. Don't get me wrong, I'd love for this to work and be part of the add-on as I myself wrote a (private) add-on which spawns a browser in the background playing the video in low quality just to achieve this (without google being able to say anything about it). Before you start removing stuff I'll actually talk about this in the team real quick. |
hah, I'd love to keep this as part of the add-on as well. I understand the stance though, and the feature is of no use without the add-on :) Thanks for checking, will hold off on removing until you've had a chance to confirm. |
Just out of curiosity, how stable do you think this is gonna be? Back when I tried to find a way to track progress I found that google does a lot to validate whether or not it's a real watch or not by, even after the video has been watched, validating stuff server side, retroactively removing the watched state if deemed invalid. Either way, 👏 for managing to get this working in the first place! |
Adding it to history was working for a few versions, only recently they changed where the url was. As it was, it always marked the history at the start of the video but there were never any reports of history items going missing. |
Alright, good news! Now if you manage to get polling in as well (so it's both ways) we are beyond golden! :D Edit: Sorry for me saying google prohibited this. I was certain this was their stance at some point but I must misremember things |
Sounds good! Thank you again for confirming. Haven't looked yet, but the things I'm worried about with pulling are;
|
In regards to polling. I agree that polling the exact progress will cause a lot of requests which is undesirable. A more simplistic approach, without progress, could be to just mark videos watch based on them existing in the history playlist. |
Now that I'm more often watching videos on youtube outside of kodi, I wanna bump this again :) As mentioned in my previous comment, not setting the progress itself but at least the watched state within kodi would already be huge. The "how to implement this" should probably be discussed again. Instead pulling...
...would make more sense and be less likely to miss videos. A service could then trigger this once an hour (I think that's reasonable). Do you think this would be difficult to add? |
It would be awesome if this add-on could use the video-progress saved in Youtube. This would enable cross-device resuming of videos which is a really cool feature, especially for the "Watch Later" playlist.
The text was updated successfully, but these errors were encountered: