Giter Site home page Giter Site logo

Comments (8)

tegon avatar tegon commented on May 29, 2024

Hi, that seems odd. I just tested here and it showed correctly how many episodes were added.

One thing that is happening - and I will fix it - is that right after you sync, the items don't update in the view. So it still shows no date in Trakt but it is already synced. If you reload the page it should appear synced. Does it still look like it is not synced after you reload?

For problem number 1, I display how many episodes and movies were added based on the response from Trakt's API. You can open your console on the network tab and look for this request (after hitting sync now):

screenshot 2017-04-05 09 18 53
screenshot 2017-04-05 09 19 02

On number two: Traktflix considers an item as synced if it has a play on Trakt.tv on the same day as Netflix. Here is a sample request:

First, the item from Netflix:
screenshot 2017-04-05 09 26 42
screenshot 2017-04-05 09 41 47

Then we check Trakt's history:
screenshot 2017-04-05 09 27 58
screenshot 2017-04-05 09 28 09

And I compare they like this: https://jsbin.com/juhitogaho/edit?js,console

Anyway, this is a very long comment 😅 . If you can check these requests and put the results here, it will help to find the cause of this problem.

Thanks.

from traktflix.

joyrider3774 avatar joyrider3774 commented on May 29, 2024

Hi @tegon,

thanks for the lengthy explanation. Here is some more information ...

I tested it at home yesterday and there i had no problem but will make sure tonight again as i hadn't looked in depth.

But at work it gives me problems. I do know we have a checkpoint (hardware / firewall) in place so it could be the firewall is blocking things although the trakt.tv site works perfectly when browsing it from work and traktflix does seem to be able to get some dates of other episodes i synced in the past.

These errors i noticed initially at work .. It's probably some errors trying to get the images of the shows ...
image and might be unrelated they also don't happen every time when i refresh the page

Then i looked at the trakt api calls... There is one problem i have no way to know what episode id corresponds to which episode / series.. So I'm unable to find the specific call for it in the network list.. Is there a way to find out the episode id of a certain episode while browsing the trackt.tv website ? so i can more specifically find out the requests being made for that specific episode ? i do see some 304's, 204's and 200's as you can see in the screenshot below.
in the screenshot below those episodes are synced (for the ones there is a trakt.tv url found) but traktflix doesn't seem to display it

image

but if i look further down it does show some synced from a previous sync although i can't remember if i synced them from home ore work .. so maybe our firewall is not blocking things or is the browser reading cached results somehow
image

Does traktflix make an api call for every item listed in history ? or does it keep some data about syncs somwhere as well ?

If i could figure out a way to find out which episode id is which episode on trakt.tv i could find out the specific entry in the network settings of chrome as now i have no clue which one to look for.

here is a screenshot of trakt.tv showing a few episode plays from the first screenshot traktflix did not detect and tries to sync again
image

from traktflix.

joyrider3774 avatar joyrider3774 commented on May 29, 2024

okay if figured out a way to know the episode id based on the episode page i'm viewing in trakt.tv if you do view source while being on the episode page you see a meta tag with screenshot url..
for example for hemlock grove seasons 1 epsidoe 13 it shows

<meta property="og:image" content="https://walter.trakt.tv/images/episodes/000/886/087/screenshots/thumb/42b1172c7d.jpg"/>

the id is then 886087

if i look this call up it seems trakt api itselve returns empty values
image

while if i look on trakt.tv itselve it does show one play for this episode
image

so traktflix is not to blame, i will check this tonight at home at see what i get there

from traktflix.

tegon avatar tegon commented on May 29, 2024

Yeah, that is really odd. The only thing that I imagine may be causing this is if you were logged in different Trakt.tv accounts - or Netflix profiles - at your home and work. But I assume that's not the case right?

from traktflix.

joyrider3774 avatar joyrider3774 commented on May 29, 2024

I have only one trakt.tv account using facebook login. I have one netflix account but it does have multiple profiles but i'm always making sure that when i log in to netflix and use traktflix for syncing that the same profile is chosen before i go to account settings and select history so as far as i'm aware i'm using the same ones at work and home for bith netflix and trakt. My other profiles dont show, as far as i'm aware the viewing history of other profiles so i'm pretty sure i'm using same ones at work and home.

One thing i did not try at work yet is clearing chrome's cache and reinstalling traktflix. I did try logging out and logging in again at work. I'll reply when i get home, am on my way now

from traktflix.

joyrider3774 avatar joyrider3774 commented on May 29, 2024

this is the result from home where it works, same id (episode) does get at a result from trakt api but does not at work. i'm using same netflix account and profile as i did on work..
image

I'll clear cache etc and try a few things at work tommorow. But now that i know the issue happens at work i'll make sure to synchronize at home in the future. But still might be good that i check a few things at work to see what might causing it / fixes it in case others ever have the issue

from traktflix.

joyrider3774 avatar joyrider3774 commented on May 29, 2024

@tegon i fixed it at work by clearing the cache / cookies / tempory internet files etc of chrome and logging in / out of trakt.tv in the plugin

So it seems there might be issues with requests that are cached somehow .. now it displays the dates and same data at work also.

As far i'm concerned my problem is solved but still it's weird it was showing cached data somehow (don't know why else clearing cache would have solved it)

from traktflix.

tegon avatar tegon commented on May 29, 2024

Thanks for checking this out. I'm going to close this since it was not a bug in the codebase.

from traktflix.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.