tegon / traktflix

Trakt.tv + Netflix = :heart:
https://tegon.github.io/traktflix
MIT License
403 stars 45 forks source link

Extension pulled from Chrome Web Store #86

Closed tjorim closed 5 years ago

tjorim commented 6 years ago

Seems like this extension got pulled from the Chrome Web Store. https://chrome.google.com/webstore/detail/bmoemkaigjgcgjjnpmdgkifndiidkeji Gives a 404 error, searching for it doesn't work either.

Jepes commented 6 years ago

Hi, Any idea how to install it again ?

AnderssonPeter commented 6 years ago

Is it dead? i sure hope not!

noah978 commented 6 years ago

As a more temporary fix, do you know how to access the timestamps in netflix's viewing activity?

Mosney commented 6 years ago

So anyone know how to install now? Any crx file could be download?

rafaelgomesxyz commented 6 years ago

@noah978

  1. Visit the source code of https://www.netflix.com/Activate (view-source:https://www.netflix.com/Activate)
  2. Search for "BUILD_IDENTIFIER":"[Value1]" and write down [Value1]
  3. Search for "authUrl":"[Value2]" and write down [Value2]
  4. Visit https://www.netflix.com/api/shakti/[Value1]/viewingactivity?authURL=[Value2]&pg=[Page], replacing [Value1] and [Value2] with the values you got from steps 2 and 3, and replacing [Page] with the page you want (starts at 0)

The dates are stored as an integer number, so to make it easier to get them, open the browser console (F12 or Ctrl + Shift + I) and paste this code:

json = JSON.parse(document.body.textContent.replace(/^.*?({)|(}).*?$/, `$1`));
for (const item of json.viewedItems) {
  console.log(`${item.seriesTitle}, ${item.seasonDescriptor}, ${item.episodeTitle}, ${new Date(item.date).toLocaleString()}`);
}

I'm currently porting the extension to Firefox and I hope to distribute it soon, in case anyone is interested in that.

noah978 commented 6 years ago

Thanks! That’s incredibly helpful, look forward to seeing the Firefox extension. 👍

rafaelgomesxyz commented 6 years ago

I've distributed the extension on Firefox: https://addons.mozilla.org/en-US/firefox/addon/traktflix/

For Chrome users, you can use the extension by downloading app.zip from here. You just have to extract the files from the .zip file to a folder and load the folder through "Load unpacked" in the developer mode of Chrome's extensions page.

andyosier commented 5 years ago

I believe Chrome users can also use this version without any issues. You just have to extract the files from the .zip file to a folder and load the folder through "Load unpacked" in the developer mode of Chrome's extensions page.

That worked perfectly. Using it in Chrome right now.

rafaelgomesxyz commented 5 years ago

@andyosier The link was outdated, did you get v2.0.3? I've updated the link just now. The only annoying thing about using it on Chrome like this is that every time you open the browser you will get a message saying that using extensions in developer mode is dangerous and you will have to dismiss that message every single time. Unfortunately I can't pay Google's developer fee to distribute it in their store.

andyosier commented 5 years ago

I got v2.0.3 from the Mozilla website.

On Thu, Nov 1, 2018 at 2:11 PM Rafael notifications@github.com wrote:

@andyosier https://github.com/andyosier The link was outdated, did you get v2.0.3? I've updated the link just now. The only annoying thing about using it on Chrome like this is that every time you open the browser you will get a message saying that using extensions in developer mode is dangerous and you will have to dismiss that message every single time. Unfortunately I can't pay Google's developer fee to distribute it in their store.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/tegon/traktflix/issues/86#issuecomment-435130114, or mute the thread https://github.com/notifications/unsubscribe-auth/AH9YB6aHv7JB57mkycCTP7g2JJh4bvt3ks5uqzk1gaJpZM4W1o_g .

vc4u commented 5 years ago

Firefox addon worked like a charm. very helpful. Though, if I can ask one feature request, for if scrobble is enabled, it auto fullscreen the playing video. If at all it is possible :-)

tegon commented 5 years ago

Sorry everyone, I was away on vacations for a while and then I got sick so I’m away from GitHub for a long time. I only saw this now and I apologize for this. Seems like Google removed it from the store because I was supposed to update some privacy terms. When I get back home next week I’ll look into that and as a last resource I can generate a file and upload it to the website so that you can download directly. Sorry again for all the trouble.

