|
楼主 |
发表于 2025-3-8 23:23:56
|
显示全部楼层
本帖最后由 k9pcb0vl 于 2025-3-11 13:08 编辑
在discord找到大佬的解决方案了
代码地址
(Not sure where best to put this):
I made a rough python script for matching unmatched JAV files to their scenes (and scraping the scene if necessary):
Gets unmatched files from XBVR that appear to be JAV scenes
Checks if the JAV scene has already been scraped, and matches the files to the scene if so
Otherwise, iterates through the JAV scrapers to try to scrape the scene, and matches the files to the scene if the scrape was successful
https://github.com/n1gg4tr0n1x/x ... t-jav-file-match.py
Configuration:
Update line 22 (XBVR_SERVER_ADDRESS) to match your setup
Dependencies:
Python 3.11+
requests package, which is used for communicating with XBVR over the network. (pip install requests to get it)
Known Issues:
The way the script looks for a JAV ID in the filenames is extremely liberal (basically just looks for 4-6 letters, followed by 3-6 numbers) -- if you have a better idea, please share! But because of this, it picks up on a lot of unmatched files that aren't actually JAV (you'll see it looking for scenes like "SEXY-3204"). This is relatively harmless because if it's not actually a JAV ID, it just won't get successfully scraped or matched. But it just eats up time. So for now, it's most efficient if you run this while most of your unmatched files in XBVR are JAV. |
|