rebane2001 / matterport-dl

A downloader for matterport virtual tours
The Unlicense
291 stars 73 forks source link

WIP: Support latest graph posts, assets (trims) and fix "Oops, model is not available" error. #65

Open patricknelson opened 2 years ago

patricknelson commented 2 years ago

Fixes #64 and possibly a few other issues.

This hack incorporates additional graph queries, including:

Also monkey-patches some of the requests going to the new CDN domain (cdn-2.matterport.com), but not all. This is still a WIP since the cached graph JSON responses still need to have their cdn-2.matterport.com requests also refactored. This is a bit different though since those can't run JS, so may need to do root relative references (e.g. /path instead of https://127.0.0.1:8080/path).

impop commented 1 year ago

Thanks guys, with both of your fixes I can make more progress but I still one 401 error when downloading a dam file inside the folder "model/xxxxxxxxxxxx/assets/". I noticed that it's trying to download a

"https://cdn-2.matterport.com/models/whatever/assets/whatever2_50k.dam?t=tokenwhatever&k="

when in reality, in matterport this file's url is

"https://cdn-2.matterport.com/models/whatever/assets/~/whatever2_50k.dam?t=tokenwhatever&k="

Once I manually downloaded the file and placed it in the "~" folder, the rest of the process downloaded fine.

Hope it helps