Skip to content

Fix trakt_list submit#1375

Merged
cvium merged 4 commits intoFlexget:developfrom
cvium:trakt_add_lookup
Aug 31, 2016
Merged

Fix trakt_list submit#1375
cvium merged 4 commits intoFlexget:developfrom
cvium:trakt_add_lookup

Conversation

@cvium
Copy link
Copy Markdown
Contributor

@cvium cvium commented Aug 27, 2016

Motivation for changes:

Adding episodes to a trakt_list required a lookup which is unnecessary.

Detailed changes:

  • Reverted aaf1a69 and fixed the bugs in a saner way.

@cvium cvium changed the base branch from develop to next August 27, 2016 21:16
@liiight
Copy link
Copy Markdown
Member

liiight commented Aug 27, 2016

Looks good. Maybe add a specific test for it?

@cvium cvium added the Next label Aug 28, 2016
@gazpachoking
Copy link
Copy Markdown
Member

gazpachoking commented Aug 31, 2016

What fields were not getting populated by trakt list that requires a separate lookup? I'm not wild about hard coding lookups into other plugins.

@liiight
Copy link
Copy Markdown
Member

liiight commented Aug 31, 2016

Trakt list will probably populate correctly, the thing is when trying to add to collection from non-trakt sources, like feed, filesystem etc.
The internal lookup is just a convinience to remove the need to manually add trakt_lookup from the user. I think there's nothing wrong with 3rd party lists calling their respective lookup, this is not the same situation as was with movie_queue

@cvium
Copy link
Copy Markdown
Contributor Author

cvium commented Aug 31, 2016

Episode ids are not populated from trakt list.

@paranoidi
Copy link
Copy Markdown
Member

You need to do this consistently in ALL lists, not just one.

@gazpachoking
Copy link
Copy Markdown
Member

gazpachoking commented Aug 31, 2016

Episode ids are not populated from trakt list.

Is that because trakt doesn't return them when getting the list? If it does return them, lets make it so trakt_list populates them.

The internal lookup is just a convinience to remove the need to manually add trakt_lookup from the user. I think there's nothing wrong with 3rd party lists calling their respective lookup, this is not the same situation as was with movie_queue

Isn't this the exact same situation as movie queue? I agree hard coding trakt lookup isn't as bad here as it would be for other plugins, since this is also a trakt plugin, but I'm still not wild about it. It would be perfectly valid to do an imdb_lookup rather than trakt lookup then add to a trakt list (in fact, that's what I do.) I also like that no lookups will be done (at the moment) when adding to a trakt list unless you specifically ask for them. If everyone else agrees this is much nicer for convenience though, I'm fine with it.

@cvium
Copy link
Copy Markdown
Contributor Author

cvium commented Aug 31, 2016

@gazpachoking It only performs a lookup if no other ids are present.

@gazpachoking
Copy link
Copy Markdown
Member

@gazpachoking It only performs a lookup if no other ids are present.

Yeah, I get that. I just like the lookups being explicit by user in config since we don't have any global system to configure them when they are hard coded into other plugins. As I said though, if everyone else agrees that adding this is a good compromise for convenience, I can be persuaded.

@gazpachoking
Copy link
Copy Markdown
Member

You need to do this consistently in ALL lists, not just one.

Not exactly sure what you mean? You mean entry_list should also have a trakt_lookup hard coded in it? (I don't actually think you mean that, just looking for clarification.)

@cvium
Copy link
Copy Markdown
Contributor Author

cvium commented Aug 31, 2016

The problem for me is that shows and movies can be submitted to trakt without any lookups, but episodes can't. That causes confusion for some.

@cvium
Copy link
Copy Markdown
Contributor Author

cvium commented Aug 31, 2016

You need to do this consistently in ALL lists, not just one.

Not exactly sure what you mean? You mean entry_list should also have a trakt_lookup hard coded in it? (I don't actually think you mean that, just looking for clarification.)

I assume he means imdb_list should do an imdb lookup etc.

@gazpachoking
Copy link
Copy Markdown
Member

The problem for me is that shows and movies can be submitted to trakt without any lookups, but episodes can't. That causes confusion for some.

Oh? Trakt supports submitting season and episode numbers to add episodes to lists, if we don't fall back to that in trakt_list I think that should be added rather than forcing a lookup.

@cvium
Copy link
Copy Markdown
Contributor Author

cvium commented Aug 31, 2016

@gazpachoking Where do you see that?

@gazpachoking
Copy link
Copy Markdown
Member

I had a closer look and agree something needs to be fixed, but I don't think a lookup is the right fix. I think this is actually the change I don't agree with aaf1a69. An entry should be detected and submitted as an episode just based on series_name, season and episode if no further ids are readily available.

@cvium cvium removed the Next label Aug 31, 2016
@cvium cvium changed the base branch from next to develop August 31, 2016 19:30
@cvium cvium force-pushed the trakt_add_lookup branch from 9a3d015 to 38498ec Compare August 31, 2016 19:35
@cvium cvium changed the title Perform lookup in trakt_list submit Fix trakt_list submit Aug 31, 2016
@cvium cvium merged commit c9c219e into Flexget:develop Aug 31, 2016
@cvium cvium deleted the trakt_add_lookup branch August 31, 2016 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants