fake-name / xA-Scraper

69 stars 8 forks source link

Tweak dump JSON output #82

Closed God-damnit-all closed 4 years ago

God-damnit-all commented 4 years ago

The filename seems to contain an important art ID that isn't anywhere else, so I want it in its own index.

fake-name commented 4 years ago

I can never remember how much I need to nest list comprehensions to make them something I can pass about. Apparently I thought one more then is actually remembered.

fake-name commented 4 years ago

Note that that patch will throw away any additional filenames, if a single post has more then one associated file. Actually, it'll also explode for items without any associated content.

fake-name commented 4 years ago

Since I'm already exporting the item file contents, I just put the fspath in with the rest of it. Actually, it's kind of embarrassing I forgot it in the first place. Gah.

God-damnit-all commented 4 years ago

The entire reason I made this PR was to take fspath out of that list so it's on its own key for easier parsing with PowerShell.