leonekmi / scrobbly Goto Github PK
View Code? Open in Web Editor NEW↩️ Scrobble your animes to Anilist, Kitsu!
Home Page: https://scrobbly.leonekmi.fr
License: GNU General Public License v3.0
↩️ Scrobble your animes to Anilist, Kitsu!
Home Page: https://scrobbly.leonekmi.fr
License: GNU General Public License v3.0
What is the name of the website ?
Anime Twist
twist.moe
Do you know if the website has an open API (in case of anime list or datasource) ?
I do not believe so, but the URL is easily parsable.
if (typeof items['access_token'] == 'undefined') {
isLoggedIn = false;
} else {
isLoggedIn = true;
}
if (isLoggedIn == true) {
This code is some of... weird, i written that when i was drunk i think :D, also add a message, e.g. "You must login to use Anilist Scrobbler, click here to login".
Hulu is a streaming service available in U.S.A., it is paid and it doesn't have free option (the free trial need a credit card input).
Help wanted : I need access to a Hulu account.
Anime On Demand is a legal german streaming service for anime. Could you add it to the supported websites?
Anime On Demand
i18n in scrobbleAnime() <- helpers.js is missing
Ponimu is Indonesian legal anime streaming service.
Example link:
https://ponimu.com/streaming/project_itoh__genocidal_organ
https://ponimu.com/streaming/meiji_tokyo_renka___episode_9
https://ponimu.com/streaming/eden_of_the_east___episode_11
https://ponimu.com/streaming/polyphonica___episode_1
So I was watching Symphogear G on Crunchyroll
and in the beginning I was asked if I was watching Symphogear G or GX, which is fine,
but I got the question over and over again after every switch to the next episode (and thus, new page loads).
If it was possible, I think it would be nice to remember this choice somehow.
Of course, remembering that could be a problem as soon as I start watching Symphogear GX (being the next season), right after it.
Perhaps you could solve it in such a way that, as soon as the user is given a choice between anime names and chooses one, remember not just the answer but the given choices as well, and as soon as the user gets to the next episode, which triggers the identification again, if the scrobbler finds the same two anime names again and would be about to ask the exact same question once more, just don't do that and use the last choice again.
In my scenario, this would work all the way up to the last episode of Symphogear G, and as soon as I'd switch to Symphogear GX, the scrobbler would only find one anime named like that anyway, or at least certainly a different list of possible anime names than last time, and could then ask the user again, if neccessary.
So today I noticed, when I had a crunchyroll video tab left open,
that the anilist-scrobbler still scrobbled the anime episode after 3/4 of the episodes time,
and a quick look into the source confirmed this.
While getting information from the flash player, say on Crunchyroll, is probably impossible,
I thought about a solution for this. Why not check every 10 seconds or so, or even every minute if audio and/or video is actually playing in the tab, and if not, pause the timeout for the time being?
This should work really well, since (I tested this on CR) chrome is really quick in updating the status (audio playing / not playing), so pausing and resuming the timeout based on that should be a fairly accurate way of scrobbling it just at the right time.
https://stackoverflow.com/questions/41649874/how-to-detect-if-a-chrome-tab-is-playing-audio presented a simple solution on how to check if anything is playing, so in theory, someone could simply alter the helpers.js code without having to write specific code for every site.
I might try that out later on, but I'm not too fond of ECMA 6 and all, so you're probably quicker than me ;)
I think this is mainly a "problem" with how Crunchyroll works and not with your extension per se.
When watching anime on Crunchyroll, and switching to full screen,
instead of going to another page, the Crunchyroll web player will load the next episode directly,
and thus won't trigger the scrobbling on the next episode. Only when leaving full screen,
it will jump to the new page of the currently watched episode.
That in turn means, if you start at episode one, it will probably still scrobble it, as you have gone to that particular episode page for watching it. But when you entered full screen mode there, watched all episodes up to say episode 5 and then leave the full screen, it will let the browser load the page for episode 5, and the scrobbler will scrobble this one. So in the end, you only scrobbled Ep1 and Ep5.
As mentioned, it's not really an issue, as it would still be tracked correctly on anilist (watched 5 episodes in the end), but if it was possible to track the other ones as well somehow, this would make it look better in status feeds, as the feed would say "AnukWolf (that's me btw ;)) watched episode 1-5 of.." instead of "AnukWolf watched episode 1" and "AnukWolf watched episode 5".
Hello there, I've stumbled upon your extension just recently and if you could collaborate with a person who is syncing MyAnimeList without using their API
their github page is: https://github.com/lolamtisch/MALSync/
I'd love to hear from you soon
The Website is called Wakanim. Its already implemented BUT only the french Version.
I looked into the Source Code and found this line:
this.urlregex = /https:\/\/www.wakanim.tv\/fr\/v2\/catalogue\/episode\/([a-zA-Z0-9-]+)\/([a-zA-Z0-9-]+)/;
I think to get it work in germany it should "just" switch www.wakanim.tv\/fr to www.wakanim.tv\/de
The rest of the url should be the same
Example:
https://www.wakanim.tv/de/v2/catalogue/episode/8145/kaguya-sama-love-is-war-omu-staffel-1-folge-1-omu
Would be awesome if you can get this to work!
Hello,
Great project you have there, in the README i saw something about creating an issue dedicated for the request websites, as there's nothing in the issues tab, i'm humbly posting this request for plex.
Merci encore,
Cheers,
I installed a WebLate to help those who don't know JSON format.
https://translate.leonekmi.fr/projects/scrobbly/webextension/
Placeholders are removed when using this tool : 58ce628
I reported this issue to WebLate here : WeblateOrg/weblate#2457
You can test this here, for example: http://www.crunchyroll.com/gintama/episode-138-why-not-talk-about-the-old-days-for-a-change-516254
For me, after the site loads, it correctly shows the anilist scrobbler popup but it doesn't go any further than
"Anilist Scrobbler : Starting...".
I also get the following messages (and errors) in the console:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.