Question May I ask how to obtain the downloadurl of MissingPackages?

VAMVIP

New member
Messages
6
Reactions
1
Points
3
After studying the HubDownloader code in IL Spy for a while and analyzing the code, it seems to be related to resourceId or currentPackageResourceId. The code stops at this point, and I am not familiar with C# and vamDownload. Can I ask for general information on how to obtain currentPackageResourceId, such as for the package AshAuryn.Expressions.5.var? For example, how to get the download link https://hub.virtamate.com/resources...0-facial-expression-morph-pack.24525/download by obtaining apiUrl using currentPackageResourceId?


PostRequest(apiUrl, postData, FindMissingPackagesCallback, FindMissingPackagesErrorCallback)

MVR.Hub.HubDownloader.FindResource
MVR.Hub.HubDownloader.FindPackage
...

nahDF1E.png


Is currentPackageResourceId used to find 24525?
 
The question is solved.

apiUrl: https://hub.virtamate.com/citizenx/api.php

application/json

post:
{"source":"VaM","action":"getResourceDetail","latest_image":"Y","package_name":"AshAuryn.Expressions.latest"}

I can get a response:

Code:
{
    "package_id": "20623",
    "resource_id": "1179",
    "title": "AshAuryn's Expressions (72 morphs) (Legacy)",
    "tag_line": "Legacy expression morphs",
    "user_id": "11965",
    "username": "AshAuryn",
    "avatar_date": "1674508196",
    "resource_date": "1597143244",
    "type": "Morphs",
    "parent_category_id": "4",
    "discussion_thread_id": "1421",
    "external_url": "",
    "view_count": "64545",
    "download_count": "403775",
    "rating_count": "4",
    "update_count": "3",
    "review_count": "4",
    "rating_avg": "5",
    "rating_weighted": "3.57143",
    "reaction_score": "128",
    "last_update": "1680625050",
    "thtrending_positive_ratings_per_minute": "0.000003",
    "thtrending_downloads_per_minute": "0.285462",
    "thtrending_positive_rating_count": "4",
    "promotional_link": "https://www.patreon.com/ashauryn",
    "current_version_id": "42209",
    "version_string": "5",
    "download_url": "",
    "release_date": "1680625050",
    "category": "Free",
    "image_url": "https://1387905758.rsc.cdn77.org/data/resource_icons/1/1179.jpg?1664128534",
    "icon_url": "https://1387905758.rsc.cdn77.org/data/avatars/m/11/11965.jpg?1674508196",
    "tags": "",
    "hubDownloadable": "true",
    "hubHosted": "true",
    "dependency_count": 0,
    "hubFiles": [
        {
            "package_id": "20623",
            "filename": "AshAuryn.Expressions.5.var",
            "file_size": "9685521",
            "current_version_id": "42209",
            "licenseType": "CC BY",
            "creatorName": "AshAuryn",
            "programVersion": "1.22.0.1",
            "attachment_id": "230625",
            "username": "AshAuryn",
            "urlHosted": "https://hub.virtamate.com/resources/1179/download?file=230625"
        }
    ],
    "dependencies": {
        "AshAuryn.Expressions.latest": [
           
        ]
    }
}

If used for batch download, this code is still more convenient:
Code:
{"source":"VaM","action":"findPackages","packages":"AshAuryn.Expressions.latest,VL_13.Lashes_2.1"}
.

Multiple files are separated by commas.
 
Last edited:
Upvote 0
Back
Top Bottom