cooperdk / YAPO-e-plus

YAPO e+ - Yet Another Porn Organizer (extended)
https://github.com/cooperdk/YAPO-e-plus
GNU General Public License v3.0
144 stars 15 forks source link

Parsing certain website names before scanning (addScenes.py) #34

Closed cooperdk closed 4 years ago

cooperdk commented 4 years ago

Some websites use abbreviations which result in bad parsing. For example, FF#### was used for Facial Fest and bb#### are used by Bang Bus.

These website abbreviations naturally cause a lot of bad parse results where any scene with "ff" or "bb" in the scene title result in a false positive for these websites. It is possibly only if another website is not already found for scenes.

Still, it's necessary to parse website where this isssue is known to arise.

It's already possible by adding exclusions, but then the site won't be attached to the website it's supposed to.

Describe the solution you'd like

A parser that handles all known problematic abbreviations, They are probably already available in the PhoenixAdult code.

cooperdk commented 4 years ago

This is now functional using the module utils.titleparser which will recognize both site names and abbreviations.