ctrcdnfetch icon indicating copy to clipboard operation
ctrcdnfetch copied to clipboard

Suggestion: Option to specify which content file / tmd file to download?

Open Rifu86 opened this issue 7 years ago • 6 comments

Would it be possible to add a command-line option to just download a specific content or tmd file? for example: --download-file "00000000" --download-file "tmd.16"

Some titles have multiple versions, (usually DLC and updates, but some demos and main titles do as well) Having this option would be handy to preserve the content and TMD files of older versions. You can download a specific versions tmd file by adding a dot/period after the tmd filename and specifying the version number in decimal, for example: tmd.16)

Rifu86 avatar Oct 17 '18 11:10 Rifu86

can do, but let me finish trying to sanitize main.cpp first

luigoalma avatar Oct 17 '18 14:10 luigoalma

Further explanation of how the CDN works in regards to multiple versions:

  • "tmd" downloads the latest tmd
  • "tmd.1" will download tmd "v1" which will (in all cases that I know of) specify different contents (contents = 0000000, 00000001 etc) to download than later version tmds do. this is how the console downloads titles - downloads the latest tmd and the contents specified in that tmd. (except for DLC where it does things slightly different I believe).
  • but you can also just download the specific files content files directly, rather than relying on the tmds. this could be useful if the tmd is deleted from the server (this has happened very rarely). but its easiest just to do it via the tmds, since you'd want to get the tmds anyway, and I don't know of any case where contents don't have a corresponding tmd (unless it was deleted).

mariomadproductions avatar Oct 29 '18 16:10 mariomadproductions

Further explanation of how the CDN works in regards to multiple versions:

* "tmd" downloads the latest tmd

* "tmd.1" will download tmd "v1" which will (in all cases that I know of) specify different contents (contents = 0000000, 00000001 etc) to download than later version tmds do. this is how the console downloads titles - downloads the latest tmd and the contents specified in that tmd. (except for DLC where it does things slightly different I believe).

* but you can also just download the specific files content files directly, rather than relying on the tmds. this could be useful if the tmd is deleted from the server (this has happened very rarely). but its easiest just to do it via the tmds, since you'd want to get the tmds anyway, and I don't know of any case where contents don't have a corresponding tmd (unless it was deleted).

thank you for explaning however, i'm well aware of so

luigoalma avatar Oct 29 '18 17:10 luigoalma

I thought you might be, as you did create this tool :P. But I wanted to make sure, as many people don't seem to be aware that "title versions" even exist.

mariomadproductions avatar Oct 29 '18 18:10 mariomadproductions

Hey; just curious if this would be able to be added at some point? It'd be really helpful to be able to specify version/content files to download :p

InternalLoss avatar Sep 07 '19 15:09 InternalLoss

it will at a point change is rather easy, but delay of it not coming is not caused by it there's other code unrelated to this that is putting any commits by me here temporarily to an halt, due to incompletion

luigoalma avatar Sep 07 '19 17:09 luigoalma