-
Notifications
You must be signed in to change notification settings - Fork 113
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
TV Shows added to IMDB Top Movies list? #228
Comments
@BEisem Please include version info in your bugreport! But other than that, I don't understand what are you reporting here:
I'm not familiar with the feature myself. |
Sorry, I don't know how to determine the version. I pulled this from the "main" branch. Is that sufficient? How else can I determine the version I'm using? As far as the problem... the list is called IMDB Top Rated Movies, but it is adding TV show episodes to the list. I guess I would expect it to add movies to a movie list, not TV episodes. I'm not familiar with the feature either, I just noticed the entries in the logs, so I figured if it was going to add things to a movie list, it should be adding movies, not TV episodes. |
Third time already pointing you to this info: I do not know what means "pulled from the main branch" in your case. if it's |
regarding the issue at hand: ok, now I see what you mean. if you don't use the feature you can turn it off, it's either "liked_lists" or "watchlist":
|
Ok, previously I was downloading the zip file from the "main" branch, but now I understand how to use I know I could turn off the feature, but as a test, I believe it should be fixed anyway, in case someone does want to use the feature. |
I don't argue it shouldn't be fixed :) |
The script is mixing trakt ids from Movies and TV episodes. That's the reason. Some trakt ids are identicals such as 1034 corresponding to both :
id 1040 corresponding to both :
I didn't dig further into the code yet. Trakt doc says :
Trakt Q&A : trakt/trakt-api#287 |
@twolaw can you point to any code you looked at? at least our search_by_id trakt method matches correct media type:
however, our extra check is no longer necessary there, as media_type is passed as an argument. haven't yet cleaned up. |
I don't think it's in this search_by_id function. edit : I'm completely lost will the complete code revamp you did (unexplicit variables such as tm, te, pe,...) |
@twolaw ah, I thought you already looked at the code. |
pm/tm/pe/te are gone now (mostly): |
@twolaw I have not refactored the watchlist thing. so it's just carried over preserving original behavior/logic. I have not touched that part at all, so I can't comment as I don't understand it. ps: the latest code is in ps2: here's an overview of the branches: #162 (comment) |
Yes I get it now. As far as I understand it :
The script stores watchlist and custom list as
|
@glensc why is there PlexTraktSync/plex_trakt_sync/commands/sync.py Lines 138 to 139 in cdb1aae
In 0.6.x the logic has changed and it looks like addPlexItemToLists for movies have been removed f647c82 Can you help me understand ? |
@twolaw I guess I was confused with the listutil line below when refactoring:
Submitted a possible fix: #287 |
No, I'm waiting an answer to trakt/trakt-api#287 then I'll write a fix. |
@twolaw I don't understand that question there. you should include URLs or API queries where you got those results. to be clearer. and also, what is unicity? as I answered here before, each domain (movie,show,episode,actor,director, etc) has its own id, so across the domains, it's expected to have id overlap. you should match with media_type in the queries. as for example for search I already provided an example: |
As I said it is a clearly defined bug in trakt_list_util (line 17 and more) it is not a problem about trakt queries or trakt answers. |
@twolaw can you give me instructions on how to sync a specific list? I've never used this feature so I don't know how it works, and I can't find any documentation. Otherwise I'd be happy to test it... |
Just make sure liked_lists is at True in config file then go for a sync. |
Ok, that's what I thought ... but I'm getting errors. Do I have to have a playlist in Plex named IMDB: Top Rated Movies?
|
I tried creating new playlists on Plex called |
My mistake, I should have told you that syncing lists can be properly achieved only if you sync all Plex libraries. Reminder : you use files from https://github.com/twolaw/PlexTraktSync/tree/fix-addPlexItemToLists for this test of course. ERROR Playlist not found lines are not important here. |
Ah, ok... I see. I am starting a full sync now. I don't typically do full syncs because of the size of my library, but I'll let you know the results when it finishes. It will take a few hours, most likely. And yes, I am using the files at the ink you posted above for this test ... So far, it seems to be working, or at least doing something...
Although I looked in Plex and I don't see those entries added to a Playlist yet. Does it add them in Plex at the end of the run? |
Yes, at the end. |
I just completed a full sync, and it worked! Both playlists were added to Plex at the end of the sync. I have a couple of suggestions. Let me know if you want me to add them as separate Feature Request issues... The first is, I know you changed the "Playlist not found" to debug log level, and that will get rid of the errors. But it would be nice to have some sort of output at the end, indicating how many (if any) items were added to each list, or what actually happened during the playlist sync. The other thing, if it's possible, it would be great if it would sync playlists without having to do a full sync of all libraries. If there is a way to add in this logic, let's say I sync only Movies libraries ( |
One other thing, I just noticed after running this, the trakt_cache.sqlite file has ballooned from 115.6MB to 1.96GB. Did the playlist sync really add that much more to the cache file? |
I don't think the cause is playlist. |
I'm not so sure ... I've run both But then, after running a full sync using #293, suddenly the cache file is almost 20x larger. It's not a big deal, because it's still a reasonable size, but I just wanted to point it out as a possible problem. I'll try running a full sync using the main version, and see if I get the same results afterwards... |
I just completed a full sync using the main branch, and the |
Ok then you can create a new issue about this cache size problem. I close this issue now. |
I merged to 0.9.x cache command that can print URLs (requires requests_cache 0.6.x): it may be useful giving idea of cache contents. |
When I do a full sync, I'm seeing several entries in the log like the following:
The problem is, it is indicating that a TV show episode is being added to a list called IMDB Top Rated Movies.
The text was updated successfully, but these errors were encountered: