Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Contents/Code/PAdata18ImageSearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,9 @@ def classify_image(width, height):

# Poster heuristics
if orientation == "portrait":
if aspect >= 1.2: # tall enough
# avoid too tall/short (perfect is 1.5)
# https://support.plex.tv/articles/200220677-local-media-assets-movies/#:~:text=Poster%20art%20is%20typically%20of%201:1.5%20aspect%20ratio
if 1.4 <= aspect <= 1.6:
if resolution >= 200000: # avoid tiny thumbs
return "poster"

Expand Down
6 changes: 3 additions & 3 deletions docs/preferences.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@
- Large library additions may result in some scrapers to IP BAN (i.e. Data18)

## Data18 Image Searching - Experimental
- Note: Labelled experimental because not a lot of effort went into the matching alorithm.
- Note: Labeled experimental because not a lot of effort went into the matching algorithm.
- Currently only configured for Reptyle and Network1Service

* ### Data18 Image Search Enable
- Enable/Disable searching Data 18 for Searching for Images on Top of Scraper
- Enable/Disable searching Data 18 for images on top of scraper

* ### Data18 Image Extra Galleries Enable
- Enable/Disable getting images from extra galleries (these galleries are normally skipped if better galleries are present)
- Enable/Disable getting images from extra galleries (these large/lower quality galleries are normally skipped if better galleries are present)

* ### Data18 Image Search Accuracy
- Sets a minimum percentage (0% to 100%) match based on date (if available), title and search site/network
Expand Down