Skip to content

Add more entry fields to PassThePopcorn search plugin#2231

Merged
cvium merged 5 commits intoFlexget:developfrom
jtpavlock:develop
Oct 20, 2018
Merged

Add more entry fields to PassThePopcorn search plugin#2231
cvium merged 5 commits intoFlexget:developfrom
jtpavlock:develop

Conversation

@jtpavlock
Copy link
Copy Markdown
Contributor

Motivation for changes:

Ability for more reliable and finer control over passthepopcorn search results.

Detailed changes:

  • Added entry fields from search results that are already present in the request, but are currently ignored and not saved.

To Do:

  • If possible, I could try to map passthepopcorn qualities to current flexget qualities e.g. Blu-ray:bluray. These mapped qualities would take precedence over parsed qualities from torrent title which would result in more accurate quality mapping. However, I'm not sure how viable or even possible this would be.

e['ptp_resolution'] = torrent['Resolution'] # 1080p, 720p, etc.
e['ptp_source'] = torrent['Source'] # blu-ray, dvd, etc.
e['ptp_container'] = torrent['Container'] # mkv, vob ifo, etc.
e['ptp_codec'] = torrent['Codec'] # x264, XviD, etc.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we be certain that all these keys will exist in every response?

Copy link
Copy Markdown
Contributor Author

@jtpavlock jtpavlock Oct 20, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, the only one we need to worry about is remastertitle which I missed the first time around. The rest are all required and will always be there. Regardless, I switched the key access to use dict.get() which should prevent any issues.

@cvium cvium merged commit f534f4d into Flexget:develop Oct 20, 2018
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.

2 participants