On Sat, 3 Nov 2018 at 11:04 VarunC notifications@github.com wrote:

Firefox addon worked like a charm. very helpful. Though, if I can ask one feature request, for if scrobble is enabled, it auto fullscreen the playing video. If at all it is possible :-)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/tegon/traktflix/issues/86#issuecomment-435579134, or mute the thread https://github.com/notifications/unsubscribe-auth/ADjh07liILtB34to9Yc4oslVuQGmP53Nks5urXhGgaJpZM4W1o_g .

BuSHari commented 5 years ago

Feel better @tegon , maybe you can merge with @gsrafael01 fork?

tegon commented 5 years ago

Sure, I'm not sure what changed exactly though. @gsrafael01 What did you need to change in order to make it work with Firefox?

rafaelgomesxyz commented 5 years ago

@tegon To make it work with Firefox, very little. Firefox uses WebExtensions since v57, which has an API that is very similar to Chrome's. I only had to add a fallback method for declarativeContent, which is not yet available on Firefox, and remove launchWebAuthFlow, because Chrome's launchWebAuthFlow requires a chromiumapp.org page, and I don't have one. So the authentication process now takes place in a new tab.

But I made a lot of changes, you can see the commits here. Among them:

ghost commented 5 years ago

screenshot_39

@gsrafael01 I've had this error for the last 5 days. Everytime I open a movie/episode of a series, I get it. This happens on 2 different pc's (both Firefox). Any idea how to solve this?

rafaelgomesxyz commented 5 years ago

@Skardy Can you turn on Rollbar in the options menu so I get some more info about the error?

ghost commented 5 years ago

@gsrafael01 I just found out that the extension is not in my list on the top right corner. It is when I go to the Add-ons manager. It's the exact same on my other pc. It was never there to be honest. Any idea? screenshot_40

rafaelgomesxyz commented 5 years ago

@Skardy That's the default behavior, the extension only appears in the top right corner of the search bar when you are on a Netflix page (open any Netflix page and you'll see it).

ghost commented 5 years ago

@gsrafael01 Oh wow, I feel so stupid. It works now, I didn't even notice that. Thanks for your help and sorry for wasting your time. Awesome app though! Could use some improvement, but cool design!

rafaelgomesxyz commented 5 years ago

@Skardy If you have any suggestions for improvements, feel free to open an issue, I'd be happy to work on it.

HakimD commented 5 years ago

@noah978

  1. Visit the source code of https://www.netflix.com/Activate (view-source:https://www.netflix.com/Activate)
  2. Search for "BUILD_IDENTIFIER":"[Value1]" and write down [Value1]
  3. Search for "authUrl":"[Value2]" and write down [Value2]
  4. Visit https://www.netflix.com/api/shakti/[Value1]/viewingactivity?authURL=[Value2]&pg=[Page], replacing [Value1] and [Value2] with the values you got from steps 2 and 3, and replacing [Page] with the page you want (starts at 0)

The dates are stored as an integer number, so to make it easier to get them, open the browser console (F12 or Ctrl + Shift + I) and paste this code:

json = JSON.parse(document.body.textContent.replace(/^.*?({)|(}).*?$/, `$1`));
for (const item of json.viewedItems) {
  console.log(`${item.seriesTitle}, ${item.seasonDescriptor}, ${item.episodeTitle}, ${new Date(item.date).toLocaleString()}`);
}

I'm currently porting the extension to Firefox and I hope to distribute it soon, in case anyone is interested in that.

Hi @gsrafael01 , @tegon

I just discovered your work, its great! Do you know why sometimes the api returns "undefined, undefined, undefined, 29/11/2018..."

Ty

rafaelgomesxyz commented 5 years ago

@HakimD Oh sorry, I forgot about movies. This should work:

json = JSON.parse(document.body.textContent.replace(/^.*?({)|(}).*?$/, `$1`));
for (const item of json.viewedItems) {
  if (item.seriesTitle) {
    console.log(`TV SHOW: ${item.seriesTitle}, ${item.seasonDescriptor}, ${item.episodeTitle}, ${new Date(item.date).toLocaleString()}`);
  } else {
    console.log(`MOVIE: ${item.title}, ${new Date(item.date).toLocaleString()}`);
  }
}

But there's no need to do that anymore, if you use the version I distributed for Firefox.

HakimD commented 5 years ago

@gsrafael01 It's ok. thanks. Is there any documentation on internet about how to use netflix's api?

MrMamen commented 5 years ago

I'm already a (minor) contributor to this repo, I may want to continue contributing. But has @tegon stopped maintaining this? I would gladly switch to @gsrafael01 but not if the end result is two diverging forks. I would like to see one unified traktflix project.

tegon commented 5 years ago

@MrMamen you're right. Sorry I haven't given any update here, I'm trying to get this back in Chrome Store.

@gsrafael01 That's great! Seems like you've made a lot of improvements. If you want to, I'll be glad to accept a pull request to merge your changes here and add you as a maintainer so that we can work together on this.

rafaelgomesxyz commented 5 years ago

@HakimD Unfortunately not. It's not really a public API. Someone started documenting it here, but it's not a lot. So I've been mostly watching the Network tab of the browser to see how Netflix uses it.

@tegon Sure, made a PR. I can add launchWebAuthFlow back if you want, since you have a chromiumapp.org page.

HakimD commented 5 years ago

@gsrafael01 Ok thanks

ImDini commented 5 years ago

I keep getting "Activate your device" on netflix when trying to connect the app.zip addon. I am stuck with logging in basically on chrome. I tried opening netflix on other devices for a code to popup but nothing at all.

rafaelgomesxyz commented 5 years ago

@DiniOG I just tested and got the same thing, but if I close the activate window and open the traktflix popup from the browser toolbar, it shows that I'm logged in. Does it not log you in at all?

cryptochrome commented 5 years ago

One month later and it's still not available on the Chrome Webstore :-/

cobrabr commented 5 years ago

@gsrafael01, @DiniOG -- that worked for me as well. Also, thanks a bunch for the improvements, @gsrafael01! :)

FryGuy1981 commented 5 years ago

What is the status on the extension in the chrome store? Still working on getting it back?

lonelyfairie commented 5 years ago

I tried loading the extension in chrome as unpacked but I get an error saying unable to load manifest, is there any way around this?

rafaelgomesxyz commented 5 years ago

I don't know when @tegon will get the extension back in the Chrome store, and I don't want to overstep that distribution, since my main focus is Firefox, but I've published a temporary unlisted version of it: https://chrome.google.com/webstore/detail/traktflix/ehlckfimahifadnbecobagimllmbdmde I'll delete it as soon as the original extension is back in the store. I tested it very quickly and it seems to be working.

MrMamen commented 5 years ago

What is the current status of this repo? @tegon seems to be mostly away. But did @gsrafael01 get maintainer status? I have a few improvements I have been implementing on my traktNRK-fork, which I will be happy to contribute back to this project. But I will not bother doing so if my Pull Requests are ignored.

thilux commented 5 years ago

Any news on the status of getting trakflix back into Chrome Web Store?

ImDini commented 5 years ago

Installing the extension by gsrafael01 works just fine. Just had issues with the manual extension we were having to install. Verified/activated instantly when signing into trakt.

FryGuy1981 commented 5 years ago

The gsrafael01 extension works perfectly for me. Thank you.

tegon commented 5 years ago

I'm still having issues with Chrome Store privacy policy's 😞 I've been unable to find time to work on this lately since I'm maintaining other open source projects now. But I'll try to work with @gsrafael01 to see whether we can publish a new version to the store.

I think for now it's better to use the unpublished version above.

redxtech commented 5 years ago

Just migrated to @gsrafael01's version. Looks like those were some good changes to implement.

What sort of issues are there with the new privacy policy? Is it just some stuff that you have to change in your policy or do you have to fundamentally change parts of the extension to comply?

rafaelgomesxyz commented 5 years ago

@redxtech Apparently they didn't say the exact reason why the extension was pulled. I believe that it could have been because of the use of Google Analytics and Rollbar without the consent of the user, but tegon said he submitted a version removing those features and it still was rejected. The last version he submitted was my version, which makes Google Analytics and Rollbar completely optional, so we'll see if they reject it this time.

redxtech commented 5 years ago

Ah ok sounds good. Yeah hopefully that would make it work with their policy. They really should tell you at least generally the part of their ToS/provacy policy that you're violating.

raulcraveiro commented 5 years ago

The @gsrafael01 Chrome version isn't working here, just the Firefox version. And I tried to upload the unpacked version on Microsoft Edge Chromium and it says that is missing a manifest file.

raulcraveiro commented 5 years ago

Oh, nevermind, when I changed the permissions on the extension, it worked. ♥