-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
feat(P-Stream): Add presence #9254
Conversation
Signed-off-by: moyaimoment <[email protected]>
Signed-off-by: moyaimoment <[email protected]>
You are spamming the API you need to cache it And they don't seem to use iframe so this works |
Whoops.. What would be a good way to do this? 🤔 |
Signed-off-by: moyaimoment <[email protected]>
Signed-off-by: moyaimoment <[email protected]>
After taking a look at the YouTube, Jellyfin, etc API get I created a cache instead of accidently spamming the TDMB API (whoops). |
Signed-off-by: moyaimoment <[email protected]>
Signed-off-by: moyaimoment <[email protected]>
websites/P/P-Stream/presence.ts
Outdated
headers: { | ||
accept: "application/json", | ||
Authorization: | ||
"Bearer eyJhbGciOiJIUzI1NiJ9.eyJhdWQiOiJhNTAwMDQ5ZjNlMDYxMDlmZTNlODI4OWIwNmNmNTY4NSIsInN1YiI6IjY1ZTEyNDAyMmQ1MzFhMDE4NWMwZjJmNSIsInNjb3BlcyI6WyJhcGlfcmVhZCJdLCJ2ZXJzaW9uIjoxfQ.1J3EfnfmpJyZ4MV66eadk3h929zdeZfvjTO2JXhboWw", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a private api key?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The API is free doesn't really matter
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a private api key?
It's the same the website itself uses lol. 🤷♂️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ESLint found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.
318 errors? 😭😭 |
Signed-off-by: moyaimoment <[email protected]>
Signed-off-by: moyaimoment <[email protected]>
const video = document.querySelector('video') | ||
if (video) { | ||
if (!video.paused) { | ||
[presenceData.startTimestamp, presenceData.endTimestamp] = presence.getTimestampsfromMedia(video) |
Check failure
Code scanning / ESLint
Disallow using code marked as `@deprecated`
This can actually be closed because apparently P-Stream is the same as #9284. Will add the getting the cover for TV/movie for largeImageKey after current Pull is merged. |
Description
Was unable to figure out the iframe/video current playtime.
Acknowledgements
yarn format
Screenshots
Proof showing the creation/modification is working as expected